Skip to content

Commit b0ac061

Browse files
committed
feat: 增加 cursor 配置
1 parent 2a90247 commit b0ac061

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

‎.cursor/extensions.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"EditorConfig.EditorConfig",
4+
"mikestead.dotenv",
5+
"dbaeumer.vscode-eslint",
6+
"stylelint.vscode-stylelint",
7+
"Vue.volar",
8+
"antfu.unocss"
9+
]
10+
}

‎.cursor/settings.json‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"eslint.useFlatConfig": true,
3+
"prettier.enable": false,
4+
"editor.formatOnSave": false,
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": "explicit",
7+
"source.fixAll.stylelint": "explicit",
8+
"source.organizeImports": "never"
9+
},
10+
"stylelint.validate": [
11+
"css",
12+
"postcss",
13+
"scss",
14+
"vue"
15+
],
16+
"eslint.validate": [
17+
"javascript",
18+
"javascriptreact",
19+
"typescript",
20+
"typescriptreact",
21+
"vue",
22+
"html",
23+
"markdown",
24+
"json",
25+
"jsonc",
26+
"yaml"
27+
],
28+
"typescript.tsdk": "node_modules/typescript/lib"
29+
}

0 commit comments

Comments
 (0)