Skip to content

Commit bfd36bf

Browse files
fix: properly separated typed and untyped linting (#92)
1 parent d045e7d commit bfd36bf

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.eslintrc.cjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ module.exports = {
2323
"plugin:@typescript-eslint/strict",
2424
],
2525
files: ["**/*.{ts,tsx}"],
26+
parserOptions: {
27+
project: "./tsconfig.eslint.json",
28+
},
29+
rules: {
30+
// These off-by-default rules work well for this repo and we like them on.
31+
"deprecation/deprecation": "error",
32+
},
2633
},
2734
{
2835
files: "*.json",
@@ -41,10 +48,6 @@ module.exports = {
4148
},
4249
],
4350
parser: "@typescript-eslint/parser",
44-
parserOptions: {
45-
tsconfigRootDir: __dirname,
46-
project: ["./tsconfig.json"],
47-
},
4851
plugins: [
4952
"@typescript-eslint",
5053
"deprecation",
@@ -57,7 +60,6 @@ module.exports = {
5760
root: true,
5861
rules: {
5962
// These off-by-default rules work well for this repo and we like them on.
60-
"deprecation/deprecation": "error",
6163
"no-only-tests/no-only-tests": "error",
6264
"simple-import-sort/exports": "error",
6365
"simple-import-sort/imports": "error",

tsconfig.eslint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["."]
4+
}

0 commit comments

Comments
 (0)