Skip to content

Commit 5efe83b

Browse files
committed
feat: upgrade plugins
1 parent 756c6bb commit 5efe83b

File tree

8 files changed

+2078
-1720
lines changed

8 files changed

+2078
-1720
lines changed

package-lock.json

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

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,48 +34,48 @@
3434
}
3535
},
3636
"dependencies": {
37-
"@eslint-react/eslint-plugin": "1.19.0",
38-
"@next/eslint-plugin-next": "15.1.0",
37+
"@eslint-react/eslint-plugin": "1.28.0",
38+
"@next/eslint-plugin-next": "15.1.7",
3939
"deepmerge": "4.3.1",
40-
"eslint-import-resolver-typescript": "3.7.0",
40+
"eslint-import-resolver-typescript": "3.8.3",
4141
"eslint-plugin-cypress": "4.1.0",
42-
"eslint-plugin-import-x": "4.5.0",
43-
"eslint-plugin-jest": "28.9.0",
42+
"eslint-plugin-import-x": "4.6.1",
43+
"eslint-plugin-jest": "28.11.0",
4444
"eslint-plugin-jest-formatting": "3.1.0",
4545
"eslint-plugin-jsx-a11y": "6.10.2",
46-
"eslint-plugin-n": "17.15.0",
47-
"eslint-plugin-perfectionist": "4.3.0",
48-
"eslint-plugin-playwright": "2.1.0",
49-
"eslint-plugin-prettier": "5.2.1",
46+
"eslint-plugin-n": "17.15.1",
47+
"eslint-plugin-perfectionist": "4.9.0",
48+
"eslint-plugin-playwright": "2.2.0",
49+
"eslint-plugin-prettier": "5.2.3",
5050
"eslint-plugin-promise": "7.2.1",
5151
"eslint-plugin-react-hooks": "5.1.0",
52-
"eslint-plugin-storybook": "0.11.1",
53-
"eslint-plugin-tailwindcss": "3.17.5",
52+
"eslint-plugin-storybook": "0.11.3",
53+
"eslint-plugin-tailwindcss": "3.18.0",
5454
"eslint-plugin-vitest": "0.5.4",
55-
"globals": "15.13.0",
56-
"local-pkg": "0.5.1",
57-
"typescript-eslint": "8.18.0"
55+
"globals": "16.0.0",
56+
"local-pkg": "1.0.0",
57+
"typescript-eslint": "8.25.0"
5858
},
5959
"devDependencies": {
60-
"@eslint/eslintrc": "3.2.0",
61-
"@eslint/js": "9.17.0",
60+
"@eslint/eslintrc": "3.3.0",
61+
"@eslint/js": "9.21.0",
6262
"@semantic-release/github": "11.0.1",
6363
"@semantic-release/npm": "12.0.1",
64-
"@semantic-release/release-notes-generator": "14.0.1",
64+
"@semantic-release/release-notes-generator": "14.0.3",
6565
"@types/eslint": "9.6.1",
66-
"cspell": "8.16.1",
67-
"eslint": "9.17.0",
68-
"eslint-find-rules": "4.2.0",
66+
"cspell": "8.17.5",
67+
"eslint": "9.21.0",
68+
"eslint-find-rules": "5.0.0",
6969
"husky": "9.1.7",
7070
"jest": "29.7.0",
71-
"lint-staged": "15.2.11",
72-
"np": "10.1.0",
71+
"lint-staged": "15.4.3",
72+
"np": "10.2.0",
7373
"npm-run-all": "4.1.5",
7474
"pinst": "3.0.0",
75-
"prettier": "3.4.2",
76-
"semantic-release": "24.2.0",
77-
"typescript": "5.7.2",
78-
"unbuild": "^2"
75+
"prettier": "3.5.2",
76+
"semantic-release": "24.2.3",
77+
"typescript": "5.7.3",
78+
"unbuild": "3.5.0"
7979
},
8080
"peerDependencies": {
8181
"cypress": ">=8",

src/modules/playwright.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function playwright() {
2323
],
2424
'playwright/missing-playwright-await': 'error',
2525
'playwright/no-page-pause': 'warn',
26+
'playwright/no-slowed-test': 'warn',
2627
},
2728
};
2829
}

src/modules/react.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function react() {
6969
'@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks': 'warn',
7070
'@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps': 'warn',
7171
'@eslint-react/hooks-extra/prefer-use-state-lazy-initialization': 'warn',
72+
'@eslint-react/hooks-extra/no-useless-custom-hooks': 'warn',
7273

7374
'@eslint-react/naming-convention/component-name': 'warn',
7475
'@eslint-react/naming-convention/filename': 'off',

src/modules/tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function tests(options = {}) {
3232

3333
...predicate(options.typescript, {
3434
'@typescript-eslint/method-signature-style': 'off',
35-
'@typescript-eslint/no-namespace ': 'off',
35+
'@typescript-eslint/no-namespace': 'off',
3636
'@typescript-eslint/unbound-method': 'off',
3737
'@typescript-eslint/no-empty-function': 'off',
3838
'@typescript-eslint/no-floating-promises': 'off',

src/modules/typescript.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ function typescript(options = {}) {
169169
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
170170
'@typescript-eslint/no-misused-promises': ['warn', { checksVoidReturn: { attributes: false } }],
171171
}),
172+
'@typescript-eslint/no-misused-spread': 'error',
172173
'@typescript-eslint/no-mixed-enums': 'error',
173174
'@typescript-eslint/no-redundant-type-constituents': 'warn',
174175
// '@typescript-eslint/no-throw-literal': ['warn', { allowThrowingUnknown: false }],
@@ -182,10 +183,10 @@ function typescript(options = {}) {
182183
},
183184
],
184185
'@typescript-eslint/no-unnecessary-qualifier': 'error',
186+
'@typescript-eslint/no-unnecessary-template-expression': 'warn',
185187
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
186188
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
187189
'@typescript-eslint/no-unsafe-unary-minus': 'error',
188-
'@typescript-eslint/no-unnecessary-template-expression': 'warn',
189190
'@typescript-eslint/non-nullable-type-assertion-style': 'warn',
190191
'@typescript-eslint/prefer-includes': 'warn',
191192
'@typescript-eslint/prefer-optional-chain': 'warn',

src/option.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface Options extends Linter.Config {
77
tailwind?: boolean | { callees: string[] };
88
node?: boolean;
99
strict?: boolean;
10-
import?: { internalRegExp?: string; lifetime?: number; projects?: string | string[] } | boolean;
10+
import?: boolean | { internalRegExp?: string; lifetime?: number; projects?: string | string[] };
1111
esm?: boolean;
1212
test?: boolean;
1313
jest?: boolean;

tests/report.js renamed to tests/report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ const dirname = import.meta.dirname;
77

88
const config = new ESLint();
99
config.lintFiles(join(dirname, './ts.ts')).then(a => console.log(a[0].usedDeprecatedRules));
10-
config.lintFiles(join(dirname, '../eslint.config.js')).then(a => console.log(a[0].usedDeprecatedRules));
10+
config.lintFiles(join(dirname, '../eslint.config.mjs')).then(a => console.log(a[0].usedDeprecatedRules));
1111
config.lintFiles(join(dirname, './test.spec.js')).then(a => console.log(a[0].usedDeprecatedRules));
1212
config.lintFiles(join(dirname, './e2e/test.e2e.js')).then(a => console.log(a[0].usedDeprecatedRules));

0 commit comments

Comments
 (0)