Skip to content

Commit 305d25f

Browse files
committed
Update eslint-config-standard-with-typescript to v36
1 parent 9123f78 commit 305d25f

File tree

3 files changed

+71
-24
lines changed

3 files changed

+71
-24
lines changed

.eslintrc.json

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
{
22
"root": true,
3-
"extends": ["standard-with-typescript", "prettier"],
43
"plugins": ["simple-import-sort", "unused-imports"],
54
"parserOptions": {
6-
"project": "./tsconfig.json"
5+
"sourceType": "module",
6+
"ecmaVersion": "latest"
77
},
88
"rules": {
9-
"no-console": "warn",
10-
"@typescript-eslint/consistent-type-imports": [
11-
"error",
12-
{
13-
"fixStyle": "inline-type-imports"
14-
}
15-
],
16-
"@typescript-eslint/no-unused-vars": "off",
9+
"no-console": "error",
1710
"unused-imports/no-unused-imports": "error",
1811
"unused-imports/no-unused-vars": [
1912
"error",
@@ -42,5 +35,28 @@
4235
}
4336
],
4437
"simple-import-sort/exports": "error"
45-
}
38+
},
39+
"overrides": [
40+
{
41+
"files": ["*.js", "*.mjs", "*.cjs"],
42+
"extends": ["standard", "prettier"]
43+
},
44+
{
45+
"files": ["*.ts", "*.tsx"],
46+
"extends": ["standard-with-typescript", "prettier"],
47+
"parserOptions": {
48+
"project": "./tsconfig.json"
49+
},
50+
"rules": {
51+
"@typescript-eslint/no-import-type-side-effects": "error",
52+
"@typescript-eslint/consistent-type-imports": [
53+
"error",
54+
{
55+
"fixStyle": "inline-type-imports"
56+
}
57+
],
58+
"@typescript-eslint/no-unused-vars": "off"
59+
}
60+
}
61+
]
4662
}

package-lock.json

Lines changed: 40 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"test:update": "ava --update-snapshots",
4343
"test:watch": "ava --watch",
4444
"test:debug": "ava debug --break",
45-
"lint": "eslint --ignore-path .gitignore --ext .js,.cjs,.mjs,.ts,.tsx .",
45+
"lint": "eslint --ignore-path .gitignore .",
4646
"prelint": "prettier --check --ignore-path .gitignore .",
4747
"postversion": "git push --follow-tags",
4848
"example": "tsx examples",
4949
"example:inspect": "tsx --inspect examples",
50-
"format": "eslint --ignore-path .gitignore --fix --ext .js,.cjs,.mjs,.ts,.tsx .",
50+
"format": "eslint --ignore-path .gitignore --fix .",
5151
"preformat": "prettier --write --ignore-path .gitignore .",
5252
"report": "c8 report"
5353
},
@@ -63,7 +63,8 @@
6363
"dpdm": "^3.13.0",
6464
"eslint": "^8.9.0",
6565
"eslint-config-prettier": "^8.4.0",
66-
"eslint-config-standard-with-typescript": "^34.0.0",
66+
"eslint-config-standard": "^17.1.0",
67+
"eslint-config-standard-with-typescript": "^36.0.0",
6768
"eslint-plugin-simple-import-sort": "^10.0.0",
6869
"eslint-plugin-unused-imports": "^2.0.0",
6970
"landlubber": "^1.0.0",

0 commit comments

Comments
 (0)