Skip to content

Commit 0564e49

Browse files
committed
Update eslint
1 parent c84e43d commit 0564e49

7 files changed

Lines changed: 931 additions & 280 deletions

File tree

app/.eslintrc.js

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

app/eslint.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { defineConfig } from 'eslint/config'
2+
import js from '@eslint/js'
3+
import neostandard from 'neostandard'
4+
// @ts-ignore
5+
import pluginCypress from 'eslint-plugin-cypress/flat'
6+
import pluginJest from 'eslint-plugin-jest'
7+
import compat from 'eslint-plugin-compat'
8+
9+
export default defineConfig([
10+
{ ignores: ['public', 'dist'] },
11+
js.configs.recommended,
12+
...neostandard(),
13+
compat.configs['flat/recommended'],
14+
{
15+
files: ['tests/e2e/**/*.js'],
16+
...pluginCypress.configs.recommended,
17+
rules: {
18+
'cypress/no-unnecessary-waiting': 'warn',
19+
'cypress/unsafe-to-chain-command': 'warn'
20+
}
21+
},
22+
{
23+
files: ['tests/unit/**/*.spec.js'],
24+
plugins: { jest: pluginJest },
25+
languageOptions: {
26+
globals: pluginJest.environments.globals.globals,
27+
},
28+
}
29+
])

app/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,21 @@
4646
"workbox-webpack-plugin": "^7.3.0"
4747
},
4848
"devDependencies": {
49-
"eslint": "^8.57.0",
50-
"eslint-config-standard": "^17.1.0",
49+
"@babel/eslint-parser": "^7.27.0",
50+
"@eslint/eslintrc": "^3.3.1",
51+
"@eslint/js": "^9.25.0",
52+
"@jest/globals": "^29.7.0",
53+
"eslint": "^9.25.0",
5154
"eslint-plugin-compat": "^6.0.2",
5255
"eslint-plugin-cypress": "^4.2.1",
5356
"eslint-plugin-import": "^2.31.0",
57+
"eslint-plugin-jest": "^28.11.0",
5458
"eslint-plugin-n": "^17.17.0",
5559
"eslint-plugin-promise": "^7.2.1",
5660
"eslint-plugin-vue": "^10.0.0",
5761
"jest": "^29.7.0",
5862
"jest-environment-jsdom": "^29.7.0",
63+
"neostandard": "^0.12.1",
5964
"stylelint": "^16.18.0",
6065
"stylelint-config-recommended-vue": "^1.6.0",
6166
"stylelint-config-standard-scss": "^14.0.0",
@@ -68,7 +73,6 @@
6873
"pnpm": {
6974
"updateConfig": {
7075
"ignoreDependencies": [
71-
"eslint",
7276
"@fullhuman/postcss-purgecss"
7377
]
7478
}

0 commit comments

Comments
 (0)