@lincy/eslint-config 4.7.0 → 5.1.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
@@ -52,17 +52,14 @@ export default lincy()
52
52
 
53
53
  ```jsonc
54
54
  {
55
- // 开启eslint扁平化配置
56
- "eslint.experimental.useFlatConfig": true,
57
-
58
55
  // 禁用默认的格式化
59
56
  "prettier.enable": false,
60
57
  "editor.formatOnSave": false,
61
58
 
62
59
  // 开启自动修复
63
60
  "editor.codeActionsOnSave": {
64
- "source.fixAll.eslint": true,
65
- "source.organizeImports": false
61
+ "source.fixAll.eslint": "explicit",
62
+ "source.organizeImports": "never"
66
63
  },
67
64
 
68
65
  // 在 IDE 中静默样式规则,但仍会自动修复它们
@@ -92,6 +89,9 @@ export default lincy()
92
89
  "jsonc",
93
90
  "yaml",
94
91
  "toml",
92
+ "xml",
93
+ "gql",
94
+ "graphql",
95
95
  "css",
96
96
  "less",
97
97
  "scss",
@@ -267,8 +267,6 @@ export default lincy({
267
267
  },
268
268
 
269
269
  // 工厂函数第一个参数默认为各规则的开关, 但是也可以作为追加规则使用, 当包含以下键名将会自动整合到一个规则里
270
- files: [],
271
- ignores: [],
272
270
  languageOptions: {},
273
271
  linterOptions: {},
274
272
  processor: {},
@@ -284,6 +282,7 @@ export default lincy({
284
282
  ```js
285
283
  // eslint.config.js
286
284
  import { readFile } from 'node:fs/promises'
285
+
287
286
  import lincy from '@lincy/eslint-config'
288
287
  import plugin from '@unocss/eslint-plugin'
289
288