0.1.0 • Published 1 year ago
opinionated-eslint-config v0.1.0
Opinionated eslint config
A custom eslint configuration which has strong opinions.
Because of this, it is recommended to run eslint with the --cache option.
Besides that I also recommend the --warnings 0 option.
Makes use of @antfu/eslint-config and eslint-plugin-jest.
How to use
Install with npm i -D opinionated-eslint-config.
Create an eslint.config.js file in the root of your project with the following content:
const opinionated = require('opinionated-eslint-config');
module.exports = opinionated({
typescript: {
tsconfigPath: [ './tsconfig.json' ],
},
});The argument of the functions gets passed along to the @antfu/eslint-config,
so see the documentation there for extra options.
To add or modify rules, you can make use of functions such as append and override,
as described here.
0.1.0
1 year ago