4.0.0 • Published 6 years ago
@denkristoffer/eslint-config v4.0.0
@denkristoffer/eslint-config
ESLint configuration.
Install
Install the package
yarn add -D eslint @denkristoffer/eslint-configand 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,
};