eslint-plugin-jlc
v0.1.0
Published
An opinionated collection of ESLint rules used by JLC.
Downloads
37
Maintainers
Readme
eslint-plugin-jlc

An opinionated collection of ESLint rules used by JLC.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-jlc:
npm install eslint-plugin-jlc --save-devUsage
Add jlc to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["jlc"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"jlc/comments-need-space": 2
}
}Configurations
| | Name |
| :- | :------------ |
| ✅ | recommended |
Rules
💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 💼 | 🔧 | | :--------------------------------------------------------------- | :-------------------------------------------- | :- | :- | | always-camel-case | Always camel case every thing | ✅ | | | comments-need-space | Comments need space | ✅ | 🔧 | | import-constraint | The constraints of import | | | | kebab-case | kebab case your file name and directory name. | ✅ | | | no-then | No then with promise | ✅ | | | prefer-template-literal | prefer template literal | ✅ | |
