Skip to content

Commit d4074e1

Browse files
committed
chore: upgrade eslint v9
1 parent 62e6f69 commit d4074e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2074
-1487
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: CodeQL
1313

1414
on:
1515
push:
16-
branches: [master]
16+
branches: [ master ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [master]
19+
branches: [ master ]
2020
schedule:
2121
- cron: '43 3 * * 6'
2222

@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
language: [javascript-typescript]
31+
language: [ javascript-typescript ]
3232
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3333
# Learn more:
3434
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

cypress/support/e2e.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable ts/no-unsafe-member-access,ts/no-unsafe-assignment */
2-
31
// ***********************************************************
42
// This example support/index.js is processed and
53
// loaded automatically before your test files.
@@ -15,11 +13,11 @@
1513
// https://on.cypress.io/configuration
1614
// ***********************************************************
1715

18-
import './commands'
19-
2016
import { ROUTES } from '../e2e/constant'
17+
import './commands'
2118

2219
declare global {
20+
// eslint-disable-next-line ts/no-namespace
2321
namespace Cypress {
2422
// noinspection JSUnusedGlobalSymbols
2523
interface Chainable {

eslint.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import defineConfig from '@mutoe/eslint-config'
22

33
export default defineConfig({
44
typescript: {
5-
tsconfigPath: [
6-
'tsconfig.json',
7-
'tsconfig.node.json',
8-
'cypress/e2e/tsconfig.json',
5+
tsconfigPath: 'tsconfig.json',
6+
ignoresTypeAware: [
7+
'cypress/**',
8+
'**/*.cy.ts',
99
],
1010
},
1111
vue: {
@@ -15,9 +15,8 @@ export default defineConfig({
1515
},
1616
},
1717
},
18-
test: {
19-
vitest: true,
20-
cypress: true,
18+
rules: {
19+
'vue/custom-event-name-casing': ['error', 'kebab-case'],
2120
},
2221
ignores: [
2322
'src/services/api.ts',

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"vue-router": "^4.5.1"
2727
},
2828
"devDependencies": {
29-
"@mutoe/eslint-config": "^2.8.3",
29+
"@mutoe/eslint-config": "^4.11.0-2",
3030
"@pinia/testing": "^0.1.5",
3131
"@testing-library/cypress": "^10.0.2",
3232
"@testing-library/user-event": "^14.5.2",
@@ -35,15 +35,13 @@
3535
"@vitest/coverage-v8": "^2.0.5",
3636
"concurrently": "^8.2.2",
3737
"cypress": "^13.13.2",
38-
"eslint": "^8.57.0",
39-
"eslint-plugin-cypress": "^3.4.0",
40-
"eslint-plugin-vitest": "^0.5.4",
41-
"eslint-plugin-vue": "^9.27.0",
38+
"eslint": "^9.36.0",
39+
"eslint-plugin-cypress": "^5.1.1",
4240
"happy-dom": "^14.12.3",
43-
"lint-staged": "^15.2.8",
41+
"lint-staged": "^16.2.0",
4442
"msw": "^2.3.5",
4543
"rollup-plugin-analyzer": "^4.0.0",
46-
"simple-git-hooks": "^2.11.1",
44+
"simple-git-hooks": "^2.13.1",
4745
"swagger-typescript-api": "^13.0.16",
4846
"typescript": "~5.5.4",
4947
"vite": "^5.4.0",

0 commit comments

Comments
 (0)