@ithinkdt/lint 4.0.5 → 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.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "iThinkDT 项目的 ESLint、StyleLint 配置",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@eslint/json": ">=2.0.0",
|
|
38
38
|
"@eslint/markdown": "^8.0.2",
|
|
39
39
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
40
|
-
"@typescript-eslint/parser": "^8.
|
|
40
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
41
41
|
"@unocss/eslint-config": "^66.7.0",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.19",
|
|
43
43
|
"@vue/compiler-sfc": "^3.5.35",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
51
51
|
"eslint-plugin-playwright": "^2.10.4",
|
|
52
52
|
"eslint-plugin-tsdoc": ">=0.5.2",
|
|
53
|
-
"eslint-plugin-unicorn": "^65.0.
|
|
53
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
54
54
|
"eslint-plugin-vue": "^10.9.2",
|
|
55
55
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
56
56
|
"globals": "^17.6.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"stylelint-config-standard": "^40.0.0",
|
|
61
61
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
62
62
|
"stylelint-order": "^8.1.1",
|
|
63
|
-
"typescript-eslint": "^8.
|
|
63
|
+
"typescript-eslint": "^8.61.0",
|
|
64
64
|
"vue-eslint-parser": "^10.4.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
package/src/base.js
CHANGED
|
@@ -140,6 +140,12 @@ export function base({ stylistic: stylisticOptions, inCI }) {
|
|
|
140
140
|
// 不提升箭头函数
|
|
141
141
|
'unicorn/consistent-function-scoping': 'off',
|
|
142
142
|
|
|
143
|
+
// 关闭 better-dom-traversing
|
|
144
|
+
'unicorn/better-dom-traversing': 'off',
|
|
145
|
+
|
|
146
|
+
// 关闭优先使用 https
|
|
147
|
+
'unicorn/prefer-https': 'off',
|
|
148
|
+
|
|
143
149
|
// 文件名拼写忽略组件
|
|
144
150
|
'unicorn/filename-case': ['warn', {
|
|
145
151
|
case: 'kebabCase',
|
|
@@ -174,6 +180,9 @@ export function base({ stylistic: stylisticOptions, inCI }) {
|
|
|
174
180
|
// 与 ts/no-this-alias 重复
|
|
175
181
|
'unicorn/no-this-assignment': 'off',
|
|
176
182
|
|
|
183
|
+
// vue 中 this 会误报
|
|
184
|
+
'unicorn/no-this-outside-of-class': 'off',
|
|
185
|
+
|
|
177
186
|
'unicorn/template-indent': 'off',
|
|
178
187
|
'unicorn/empty-brace-spaces': 'off',
|
|
179
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))
|