@cuiqg/eslint-config 2.5.7 → 2.5.9
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/.editorconfig +12 -0
- package/.gitattributes +1 -0
- package/.vscode/settings.json +8 -0
- package/LICENSE +24 -24
- package/README.md +45 -45
- package/bump.config.js +6 -0
- package/eslint-inspector.config.js +7 -0
- package/eslint.config.js +3 -0
- package/package.json +25 -34
- package/pnpm-workspace.yaml +3 -0
- package/src/configs/compat.js +17 -0
- package/src/configs/ignores.js +16 -0
- package/src/configs/index.js +11 -0
- package/src/configs/javascript.js +38 -0
- package/src/configs/jsdoc.js +33 -0
- package/src/configs/macros.js +12 -0
- package/src/configs/package-json.js +29 -0
- package/src/configs/prettier.js +21 -0
- package/src/configs/stylistic.js +24 -0
- package/src/configs/unicorn.js +17 -0
- package/src/configs/unocss.js +19 -0
- package/src/configs/vue.js +143 -0
- package/src/env.js +27 -0
- package/src/globs.js +70 -0
- package/src/index.js +8 -0
- package/src/presets.js +70 -0
- package/src/utils.js +24 -0
- package/tsdown.config.js +9 -0
- package/vercel.json +7 -0
- package/dist/index.js +0 -822
package/.editorconfig
ADDED
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
package/LICENSE
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
This is free and unencumbered software released into the public domain.
|
|
2
|
-
|
|
3
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
-
distribute this software, either in source code form or as a compiled
|
|
5
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
-
means.
|
|
7
|
-
|
|
8
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
-
of this software dedicate any and all copyright interest in the
|
|
10
|
-
software to the public domain. We make this dedication for the benefit
|
|
11
|
-
of the public at large and to the detriment of our heirs and
|
|
12
|
-
successors. We intend this dedication to be an overt act of
|
|
13
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
-
software under copyright law.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
For more information, please refer to <https://unlicense.org/>
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org/>
|
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
# @cuiqg/eslint-config [](https://npmmirror.com/package/@cuiqg/eslint-config)
|
|
2
|
-
|
|
3
|
-
## 使用
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm i -D eslint @cuiqg/eslint-config
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
修改 `package.json` 文件
|
|
10
|
-
|
|
11
|
-
```diff
|
|
12
|
-
{
|
|
13
|
-
+ "type": "module",
|
|
14
|
-
"scripts": {
|
|
15
|
-
+ "lint": "eslint .",
|
|
16
|
-
+ "lint:fix": "eslint . --fix"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
创建 `eslint.config.js` 文件
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import cuiqg from '@cuiqg/eslint-config'
|
|
25
|
-
|
|
26
|
-
export default cuiqg()
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## 插件配置
|
|
30
|
-
|
|
31
|
-
安装 [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
|
32
|
-
|
|
33
|
-
创建配置文件 `.vscode/settings.json`
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"prettier.enable": false,
|
|
38
|
-
"editor.formatOnSave": false,
|
|
39
|
-
"eslint.useFlatConfig": true,
|
|
40
|
-
"editor.codeActionsOnSave": {
|
|
41
|
-
"source.fixAll.eslint": "explicit",
|
|
42
|
-
"source.organizeImports": "never"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
```
|
|
1
|
+
# @cuiqg/eslint-config [](https://npmmirror.com/package/@cuiqg/eslint-config)
|
|
2
|
+
|
|
3
|
+
## 使用
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i -D eslint @cuiqg/eslint-config
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
修改 `package.json` 文件
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
{
|
|
13
|
+
+ "type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
+ "lint": "eslint .",
|
|
16
|
+
+ "lint:fix": "eslint . --fix"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
创建 `eslint.config.js` 文件
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import cuiqg from '@cuiqg/eslint-config'
|
|
25
|
+
|
|
26
|
+
export default cuiqg()
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 插件配置
|
|
30
|
+
|
|
31
|
+
安装 [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
|
32
|
+
|
|
33
|
+
创建配置文件 `.vscode/settings.json`
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"prettier.enable": false,
|
|
38
|
+
"editor.formatOnSave": false,
|
|
39
|
+
"eslint.useFlatConfig": true,
|
|
40
|
+
"editor.codeActionsOnSave": {
|
|
41
|
+
"source.fixAll.eslint": "explicit",
|
|
42
|
+
"source.organizeImports": "never"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
package/bump.config.js
ADDED
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuiqg/eslint-config",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"description": "Eslint config for @cuiqg",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -14,52 +14,43 @@
|
|
|
14
14
|
"license": "Unlicense",
|
|
15
15
|
"author": "Tsuiqg <i@tsuiqg.me>",
|
|
16
16
|
"type": "module",
|
|
17
|
+
"main": "./dist/index.mjs",
|
|
18
|
+
"module": "./dist/index.mjs",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./dist/index.mjs",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
17
23
|
"devDependencies": {
|
|
18
24
|
"@cuiqg/prettier-config": "latest",
|
|
19
|
-
"@eslint/config-inspector": "^1.
|
|
20
|
-
"@eslint/eslintrc": "^3.3.
|
|
21
|
-
"bumpp": "^10.
|
|
22
|
-
"eslint": "^9.
|
|
23
|
-
"
|
|
24
|
-
"publint": "^0.3.12",
|
|
25
|
-
"tsdown": "^0.13.3"
|
|
25
|
+
"@eslint/config-inspector": "^1.4.2",
|
|
26
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
27
|
+
"bumpp": "^10.3.2",
|
|
28
|
+
"eslint": "^9.39.1",
|
|
29
|
+
"tsdown": "^0.16.8"
|
|
26
30
|
},
|
|
27
31
|
"peerDependencies": {
|
|
28
32
|
"eslint": ">=9.28.0"
|
|
29
33
|
},
|
|
30
34
|
"dependencies": {
|
|
31
|
-
"@eslint/js": "^9.
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@unocss/eslint-plugin": "^66.4.2",
|
|
35
|
+
"@eslint/js": "^9.39.1",
|
|
36
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
37
|
+
"@unocss/eslint-plugin": "^66.5.9",
|
|
35
38
|
"@vue-macros/eslint-config": "3.0.0-beta.21",
|
|
36
39
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
37
40
|
"eslint-config-prettier": "^10.1.8",
|
|
38
|
-
"eslint-flat-config-utils": "^2.1.
|
|
39
|
-
"eslint-plugin-
|
|
40
|
-
"eslint-plugin-
|
|
41
|
-
"eslint-plugin-
|
|
42
|
-
"eslint-plugin-
|
|
43
|
-
"eslint-plugin-jsonc": "^2.20.1",
|
|
44
|
-
"eslint-plugin-n": "^17.21.3",
|
|
45
|
-
"eslint-plugin-package-json": "^0.52.1",
|
|
46
|
-
"eslint-plugin-perfectionist": "^4.15.0",
|
|
41
|
+
"eslint-flat-config-utils": "^2.1.4",
|
|
42
|
+
"eslint-plugin-compat": "^6.0.2",
|
|
43
|
+
"eslint-plugin-jsdoc": "^61.4.1",
|
|
44
|
+
"eslint-plugin-package-json": "^0.85.0",
|
|
45
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
47
46
|
"eslint-plugin-prettier": "^5.5.4",
|
|
48
|
-
"eslint-plugin-
|
|
49
|
-
"eslint-plugin-vue": "^10.
|
|
50
|
-
"globals": "^16.
|
|
51
|
-
"jsonc-eslint-parser": "^2.4.
|
|
52
|
-
"local-pkg": "^1.1.
|
|
47
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
48
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
49
|
+
"globals": "^16.5.0",
|
|
50
|
+
"jsonc-eslint-parser": "^2.4.1",
|
|
51
|
+
"local-pkg": "^1.1.2",
|
|
53
52
|
"vue-eslint-parser": "^10.2.0"
|
|
54
53
|
},
|
|
55
|
-
"prettier": "@cuiqg/prettier-config",
|
|
56
|
-
"main": "./dist/index.js",
|
|
57
|
-
"exports": {
|
|
58
|
-
".": "./dist/index.js"
|
|
59
|
-
},
|
|
60
|
-
"files": [
|
|
61
|
-
"./dist"
|
|
62
|
-
],
|
|
63
54
|
"scripts": {
|
|
64
55
|
"build": "tsdown",
|
|
65
56
|
"dev": "tsdown --watch",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function compat() {
|
|
4
|
+
const pluginCompat = await interopDefault(import('eslint-plugin-compat'))
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'cuiqg/compat',
|
|
9
|
+
plugins: {
|
|
10
|
+
compat: pluginCompat
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
...pluginCompat.configs.recommended.rules
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GLOB_EXCLUDE } from '../globs'
|
|
2
|
+
import { interopDefault } from '../utils'
|
|
3
|
+
export async function ignores() {
|
|
4
|
+
const configGitignore = await interopDefault(import('eslint-config-flat-gitignore'))
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
ignores: [...GLOB_EXCLUDE],
|
|
9
|
+
name: 'cuiqg/ignores'
|
|
10
|
+
},
|
|
11
|
+
configGitignore({
|
|
12
|
+
name: 'cuiqg/gitignore',
|
|
13
|
+
strict: false
|
|
14
|
+
})
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ignores'
|
|
2
|
+
export * from './javascript'
|
|
3
|
+
export * from './jsdoc'
|
|
4
|
+
export * from './macros'
|
|
5
|
+
export * from './package-json'
|
|
6
|
+
export * from './prettier'
|
|
7
|
+
export * from './stylistic'
|
|
8
|
+
export * from './unocss'
|
|
9
|
+
export * from './vue'
|
|
10
|
+
export * from './compat'
|
|
11
|
+
export * from './unicorn'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import globals from 'globals'
|
|
2
|
+
import { interopDefault } from '../utils'
|
|
3
|
+
export async function javascript() {
|
|
4
|
+
const [pluginJs] = await Promise.all([
|
|
5
|
+
interopDefault(import('@eslint/js'))
|
|
6
|
+
])
|
|
7
|
+
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
globals: {
|
|
13
|
+
...globals.browser,
|
|
14
|
+
...globals.es2025,
|
|
15
|
+
...globals.node
|
|
16
|
+
},
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaFeatures: {
|
|
19
|
+
jsx: true
|
|
20
|
+
},
|
|
21
|
+
ecmaVersion: 'latest',
|
|
22
|
+
sourceType: 'module'
|
|
23
|
+
},
|
|
24
|
+
sourceType: 'module'
|
|
25
|
+
},
|
|
26
|
+
linterOptions: {
|
|
27
|
+
reportUnusedDisableDirectives: true
|
|
28
|
+
},
|
|
29
|
+
name: 'cuiqg/javascript',
|
|
30
|
+
plugins: {
|
|
31
|
+
js: pluginJs
|
|
32
|
+
},
|
|
33
|
+
rules: {
|
|
34
|
+
...pluginJs.configs.recommended.rules
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function jsdoc() {
|
|
4
|
+
const pluginJsdoc = await interopDefault(import('eslint-plugin-jsdoc'))
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'cuiqg/jsdoc',
|
|
9
|
+
plugins: {
|
|
10
|
+
jsdoc: pluginJsdoc
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
'jsdoc/check-access': 'warn',
|
|
14
|
+
'jsdoc/check-param-names': 'warn',
|
|
15
|
+
'jsdoc/check-property-names': 'warn',
|
|
16
|
+
'jsdoc/check-types': 'warn',
|
|
17
|
+
'jsdoc/empty-tags': 'warn',
|
|
18
|
+
'jsdoc/implements-on-classes': 'warn',
|
|
19
|
+
'jsdoc/no-defaults': 'warn',
|
|
20
|
+
'jsdoc/no-multi-asterisks': 'warn',
|
|
21
|
+
'jsdoc/require-param-name': 'warn',
|
|
22
|
+
'jsdoc/require-property': 'warn',
|
|
23
|
+
'jsdoc/require-property-description': 'warn',
|
|
24
|
+
'jsdoc/require-property-name': 'warn',
|
|
25
|
+
'jsdoc/require-returns-check': 'warn',
|
|
26
|
+
'jsdoc/require-returns-description': 'warn',
|
|
27
|
+
'jsdoc/require-yields-check': 'warn',
|
|
28
|
+
'jsdoc/check-alignment': 'warn',
|
|
29
|
+
'jsdoc/multiline-blocks': 'warn'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function packageJson() {
|
|
4
|
+
const [pluginPackageJson, parserJsonc] = await Promise.all([
|
|
5
|
+
interopDefault(import('eslint-plugin-package-json')),
|
|
6
|
+
interopDefault(import('jsonc-eslint-parser'))
|
|
7
|
+
])
|
|
8
|
+
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
files: ['**/package.json'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser: parserJsonc
|
|
14
|
+
},
|
|
15
|
+
name: 'cuiqg/package-json',
|
|
16
|
+
plugins: {
|
|
17
|
+
'package-json': pluginPackageJson
|
|
18
|
+
},
|
|
19
|
+
rules: {
|
|
20
|
+
...pluginPackageJson.configs.recommended.rules
|
|
21
|
+
},
|
|
22
|
+
settings: {
|
|
23
|
+
packageJson: {
|
|
24
|
+
enforceForPrivate: false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function prettier() {
|
|
4
|
+
const [pluginPrettier, recommendedPrettier] = await Promise.all([
|
|
5
|
+
interopDefault(import('eslint-plugin-prettier')),
|
|
6
|
+
interopDefault(import('eslint-plugin-prettier/recommended'))
|
|
7
|
+
])
|
|
8
|
+
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
name: 'cuiqg/prettier',
|
|
12
|
+
plugins: {
|
|
13
|
+
prettier: pluginPrettier
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
...recommendedPrettier.rules,
|
|
17
|
+
'prettier/prettier': 'warn'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function stylistic() {
|
|
4
|
+
const pluginStylistic = await interopDefault(import('@stylistic/eslint-plugin'))
|
|
5
|
+
|
|
6
|
+
const config = pluginStylistic.configs.customize({
|
|
7
|
+
commaDangle: 'never',
|
|
8
|
+
indent: 2,
|
|
9
|
+
pluginName: 'style',
|
|
10
|
+
quotes: 'single',
|
|
11
|
+
semi: false
|
|
12
|
+
})
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
name: 'cuiqg/stylistic',
|
|
16
|
+
plugins: {
|
|
17
|
+
style: pluginStylistic
|
|
18
|
+
},
|
|
19
|
+
rules: {
|
|
20
|
+
...config.rules
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { interopDefault } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function unicorn() {
|
|
4
|
+
const pluginUnicorn = await interopDefault(import('eslint-plugin-unicorn'))
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'cuiqg/unicorn',
|
|
9
|
+
plugins: {
|
|
10
|
+
unicorn: pluginUnicorn
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
...pluginUnicorn.configs?.recommended?.rules
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { interopDefault, renameRules } from '../utils'
|
|
2
|
+
|
|
3
|
+
export async function unocss() {
|
|
4
|
+
const pluginUnoCSS = await interopDefault(import('@unocss/eslint-plugin'))
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'cuiqg/unocss',
|
|
9
|
+
plugins: {
|
|
10
|
+
unocss: pluginUnoCSS
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
...renameRules(pluginUnoCSS.configs.recommended.rules, {
|
|
14
|
+
'@unocss': 'unocss'
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|