@sxzz/eslint-config 5.3.0 → 6.0.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 +4 -7
- package/dist/index.d.ts +4242 -9200
- package/dist/index.js +106 -84
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -14,9 +14,6 @@ and Prettier.
|
|
|
14
14
|
- Reasonable defaults, best practices, only one-line of config
|
|
15
15
|
- Reasonable strict, but with better code quality.
|
|
16
16
|
|
|
17
|
-
> [!TIP]
|
|
18
|
-
> Support for Vue 2 is deprecated.
|
|
19
|
-
|
|
20
17
|
## Install
|
|
21
18
|
|
|
22
19
|
```bash
|
|
@@ -30,9 +27,6 @@ Require Node.js >= 18.18, and ESLint >= 9.5.0.
|
|
|
30
27
|
```js
|
|
31
28
|
import { sxzz } from '@sxzz/eslint-config'
|
|
32
29
|
export default sxzz(
|
|
33
|
-
[
|
|
34
|
-
/* your custom config */
|
|
35
|
-
],
|
|
36
30
|
// Features: it'll detect installed dependency and enable necessary features automatically
|
|
37
31
|
{
|
|
38
32
|
prettier: true,
|
|
@@ -40,7 +34,10 @@ export default sxzz(
|
|
|
40
34
|
vue: true, // auto detection
|
|
41
35
|
unocss: false, // auto detection
|
|
42
36
|
},
|
|
43
|
-
|
|
37
|
+
[
|
|
38
|
+
/* your custom config */
|
|
39
|
+
],
|
|
40
|
+
).removeRules('foo/bar') // see more in https://github.com/antfu/eslint-flat-config-utils
|
|
44
41
|
```
|
|
45
42
|
|
|
46
43
|
### Presets
|