@lincy/eslint-config 3.4.0 → 3.4.1

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
@@ -129,21 +129,21 @@ import lincy from '@lincy/eslint-config'
129
129
 
130
130
  export default lincy({
131
131
  // 是否启用 stylistic 格式化规则
132
- stylistic: true, // 默认值: true
132
+ stylistic: true, // 默认值: true, 可选: false | { indent: number | 'tab', quotes: 'single' | 'double'}
133
133
  // 是否启用 typescript 规则
134
- typescript: true, // 默认值: 检测是否安装typescript依赖
134
+ typescript: true, // 默认值: 检测是否安装typescript依赖, 可选: false
135
135
  // 是否启用 vue 规则
136
- vue: true, // 默认值: 检测是否安装vue依赖
136
+ vue: true, // 默认值: 检测是否安装vue依赖, 可选: false
137
137
  // 是否启用 jsonc 规则
138
- jsonc: false, // 默认值: 检测是否安装typescript依赖
138
+ jsonc: false, // 默认值: true, 可选: false
139
139
  // 是否启用 yaml 规则
140
- yaml: false, // 默认值: true
140
+ yaml: false, // 默认值: true, 可选: false
141
141
  // 是否启用 .gitignore 文件
142
- gitignore: false, // 默认值: true
142
+ gitignore: false, // 默认值: true, 可选: false
143
143
  // 是否启用 test 规则
144
- test: false, // 默认值: true
144
+ test: false, // 默认值: true, 可选: false
145
145
  // 是否启用 markdown 规则
146
- markdown: false, // 默认值: true
146
+ markdown: false, // 默认值: true, 可选: false
147
147
  // 覆盖规则
148
148
  overrides: {},
149
149
 
package/dist/index.cjs CHANGED
@@ -8060,7 +8060,7 @@ function typescript(options) {
8060
8060
  rules: {
8061
8061
  "eslint-comments/no-unlimited-disable": OFF,
8062
8062
  "import/no-duplicates": OFF,
8063
- "no-restricted-syntax": ["error", "[declare=true]"],
8063
+ "no-restricted-syntax": OFF,
8064
8064
  "unused-imports/no-unused-vars": OFF
8065
8065
  }
8066
8066
  },
package/dist/index.js CHANGED
@@ -7894,7 +7894,7 @@ function typescript(options) {
7894
7894
  rules: {
7895
7895
  "eslint-comments/no-unlimited-disable": OFF,
7896
7896
  "import/no-duplicates": OFF,
7897
- "no-restricted-syntax": ["error", "[declare=true]"],
7897
+ "no-restricted-syntax": OFF,
7898
7898
  "unused-imports/no-unused-vars": OFF
7899
7899
  }
7900
7900
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "packageManager": "pnpm@8.7.6",
6
6
  "description": "LinCenYing's ESLint config",
7
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",