Sharable configs for ESLint to avoid copy-pasting rule files over and over again. Very opinionated but allows to skip Prettier, yay!
List of Configs (Rule Sets)
amalitsky/recommended- default set. Doesn't extend but is commonly used on top of
plugin:@typescript-eslint/recommended. Sets parser to
amalitsky/imports- linting rules for file imports.
amalitsky/newlines- rules for padding code blocks with empty lines. Based on
amalitsky/naming- rules for naming variables, properties, classes and interfaces. Based on
amalitsky/react- rules for projects with React. Supposed to be used with
Recommended set does not include any other rule set present in the package.
How To Use
npm install -D eslint-config-amalitsky to install the package.
Then include rule sets you are interested in with
extends property of
extends: ['eslint:recommended', 'google', 'amalitsky/recommended', 'amalitsky/imports'].
Feel free to use local eslintrc file as an example. Yep, this project code is being linted with same rule sets it is exporting. Recursion at its best!
Expects Following Peer Dependencies
- Not surprisingly,
@typescript-eslint/parseris being used