@repeatgg/eslint-config
v2.1.0
Published
Reusable eslint config for repeat
Downloads
810
Keywords
Readme
Repeat Eslint Configuration
A reusable, adaptive eslint configuration for Repeat.gg.
Automatically detects which configurations are required based on the contents of package.json
, including:
- Which parser to use,
- What parserOptions to set
- Which eslint-plugin-* packages to use
- Which eslint-config-* packages to use
- Which rules to set
- Which import/resolver settings to use
- Which overrides are appropriate
Debug Your Configuration
run
npm run build
npx eslint --inspect-config
Installation
npm i -D eslint-config-repeat
Usage
.eslintrc.js
setup:
module.exports = {
extends: '@repeatgg',
};
.eslintrc.json
setup:
{
"extends": "@repeatgg",
};
package.json
setup:
{
...
"eslintConfig": {
"extends": "@repeatgg"
}
...
}