9.0.0 • Published 3 years ago

@denkristoffer/eslint-config v9.0.0

Weekly downloads
76
License
MIT
Repository
-
Last release
3 years ago

@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,
};