0.0.14 • Published 4 years ago
eslint-plugin-sx-code-rules v0.0.14
eslint-plugin-sx-code-rules
code style
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-sx-code-rules:
npm install eslint-plugin-sx-code-rules --save-devUsage
Add sx-code-rules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"sx-code-rules"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"sx-code-rules/camel-case-identifier": 2,
"sx-code-rules/global-variable-detection": 2,
"sx-code-rules/local-variable-detection": 2
}
}Supported Rules
- Fill in provided rules here