@digitalroute/eslint-config

4.4.0 • Public • Published

@digitalroute/eslint-config

Eslint shareable configuration for Digitalroute projects. It is meant to be used with prettier, and is therefore for code-quality concerns instead of code formatting.

Usage

1 Install

Install this config as a devDependency:

npm install @digitalroute/eslint-config --save-dev

2 Configure

Add the following to your package.json:

{
  "eslint": {
    "extends": "@digitalroute/eslint-config"
  }
}

or for typescript projects

{
  "eslintConfig": {
    "extends": "@digitalroute/eslint-config/typescript"
  }
}

3 Add script

Add the following to your scripts in package.json:

"eslint": "eslint '{src,test}/**/*.{js,jsx,ts,tsx}'",

Replace {src,test} with any top-level directories you want to test.

What does this configuration use?

This configuration extends the following configurations (in chronological order):

  • eslint:recommended
  • xo-space
  • plugin:node/recommended
  • plugin:unicorn/recommended
  • (Only in typescript) plugin:@typescript-eslint/eslint-recommended
  • (Only in typescript) plugin:@typescript-eslint/recommended
  • prettier

Package Sidebar

Install

npm i @digitalroute/eslint-config

Weekly Downloads

8

Version

4.4.0

License

MIT

Unpacked Size

5.55 kB

Total Files

5

Last publish

Collaborators

  • dot-bot
  • pierre.lemerle
  • polarn
  • jcelik
  • timberbain
  • saeger