@sxzz/eslint-config 3.2.0 → 3.2.2
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/index.cjs +7 -5
- package/package.json +6 -6
- package/src/js.js +1 -0
- package/src/markdown.js +1 -0
- package/src/typescript.js +1 -1
- package/src/vue.js +4 -4
package/index.cjs
CHANGED
|
@@ -169,6 +169,7 @@ var js = [
|
|
|
169
169
|
allowSeparatedGroups: false
|
|
170
170
|
}
|
|
171
171
|
],
|
|
172
|
+
"dot-notation": "warn",
|
|
172
173
|
"no-var": "error",
|
|
173
174
|
"prefer-const": [
|
|
174
175
|
"warn",
|
|
@@ -457,6 +458,7 @@ var markdown = [
|
|
|
457
458
|
"@typescript-eslint/no-unused-vars": "off",
|
|
458
459
|
"@typescript-eslint/no-use-before-define": "off",
|
|
459
460
|
"@typescript-eslint/no-var-requires": "off",
|
|
461
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
460
462
|
"no-alert": "off",
|
|
461
463
|
"no-console": "off",
|
|
462
464
|
"no-restricted-imports": "off",
|
|
@@ -502,7 +504,7 @@ var typescript = [
|
|
|
502
504
|
},
|
|
503
505
|
rules: {
|
|
504
506
|
...import_eslint_plugin2.default.configs["eslint-recommended"].overrides[0].rules,
|
|
505
|
-
...import_eslint_plugin2.default.configs
|
|
507
|
+
...import_eslint_plugin2.default.configs.strict.rules,
|
|
506
508
|
"@typescript-eslint/no-redeclare": "error",
|
|
507
509
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
508
510
|
"@typescript-eslint/ban-types": "off",
|
|
@@ -610,16 +612,16 @@ var vueCustomRules = {
|
|
|
610
612
|
"vue/no-empty-pattern": "error"
|
|
611
613
|
};
|
|
612
614
|
var vue3Rules = {
|
|
613
|
-
...import_eslint_plugin_vue.default.configs
|
|
615
|
+
...import_eslint_plugin_vue.default.configs.base.rules,
|
|
614
616
|
...import_eslint_plugin_vue.default.configs["vue3-essential"].rules,
|
|
615
617
|
...import_eslint_plugin_vue.default.configs["vue3-strongly-recommended"].rules,
|
|
616
618
|
...import_eslint_plugin_vue.default.configs["vue3-recommended"].rules
|
|
617
619
|
};
|
|
618
620
|
var vue2Rules = {
|
|
619
|
-
...import_eslint_plugin_vue.default.configs
|
|
620
|
-
...import_eslint_plugin_vue.default.configs
|
|
621
|
+
...import_eslint_plugin_vue.default.configs.base.rules,
|
|
622
|
+
...import_eslint_plugin_vue.default.configs.essential.rules,
|
|
621
623
|
...import_eslint_plugin_vue.default.configs["strongly-recommended"].rules,
|
|
622
|
-
...import_eslint_plugin_vue.default.configs
|
|
624
|
+
...import_eslint_plugin_vue.default.configs.recommended.rules
|
|
623
625
|
};
|
|
624
626
|
var vue = [
|
|
625
627
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"packageManager": "pnpm@8.6.7",
|
|
5
5
|
"description": "ESLint config for @sxzz.",
|
|
6
6
|
"type": "module",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"eslint": "^8.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@eslint/js": "^8.
|
|
34
|
+
"@eslint/js": "^8.45.0",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
36
36
|
"@typescript-eslint/parser": "^6.0.0",
|
|
37
37
|
"eslint-config-prettier": "^8.8.0",
|
|
38
38
|
"eslint-define-config": "^1.21.0",
|
|
39
|
-
"eslint-plugin-antfu": "^0.39.
|
|
39
|
+
"eslint-plugin-antfu": "^0.39.8",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-import": "^2.27.5",
|
|
42
42
|
"eslint-plugin-jsonc": "^2.9.0",
|
|
43
43
|
"eslint-plugin-markdown": "^3.0.0",
|
|
44
44
|
"eslint-plugin-prettier": "^5.0.0",
|
|
45
|
-
"eslint-plugin-unicorn": "^
|
|
45
|
+
"eslint-plugin-unicorn": "^48.0.0",
|
|
46
46
|
"eslint-plugin-vue": "^9.15.1",
|
|
47
47
|
"eslint-plugin-yml": "^1.8.0",
|
|
48
48
|
"globals": "^13.20.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@sxzz/prettier-config": "^1.0.4",
|
|
57
|
-
"@types/node": "^20.4.
|
|
57
|
+
"@types/node": "^20.4.2",
|
|
58
58
|
"bumpp": "^9.1.1",
|
|
59
|
-
"eslint": "^8.
|
|
59
|
+
"eslint": "^8.45.0",
|
|
60
60
|
"tsup": "^7.1.0",
|
|
61
61
|
"typescript": "^5.1.6"
|
|
62
62
|
},
|
package/src/js.js
CHANGED
package/src/markdown.js
CHANGED
|
@@ -30,6 +30,7 @@ export const markdown = [
|
|
|
30
30
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
31
31
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
32
32
|
'@typescript-eslint/no-var-requires': 'off',
|
|
33
|
+
'@typescript-eslint/no-extraneous-class': 'off',
|
|
33
34
|
'no-alert': 'off',
|
|
34
35
|
'no-console': 'off',
|
|
35
36
|
'no-restricted-imports': 'off',
|
package/src/typescript.js
CHANGED
package/src/vue.js
CHANGED
|
@@ -89,7 +89,7 @@ const vueCustomRules = {
|
|
|
89
89
|
|
|
90
90
|
/** @type {import('eslint-define-config').Rules} */
|
|
91
91
|
const vue3Rules = {
|
|
92
|
-
...vuePlugin.configs
|
|
92
|
+
...vuePlugin.configs.base.rules,
|
|
93
93
|
...vuePlugin.configs['vue3-essential'].rules,
|
|
94
94
|
...vuePlugin.configs['vue3-strongly-recommended'].rules,
|
|
95
95
|
...vuePlugin.configs['vue3-recommended'].rules,
|
|
@@ -97,10 +97,10 @@ const vue3Rules = {
|
|
|
97
97
|
|
|
98
98
|
/** @type {import('eslint-define-config').Rules} */
|
|
99
99
|
const vue2Rules = {
|
|
100
|
-
...vuePlugin.configs
|
|
101
|
-
...vuePlugin.configs
|
|
100
|
+
...vuePlugin.configs.base.rules,
|
|
101
|
+
...vuePlugin.configs.essential.rules,
|
|
102
102
|
...vuePlugin.configs['strongly-recommended'].rules,
|
|
103
|
-
...vuePlugin.configs
|
|
103
|
+
...vuePlugin.configs.recommended.rules,
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
|