Skip to content

Commit

Permalink
Use typescript recommended-type-checked rules (#12)
Browse files Browse the repository at this point in the history
We switch from
[`@typescript-eslint/recommended`](https://typescript-eslint.io/linting/configs/#recommended)
to
[`@typescript-eslint/recommended-type-checked`](https://typescript-eslint.io/linting/configs/#recommended-type-checked).
The new configuration extends the previous one with additional rules
related to type information.
  • Loading branch information
Shadowfiend authored Dec 22, 2023
2 parents 53e294d + 475ec36 commit 7b9bc8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
"prettier",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
],
rules: {
// Executive decision: semi-colons aren't removed by prettier for backwards
Expand Down Expand Up @@ -92,4 +92,10 @@ module.exports = {
"no-only-tests/no-only-tests": "error",
"prettier/prettier": ["error", thesisPrettierConfig],
},
overrides: [
{
files: ["*.js"],
extends: ["plugin:@typescript-eslint/disable-type-checked"],
},
],
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thesis-co/eslint-config",
"version": "0.7.0-pre",
"version": "0.8.0-pre",
"description": "ESLint TypeScript shareable config for Thesis wide projects",
"main": "index.js",
"repository": "git@github.com:thesis/eslint-config.git",
Expand Down

0 comments on commit 7b9bc8c

Please sign in to comment.