Skip to content

Commit 35694c2

Browse files
ci(lint): upgrade to eslint v9
1 parent 5ae2af1 commit 35694c2

File tree

10 files changed

+599
-4854
lines changed

10 files changed

+599
-4854
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scss.validate": false,
1010
"editor.codeActionsOnSave": {
1111
"source.fixAll.markdownlint": "explicit",
12-
"source.fixAll.stylelint": "explicit"
12+
"source.fixAll.stylelint": "explicit",
13+
"source.fixAll.eslint": "explicit"
1314
},
1415
"stylelint.validate": ["css", "scss", "postcss"]
1516
}

e2e/test_repos/drivers/create-react-app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ async function startServerWithRetry({
113113
while (attemptNumber <= maxAttempts) {
114114
attemptNumber++
115115
if (attemptNumber > 1) {
116-
// eslint-disable-next-line no-console
117116
console.log(
118117
`Retrying (attempt ${attemptNumber}) starting the server because: ${failedReason}`
119118
)

eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import eslint from '@eslint/js'
2+
import vitest from 'eslint-plugin-vitest'
3+
import tseslint from 'typescript-eslint'
4+
5+
export default tseslint.config(
6+
{
7+
ignores: ['lib', 'examples', 'e2e', 'coverage']
8+
},
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
{
12+
files: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
13+
...vitest.configs.recommended
14+
},
15+
{
16+
rules: {
17+
quotes: ['warn', 'single'],
18+
'@typescript-eslint/no-unused-vars': [
19+
'warn',
20+
{ varsIgnorePattern: '^_', ignoreRestSiblings: true }
21+
],
22+
'no-unused-vars': 'off'
23+
}
24+
},
25+
{
26+
languageOptions: {
27+
parserOptions: {
28+
project: './tsconfig.json'
29+
}
30+
},
31+
rules: {
32+
'@typescript-eslint/no-floating-promises': ['error']
33+
}
34+
}
35+
)

0 commit comments

Comments
 (0)