2.1.1 • Published 4 months ago

@phts/eslint-config v2.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 months ago

@phts/eslint-config

GitHub Actions npm

My config for ESLint.

Install

$ npm i -D @phts/eslint-config

Usage

Basic rules

.eslintrc.json:

{
  "extends": "@phts"
}

Prettier

{
  "extends": ["@phts", "@phts/eslint-config/addons/prettier"]
}

Enable support for Prettier via eslint-config-prettier and eslint-plugin-prettier for all .js, .jsx, .ts, .tsx files in the project.

Prettier must be installed manually:

$ npm i -D prettier

Make sure to put this addon last, so it gets the chance to override other configs.

TypeScript

@typescript-eslint/parser and @typescript-eslint/eslint-plugin are used under the hood.

.eslintrc.json:

{
  "extends": ["@phts", "@phts/eslint-config/addons/typescript"]
}

package.json:

{
  "scripts": {
    "lint": "eslint --ext .js,.ts,.tsx ."
  }
}

SublimeText project:

{
  "folders": [
    {
      "path": "."
    }
  ],
  "settings": {
    "SublimeLinter.linters.eslint.selector": "source.js, source.ts, source.tsx",
    "SublimeLinter.linters.tslint.disable": true
  }
}

VS Code workspace:

{
  "settings": {
    // ...
    "eslint.validate": ["typescript", "typescriptreact"]
  }
}

Other addons

2.1.1

4 months ago

2.1.0

7 months ago

2.0.0

2 years ago

1.10.1

2 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.2

4 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago