Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbdchd/eslint-plugin-cake
:cake: Sweet rules for ESLint
https://github.com/sbdchd/eslint-plugin-cake
eslint eslint-plugin react typescript
Last synced: 10 days ago
JSON representation
:cake: Sweet rules for ESLint
- Host: GitHub
- URL: https://github.com/sbdchd/eslint-plugin-cake
- Owner: sbdchd
- License: mit
- Created: 2021-04-22T01:08:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-15T03:07:33.000Z (over 3 years ago)
- Last Synced: 2024-10-12T05:29:06.360Z (about 1 month ago)
- Topics: eslint, eslint-plugin, react, typescript
- Language: TypeScript
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-cake
misc rules for eslint
## Why?
Originally to have a forked version of
[`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react)'s
`jsx-no-useless-fragment` that is
[safe](https://github.com/yannickcr/eslint-plugin-react/pull/2967). Now this
repo is a collection of miscellaneous lints I couldn't find elsewhere.## Installation
You'll first need to install [ESLint](http://eslint.org):
```shell
yarn add --dev eslint
# or
npm install eslint --save-dev
```Next, install `eslint-plugin-cake`:
```shell
yarn add --dev eslint-plugin-cake
# or
npm install eslint-plugin-cake --save-dev
```## Usage
Add `cake` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": ["cake"]
}
```## Supported Rules
[see docs](./docs/rules)
## Dev
```shell
yarn installs/lint
s/test# release new version
s/build# optional, if you want to test locally:
yarn packyarn publish
```