2.2.1 • Published 2 months ago

@marknjunge/eslint-config-ts v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

eslint-config-ts

npm (scoped)

My ESLint config for Typescript

Usage

  1. Install the package
npm install --save-dev @marknjunge/eslint-config-ts
  1. Add it to the extends section of your .eslintrc file.
extends: ["...", "@marknjunge/eslint-config-ts"]
  1. Add @stylistic to plugins
- plugins: ["@typescript-eslint"],
+ plugins: ["@typescript-eslint", "@stylistic"],
  1. 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"],
+    }
+  ]
};
2.2.1

2 months ago

2.2.0

3 months ago

2.1.1

3 months ago

2.1.0

3 months ago

1.11.0

9 months ago

1.10.0

9 months ago

2.0.0

9 months ago

1.9.0

11 months ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago