@vida0905/eslint-config 0.1.7 → 0.2.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 CHANGED
@@ -8,7 +8,6 @@ Self use eslint config, extends [antfu's config](https://github.com/antfu/eslint
8
8
 
9
9
  - More stricter rules.
10
10
  - Support `pinia`.
11
- - Set `semi` to `true`
12
11
  - Disable `formatter` and `jsx`
13
12
 
14
13
  ### Setup
@@ -27,9 +26,10 @@ export default vida();
27
26
 
28
27
  in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.com/antfu/eslint-config?tab=readme-ov-file#vs-code-support-auto-fix-on-save)
29
28
 
30
- ```json
29
+ ```jsonc
31
30
  {
32
31
  // Enable the ESlint flat config support
32
+ // (remove this if your ESLint extension above v3.0.5)
33
33
  "eslint.experimental.useFlatConfig": true,
34
34
 
35
35
  // Disable the default formatter, use eslint instead
@@ -42,6 +42,20 @@ in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.c
42
42
  "source.organizeImports": "never"
43
43
  },
44
44
 
45
+ // Silent the stylistic rules in you IDE, but still auto fix them
46
+ "eslint.rules.customizations": [
47
+ { "rule": "style/*", "severity": "off" },
48
+ { "rule": "format/*", "severity": "off" },
49
+ { "rule": "*-indent", "severity": "off" },
50
+ { "rule": "*-spacing", "severity": "off" },
51
+ { "rule": "*-spaces", "severity": "off" },
52
+ { "rule": "*-order", "severity": "off" },
53
+ { "rule": "*-dangle", "severity": "off" },
54
+ { "rule": "*-newline", "severity": "off" },
55
+ { "rule": "*quotes", "severity": "off" },
56
+ { "rule": "*semi", "severity": "off" }
57
+ ],
58
+
45
59
  // Enable eslint for all supported languages
46
60
  "eslint.validate": [
47
61
  "javascript",
@@ -58,7 +72,12 @@ in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.c
58
72
  "xml",
59
73
  "gql",
60
74
  "graphql",
61
- "astro"
75
+ "astro",
76
+ "css",
77
+ "less",
78
+ "scss",
79
+ "pcss",
80
+ "postcss"
62
81
  ]
63
82
  }
64
83
  ```
package/dist/index.cjs CHANGED
@@ -90,9 +90,10 @@ function vida(options = {}, ...userConfigs) {
90
90
  stylistic: {
91
91
  indent: 2,
92
92
  quotes: "single",
93
- semi: true,
93
+ semi: false,
94
94
  overrides: {
95
- "style/arrow-parens": ["error", "always"]
95
+ "style/arrow-parens": ["error", "always"],
96
+ "style/brace-style": ["error", "1tbs", { allowSingleLine: true }]
96
97
  }
97
98
  },
98
99
  javascript: {
package/dist/index.js CHANGED
@@ -54,9 +54,10 @@ function vida(options = {}, ...userConfigs) {
54
54
  stylistic: {
55
55
  indent: 2,
56
56
  quotes: "single",
57
- semi: true,
57
+ semi: false,
58
58
  overrides: {
59
- "style/arrow-parens": ["error", "always"]
59
+ "style/arrow-parens": ["error", "always"],
60
+ "style/brace-style": ["error", "1tbs", { allowSingleLine: true }]
60
61
  }
61
62
  },
62
63
  javascript: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "packageManager": "pnpm@9.1.2",
6
6
  "description": "Vida Xie's ESLint Config",
7
7
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",