@marknjunge/eslint-config-ts
v2.2.1
Published
Mark Njung'e's eslint config for Typescript
Downloads
30
Readme
eslint-config-ts
My ESLint config for Typescript
Usage
- Install the package
npm install --save-dev @marknjunge/eslint-config-ts
- Add it to the
extends
section of your.eslintrc
file.
extends: ["...", "@marknjunge/eslint-config-ts"]
- Add
@stylistic
to plugins
- plugins: ["@typescript-eslint"],
+ plugins: ["@typescript-eslint", "@stylistic"],
- Add the following helpful scripts (optional)
"lint": "eslint **/*.{ts,js}",
"lint:fix": "eslint **/*.{ts,js} --fix"
NB: If your project contains javascript, you may need to disable type checking for js files.
// .eslintrc.js
module.exports = {
+ overrides: [
+ {
+ files: ["*.js"],
+ extends: ["plugin:@typescript-eslint/disable-type-checked"],
+ }
+ ]
};