@denkristoffer/eslint-config

9.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @denkristoffer/eslint-config

Weekly Downloads

5

Version

9.0.0

License

MIT

Unpacked Size

6.36 kB

Total Files

8

Last publish

Collaborators

  • denkristoffer