eslint-plugin-sung-hunt-down-your-bad-code
v0.0.9
Published
beta
Downloads
10
Maintainers
Readme
eslint-plugin-demo
a demo plugin
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install npm i eslint-plugin-sung-hunt-down-your-bad-code
:
$ npm i eslint-plugin-sung-hunt-down-your-bad-code --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install npm i eslint-plugin-sung-hunt-down-your-bad-code
globally.
Usage
Add demo
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"sung-hunt-down-your-bad-code"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sung-hunt-down-your-bad-code/react-syntax":1,
"sung-hunt-down-your-bad-code/react-console":1,
"sung-hunt-down-your-bad-code/react-import":1,
"sung-hunt-down-your-bad-code/react-props":1,
"sung-hunt-down-your-bad-code/react-maybe":1,
"sung-hunt-down-your-bad-code/react-setTimeout":1,
"sung-hunt-down-your-bad-code/react-async":1,
"sung-hunt-down-your-bad-code/react-try-catch":1,
"sung-hunt-down-your-bad-code/react-fetch":1,
"sung-hunt-down-your-bad-code/react-function":1
}
}
Supported Rules
- Fill in provided rules here