Skip to content

Commit 73b1935

Browse files
fix: Configure new @typescript-eslint rules after updating package (#223)
1 parent 66064a9 commit 73b1935

File tree

11 files changed

+302
-304
lines changed

11 files changed

+302
-304
lines changed

.changeset/tough-adults-explode.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@workleap/eslint-plugin": patch
3+
---
4+
5+
Configure new recommended @typescript-eslint rules after updating the package.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"changeset": "changeset",
3535
"publish-pkg": "changeset publish",
3636
"publish-pr-pkg": "pkg-pr-new publish ./packages/* --packageManager=pnpm --pnpm",
37-
"clean": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf dist .turbo .rslib node_modules/.cache",
37+
"clean": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf dist .turbo .rslib public/mockServiceWorker.js node_modules/.cache",
3838
"reset": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf dist node_modules",
3939
"list-outdated-deps": "pnpm outdated -r --format list !eslint !@types/eslint !typescript",
4040
"update-outdated-deps": "pnpm update -r --latest !eslint !@types/eslint !typescript"
@@ -46,8 +46,8 @@
4646
"@workleap/eslint-plugin": "workspace:*",
4747
"@workleap/typescript-configs": "workspace:*",
4848
"eslint": "8.57.0",
49-
"knip": "5.39.4",
50-
"pkg-pr-new": "0.0.35",
49+
"knip": "5.40.0",
50+
"pkg-pr-new": "0.0.37",
5151
"prettier": "3.4.2",
5252
"retypeapp": "3.6.0",
5353
"syncpack": "13.0.0",

packages/eslint-plugin/lib/config/typescript.ts

+1-13
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const config: Linter.Config = {
1717
rules: {
1818
// @typescript-eslint/recommended disables
1919
"@typescript-eslint/no-non-null-assertion": "off",
20+
"@typescript-eslint/no-empty-object-type": ["error", { allowInterfaces: "with-single-extends", allowObjectTypes: "never" }],
2021

2122
// additional rules we want
2223
"@typescript-eslint/consistent-type-definitions": "warn",
@@ -43,7 +44,6 @@ const config: Linter.Config = {
4344
"@typescript-eslint/no-useless-constructor":"warn",
4445
"object-curly-spacing":"off",
4546
"quotes":"off",
46-
// "@typescript-eslint/quotes": ["warn", "double"],
4747
"@stylistic/ts/quotes": ["warn", "double"],
4848
"@typescript-eslint/no-import-type-side-effects": "warn",
4949
"@typescript-eslint/consistent-type-imports": [
@@ -55,19 +55,9 @@ const config: Linter.Config = {
5555
}
5656
],
5757

58-
// "@typescript-eslint/member-delimiter-style": "warn",
5958
"@stylistic/ts/member-delimiter-style": "warn",
60-
// "@typescript-eslint/comma-dangle": ["warn", "never"],
6159
"@stylistic/ts/comma-dangle": ["warn", "never"],
6260
"indent":"off",
63-
// "@typescript-eslint/indent": [
64-
// "warn",
65-
// 4,
66-
// {
67-
// SwitchCase: 1,
68-
// CallExpression: { arguments: "first" }
69-
// }
70-
// ],
7161
"@stylistic/ts/indent": [
7262
"warn",
7363
4,
@@ -76,10 +66,8 @@ const config: Linter.Config = {
7666
CallExpression: { arguments: "first" }
7767
}
7868
],
79-
// "@typescript-eslint/object-curly-spacing": ["warn", "always"],
8069
"@stylistic/ts/object-curly-spacing": ["warn", "always"],
8170
"semi":"off",
82-
// "@typescript-eslint/semi": ["warn", "always"]
8371
"@stylistic/ts/semi": ["warn", "always"]
8472
}
8573
}

packages/postcss-configs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"dependencies": {
3939
"postcss-load-config": "^6.0.1",
40-
"postcss-preset-env": "^10.1.1"
40+
"postcss-preset-env": "^10.1.2"
4141
},
4242
"devDependencies": {
4343
"@swc/core": "1.10.1",

packages/rsbuild-configs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@rsbuild/plugin-svgr": "^1.0.6"
4444
},
4545
"devDependencies": {
46-
"@rsbuild/core": "1.1.9",
46+
"@rsbuild/core": "1.1.10",
4747
"@rspack/core": "1.1.6",
4848
"@swc/core": "1.10.1",
4949
"@swc/jest": "0.2.37",

packages/webpack-configs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"react-refresh": "^0.16.0",
5656
"style-loader": "^4.0.0",
5757
"swc-loader": "^0.2.6",
58-
"terser-webpack-plugin": "^5.3.10"
58+
"terser-webpack-plugin": "^5.3.11"
5959
},
6060
"devDependencies": {
6161
"@svgr/core": "8.1.0",

0 commit comments

Comments
 (0)