@icebreakers/eslint-config 0.3.8 → 0.3.10
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 +2 -14
- package/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @icebreakers/eslint-config
|
|
2
2
|
|
|
3
|
-
> extend [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config) and add `prettier` support!
|
|
3
|
+
> extend [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config) and add `tailwindcss` , `mdx` , and `prettier` format support!
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -15,20 +15,8 @@ import { icebreaker } from '@icebreakers/eslint-config'
|
|
|
15
15
|
export default icebreaker()
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
or use with `prettier`:
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
// eslint.config.mjs
|
|
22
|
-
import { icebreaker } from '@icebreakers/eslint-config'
|
|
23
|
-
|
|
24
|
-
export default icebreaker({
|
|
25
|
-
prettier: true,
|
|
26
|
-
stylistic: false,
|
|
27
|
-
})
|
|
28
|
-
```
|
|
29
|
-
|
|
30
18
|
## VS Code support
|
|
31
19
|
|
|
32
20
|
Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
|
33
21
|
|
|
34
|
-
Version: `^3.0.
|
|
22
|
+
Version: `^3.0.10` ( >=`3.0.10`)
|
package/dist/index.cjs
CHANGED
|
@@ -75,7 +75,9 @@ function icebreaker(options = {}, ...userConfigs) {
|
|
|
75
75
|
"ts/prefer-ts-expect-error": "off",
|
|
76
76
|
"ts/ban-ts-comment": "off",
|
|
77
77
|
"vue/attribute-hyphenation": "off",
|
|
78
|
-
|
|
78
|
+
// 问题在于 auto fix 的时候,会直接 remove 整个 import ,而我们想让用户自己去 remove
|
|
79
|
+
// 'unused-imports/no-unused-imports': 'error',
|
|
80
|
+
"no-unused-vars": "warn"
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -73,7 +73,9 @@ function icebreaker(options = {}, ...userConfigs) {
|
|
|
73
73
|
"ts/prefer-ts-expect-error": "off",
|
|
74
74
|
"ts/ban-ts-comment": "off",
|
|
75
75
|
"vue/attribute-hyphenation": "off",
|
|
76
|
-
|
|
76
|
+
// 问题在于 auto fix 的时候,会直接 remove 整个 import ,而我们想让用户自己去 remove
|
|
77
|
+
// 'unused-imports/no-unused-imports': 'error',
|
|
78
|
+
"no-unused-vars": "warn"
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.10",
|
|
5
5
|
"description": "icebreakers's eslint config",
|
|
6
6
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@antfu/eslint-config": "2.21.
|
|
36
|
+
"@antfu/eslint-config": "2.21.2",
|
|
37
37
|
"eslint-plugin-format": "0.1.2",
|
|
38
38
|
"eslint-plugin-mdx": "3.1.5",
|
|
39
|
-
"eslint-plugin-tailwindcss": "3.17.
|
|
39
|
+
"eslint-plugin-tailwindcss": "3.17.4",
|
|
40
40
|
"local-pkg": "0.5.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|