@empjs/biome-config 0.4.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/biome.jsonc +44 -5
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @empjs/biome-config
|
|
2
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
3
|
+
|
|
4
|
+
EMP 官方默认格式化配置、`v6.0` 已支持 CSS
|
|
5
|
+
|
|
6
|
+
## vscode 设置
|
|
7
|
+
### .vscode/settings.json
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"eslint.enable": false,
|
|
11
|
+
"prettier.enable": false,
|
|
12
|
+
"css.lint.unknownAtRules": "ignore",
|
|
13
|
+
"editor.codeActionsOnSave": {
|
|
14
|
+
"quickfix.biome": "explicit",
|
|
15
|
+
"source.organizeImports.biome": "explicit"
|
|
16
|
+
},
|
|
17
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
18
|
+
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
19
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
20
|
+
"[scss]": {
|
|
21
|
+
"editor.defaultFormatter": "vscode.css-language-features"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 默认配置
|
|
28
|
+
+ [biome.jsonc](./biome.jsonc)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
[npm-version-src]: https://img.shields.io/npm/v/@empjs/biome-config?style=flat&colorA=18181B&colorB=F0DB4F
|
|
32
|
+
[npm-version-href]: https://npmjs.com/package/@empjs/biome-config
|
package/biome.jsonc
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
3
|
"files": {
|
|
4
|
-
"ignore": ["dist/**", "output/**", "node_modules/**"
|
|
4
|
+
"ignore": ["dist/**", "output/**", "node_modules/**"],
|
|
5
5
|
"ignoreUnknown": true,
|
|
6
|
-
"include": [
|
|
6
|
+
"include": [
|
|
7
|
+
"*.js",
|
|
8
|
+
"*.ts",
|
|
9
|
+
"*.jsx",
|
|
10
|
+
"*.tsx",
|
|
11
|
+
"*.mjs",
|
|
12
|
+
"*.tjs",
|
|
13
|
+
"*.json",
|
|
14
|
+
"*.jsonc",
|
|
15
|
+
"*.css",
|
|
16
|
+
"emp-config.js",
|
|
17
|
+
"emp.config.js",
|
|
18
|
+
"emp-config.ts",
|
|
19
|
+
"emp.config.ts",
|
|
20
|
+
".vscode/"
|
|
21
|
+
]
|
|
7
22
|
},
|
|
8
23
|
"formatter": {
|
|
9
24
|
"lineWidth": 120
|
|
10
25
|
},
|
|
26
|
+
"css": {
|
|
27
|
+
"formatter": {
|
|
28
|
+
"enabled": true
|
|
29
|
+
},
|
|
30
|
+
"parser": {
|
|
31
|
+
"cssModules": true
|
|
32
|
+
},
|
|
33
|
+
"linter": {
|
|
34
|
+
"enabled": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
11
37
|
"javascript": {
|
|
12
38
|
"formatter": {
|
|
13
39
|
"arrowParentheses": "asNeeded",
|
|
@@ -47,7 +73,8 @@
|
|
|
47
73
|
"noUselessConstructor": "off",
|
|
48
74
|
"useArrowFunction": "off",
|
|
49
75
|
"useOptionalChain": "off",
|
|
50
|
-
"useLiteralKeys": "off"
|
|
76
|
+
"useLiteralKeys": "off",
|
|
77
|
+
"noUselessTernary": "off"
|
|
51
78
|
},
|
|
52
79
|
"correctness": {
|
|
53
80
|
"noUnreachable": "off"
|
|
@@ -77,7 +104,19 @@
|
|
|
77
104
|
"organizeImports": {
|
|
78
105
|
"enabled": true
|
|
79
106
|
},
|
|
80
|
-
"overrides": [
|
|
107
|
+
"overrides": [
|
|
108
|
+
{
|
|
109
|
+
"include": ["*.svelte", "*.astro", "*.vue"],
|
|
110
|
+
"linter": {
|
|
111
|
+
"rules": {
|
|
112
|
+
"style": {
|
|
113
|
+
"useConst": "off",
|
|
114
|
+
"useImportType": "off"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
81
120
|
"vcs": {
|
|
82
121
|
"clientKind": "git",
|
|
83
122
|
"enabled": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/biome-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"main": "biome.jsonc",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@biomejs/biome": "^1.
|
|
29
|
+
"@biomejs/biome": "^1.9.4"
|
|
30
30
|
}
|
|
31
31
|
}
|