Skip to content

Commit 6d910dc

Browse files
authoredMar 7, 2025··
chore: update eslint config & bump dev deps (#9036)
* chore: update eslint config & bump dev deps * chore: disable `noUnusedParameters` and `noUnusedLocals` compile options
1 parent 58e87a3 commit 6d910dc

File tree

7 files changed

+170
-201
lines changed

7 files changed

+170
-201
lines changed
 

‎components/.eslintrc.js

-29
This file was deleted.

‎components/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@ang
1010

1111
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1212
declare const __karma__: any;
13-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
13+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, unused-imports/no-unused-vars
1414
declare const require: any;
1515

1616

‎eslint.config.mjs

+11-9
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,6 @@ export default tseslint.config(
128128
'@typescript-eslint/no-this-alias': 'error',
129129
'@typescript-eslint/naming-convention': 'off',
130130
'@typescript-eslint/no-unused-expressions': 'off',
131-
'@typescript-eslint/no-unused-vars': [
132-
'error',
133-
{
134-
argsIgnorePattern: '^_',
135-
caughtErrorsIgnorePattern: '^_',
136-
destructuredArrayIgnorePattern: '^_',
137-
varsIgnorePattern: '^_'
138-
}
139-
],
140131
'@typescript-eslint/explicit-function-return-type': [
141132
'error',
142133
{
@@ -145,6 +136,17 @@ export default tseslint.config(
145136
}
146137
],
147138
'@typescript-eslint/no-require-imports': 'warn',
139+
'@typescript-eslint/no-unused-vars': 'off',
140+
"unused-imports/no-unused-imports": "error",
141+
"unused-imports/no-unused-vars": [
142+
"warn",
143+
{
144+
"vars": "all",
145+
"varsIgnorePattern": "^_",
146+
"args": "after-used",
147+
"argsIgnorePattern": "^_",
148+
},
149+
],
148150
'prefer-arrow/prefer-arrow-functions': 'off',
149151
'import/no-duplicates': 'error',
150152
'import/no-unused-modules': 'error',

‎package-lock.json

+151-151
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@commitlint/cli": "^19.0.0",
5454
"@commitlint/config-angular": "^19.0.0",
5555
"@ctrl/tinycolor": "^3.6.0",
56-
"@eslint/js": "^9.18.0",
56+
"@eslint/js": "^9.21.0",
5757
"@schematics/angular": "^19.0.2",
5858
"@stackblitz/sdk": "^1.11.0",
5959
"@types/d3": "^6.2.0",
@@ -64,9 +64,9 @@
6464
"@types/less": "^3.0.7",
6565
"@types/lodash": "^4.17.14",
6666
"@types/node": "^20.11.1",
67-
"@typescript-eslint/eslint-plugin": "^8.21.0",
68-
"@typescript-eslint/parser": "^8.21.0",
69-
"@typescript-eslint/utils": "^8.21.0",
67+
"@typescript-eslint/eslint-plugin": "^8.26.0",
68+
"@typescript-eslint/parser": "^8.26.0",
69+
"@typescript-eslint/utils": "^8.26.0",
7070
"angular-eslint": "^19.0.2",
7171
"chalk": "^4.1.0",
7272
"codecov": "^3.8.1",
@@ -77,7 +77,7 @@
7777
"dagre": "^0.8.5",
7878
"dagre-compound": "^0.0.8",
7979
"detect-port": "^2.1.0",
80-
"eslint": "^9.18.0",
80+
"eslint": "^9.21.0",
8181
"eslint-config-prettier": "^10.0.0",
8282
"eslint-plugin-header": "~3.1.1",
8383
"eslint-plugin-import": "~2.31.0",
@@ -123,7 +123,7 @@
123123
"rxjs": "~7.8.1",
124124
"sitemap": "^8.0.0",
125125
"slugify": "^1.6.6",
126-
"stylelint": "^16.13.0",
126+
"stylelint": "^16.15.0",
127127
"stylelint-config-rational-order": "^0.1.2",
128128
"stylelint-config-standard": "^37.0.0",
129129
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
@@ -132,7 +132,7 @@
132132
"ts-node": "^10.9.1",
133133
"tslib": "^2.0.3",
134134
"typescript": "~5.7.3",
135-
"typescript-eslint": "^8.21.0",
135+
"typescript-eslint": "^8.26.0",
136136
"yaml-front-matter": "^4.1.1",
137137
"zone.js": "~0.15.0"
138138
}

‎scripts/gulp/tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"noUnusedParameters": true,
4-
"noUnusedLocals": true,
53
"lib": [
64
"es2015",
75
"dom"

‎tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
"es2020",
1818
"dom"
1919
],
20-
"noUnusedParameters": true,
21-
"noUnusedLocals": true,
2220
"noImplicitAny": true,
2321
"noImplicitReturns": true,
2422
"noImplicitThis": true,

0 commit comments

Comments
 (0)
Please sign in to comment.