@ithinkdt/lint 4.0.6 → 4.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/lint",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "type": "module",
5
5
  "description": "iThinkDT 项目的 ESLint、StyleLint 配置",
6
6
  "keywords": [
package/src/base.js CHANGED
@@ -180,6 +180,9 @@ export function base({ stylistic: stylisticOptions, inCI }) {
180
180
  // 与 ts/no-this-alias 重复
181
181
  'unicorn/no-this-assignment': 'off',
182
182
 
183
+ // vue 中 this 会误报
184
+ 'unicorn/no-this-outside-of-class': 'off',
185
+
183
186
  'unicorn/template-indent': 'off',
184
187
  'unicorn/empty-brace-spaces': 'off',
185
188
  'unicorn/no-nested-ternary': 'off',
@@ -28,11 +28,9 @@ export function resolveProjectList(options) {
28
28
 
29
29
  for (const folder of options.projectFolderIgnoreList ?? ['**/node_modules/**']) {
30
30
  if (typeof folder === 'string') {
31
- projectFolderIgnoreList.push(folder)
31
+ projectFolderIgnoreList.push(folder.startsWith('!') ? folder : `!${folder}`)
32
32
  }
33
33
  }
34
- // prefix with a ! for not match glob
35
- projectFolderIgnoreList.map(folder => (folder.startsWith('!') ? folder : `!${folder}`))
36
34
 
37
35
  // Transform glob patterns into paths
38
36
  const nonGlobProjects = sanitizedProjects.filter(project => !isGlob(project))