Skip to content

Commit 52661a0

Browse files
committed
chore: update deps, migrate to new ESLint config format
1 parent 48870a0 commit 52661a0

File tree

20 files changed

+158
-180
lines changed

20 files changed

+158
-180
lines changed

.eslintrc

-11
This file was deleted.

.vscode/settings.json

+27-15
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,41 @@
11
{
2+
// Enable the ESlint flat config support
3+
"eslint.experimental.useFlatConfig": true,
4+
5+
// Disable the default formatter, use eslint instead
6+
"prettier.enable": false,
27
"editor.formatOnSave": false,
8+
9+
// Auto fix
310
"editor.codeActionsOnSave": {
4-
"source.fixAll": false,
5-
"source.fixAll.eslint": true, // this allows ESLint to auto fix on save
6-
"source.organizeImports": false
7-
},
8-
// ESLint config: https://github.com/kirklin/eslint-config
9-
"eslint.codeAction.showDocumentation": {
10-
"enable": true
11+
"source.fixAll.eslint": "explicit",
12+
"source.organizeImports": "never"
1113
},
12-
"eslint.quiet": true,
14+
15+
// Silent the stylistic rules in you IDE, but still auto fix them
16+
"eslint.rules.customizations": [
17+
{ "rule": "style/*", "severity": "off" },
18+
{ "rule": "*-indent", "severity": "off" },
19+
{ "rule": "*-spacing", "severity": "off" },
20+
{ "rule": "*-spaces", "severity": "off" },
21+
{ "rule": "*-order", "severity": "off" },
22+
{ "rule": "*-dangle", "severity": "off" },
23+
{ "rule": "*-newline", "severity": "off" },
24+
{ "rule": "*quotes", "severity": "off" },
25+
{ "rule": "*semi", "severity": "off" }
26+
],
27+
28+
// Enable eslint for all supported languages
1329
"eslint.validate": [
1430
"javascript",
15-
"typescript",
1631
"javascriptreact",
32+
"typescript",
1733
"typescriptreact",
1834
"vue",
1935
"html",
2036
"markdown",
2137
"json",
2238
"jsonc",
23-
"json5"
24-
],
25-
"prettier.enable": false,
26-
"prettier.printWidth": 200,
27-
"prettier.semi": true,
28-
"prettier.singleQuote": false
39+
"yaml"
40+
]
2941
}

eslint.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import kirklin from "@kirklin/eslint-config";
2+
import unocss from "@unocss/eslint-plugin";
3+
4+
export default kirklin(
5+
{},
6+
unocss.configs.flat,
7+
);

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "boot-vue",
3+
"type": "module",
34
"version": "0.0.1",
45
"private": true,
56
"packageManager": "[email protected]",
@@ -47,6 +48,7 @@
4748
"@kirklin/eslint-config": "^1.0.0",
4849
"@types/node": "^20.8.10",
4950
"@types/nprogress": "^0.2.2",
51+
"@unocss/eslint-config": "^0.57.2",
5052
"@vitejs/plugin-vue": "^4.4.0",
5153
"@vitest/coverage-c8": "^0.33.0",
5254
"@vue/compiler-dom": "^3.3.7",

0 commit comments

Comments
 (0)