Skip to content

Commit 1fd4fcd

Browse files
authored
Merge pull request #983 from traPtitech/chore/client-update-eslint-vite
chore(client): migrate to ESLint 9 Flat Config and update Vite to v7
2 parents 9033e73 + a015738 commit 1fd4fcd

File tree

5 files changed

+1100
-2516
lines changed

5 files changed

+1100
-2516
lines changed

.github/workflows/client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
steps:
8888
- uses: actions/setup-node@v6
8989
with:
90-
node-version: 18.x
90+
node-version: 22.x
9191
- uses: actions/checkout@v6
9292
- uses: actions/cache@v4
9393
with:

client/.eslintrc.cjs

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

client/eslint.config.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import js from "@eslint/js";
2+
import pluginVue from "eslint-plugin-vue";
3+
import {
4+
defineConfigWithVueTs,
5+
vueTsConfigs
6+
} from "@vue/eslint-config-typescript";
7+
import pluginPrettierRecommended from "eslint-plugin-prettier/recommended";
8+
import process from "node:process";
9+
10+
export default defineConfigWithVueTs(
11+
js.configs.recommended,
12+
pluginVue.configs["flat/recommended"],
13+
vueTsConfigs.recommended,
14+
pluginPrettierRecommended,
15+
{
16+
rules: {
17+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
18+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
19+
"vue/multi-word-component-names": "off",
20+
"vue/max-attributes-per-line": "off",
21+
"vue/html-indent": "off",
22+
"vue/html-closing-bracket-newline": "off",
23+
"vue/singleline-html-element-content-newline": "off",
24+
"vue/multiline-html-element-content-newline": "off",
25+
"vue/html-self-closing": "off"
26+
}
27+
},
28+
{
29+
ignores: [
30+
"dist/",
31+
"node_modules/",
32+
"coverage/",
33+
"test-results/",
34+
"playwright-report/",
35+
"public/"
36+
]
37+
}
38+
);

0 commit comments

Comments
 (0)