lint-plugin-neo-technologies
v1.0.8
Published
ESLint plugin to encourage Best Coding Practices
Downloads
135
Maintainers
Readme
Getting started
npm install --save-dev eslint-plugin-neo-technologies
In .eslintrc.cjs
plugins: ['eslint-plugin-neo-technologies'],
rules: {
'neo-technologies/if-max-lines': [2, { maxLines: 8 } ],
'neo-technologies/no-await-without-trycatch': 2,
'neo-technologies/max-or-operators': 2,
'neo-technologies/return-boolean': 2,
'neo-technologies/catch-errors-naming': 2,
'neo-technologies/avoid-return-mapping': 2,
'neo-technologies/enums-styling': 2,
'neo-technologies/boolean-naming': 2,
'neo-technologies/group-functions': 2,
}
Details
This plugin is to Enforce best Coding Guidelines
Rules
- if-max-lines is to enforce max lines in a control statement.
- no-await-without-trycatch is to enforce Await expressions to be executed in a try-catch block.
- max-or-operators is to enforce single OR (||) operator inside an if statement.
- return-boolean is to enforce Direct return of boolean instead of true/false.
- catch-errors-naming is to enforce consistent naming for errors.
- avoid-return-mapping is to enforce Array Mapping outside JSX return statement.
- enums-styling is to enforce consistent Enums naming.
- boolean-naming is to enforce consistent Boolean naming.
- group-functions is to enforce consistent grouping and ordering for functions.