@denkristoffer/eslint-config
v9.0.0
Published
ESLint configuration.
Downloads
56
Readme
@denkristoffer/eslint-config
ESLint configuration.
Install
Install the package
yarn add -D eslint @denkristoffer/eslint-config
and add it to your .eslintrc.js
.
TypeScript projects
Make sure to set parserOptions.tsconfigRootDir
as well for the rules requiring type information:
module.exports = {
extends: "@denkristoffer/eslint-config",
parserOptions: {
tsconfigRootDir: __dirname,
},
root: true,
};
JavaScript projects
For JavaScript projects you should extend "@denkristoffer/eslint-config/js"
instead.
module.exports = {
extends: "@denkristoffer/eslint-config/js",
root: true,
};