eslint-plugin-cumul8
Cumul8 specific linting rules for ESLint
Installation
Install ESLint either locally or globally.
yarn add -D eslint
If you installed ESLint
globally, you have to install the Cumul8 plugin globally too. Otherwise, install it locally.
yarn add -D eslint-plugin-cumul8
Configuration
Add plugins
section and specify eslint-plugin-cumul8 as a plugin.
Finally, enable all of the rules that you would like to use.
List of supported rules
Some rules are fixable using the --fix
command line flag. Those rules are marked as 🔧 below.
- 🔧 alphabetical-destructuring: Enforce alphabetical ordering of keys in destructuring assignments
- alphabetical-stylesheets: Enforce alphabetical ordering of keys in StyleSheet declarations
- inefficient-for-each: Prevent inefficient forEach use when a for loop would be better
- inefficient-for-loop: Prevent inefficient for loops
License
eslint-plugin-cumul8
is licensed under the MIT License.