@sxzz/eslint-config 3.2.0 → 3.2.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/index.cjs +6 -5
- package/package.json +1 -1
- package/src/js.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",
|
|
@@ -502,7 +503,7 @@ var typescript = [
|
|
|
502
503
|
},
|
|
503
504
|
rules: {
|
|
504
505
|
...import_eslint_plugin2.default.configs["eslint-recommended"].overrides[0].rules,
|
|
505
|
-
...import_eslint_plugin2.default.configs
|
|
506
|
+
...import_eslint_plugin2.default.configs.strict.rules,
|
|
506
507
|
"@typescript-eslint/no-redeclare": "error",
|
|
507
508
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
508
509
|
"@typescript-eslint/ban-types": "off",
|
|
@@ -610,16 +611,16 @@ var vueCustomRules = {
|
|
|
610
611
|
"vue/no-empty-pattern": "error"
|
|
611
612
|
};
|
|
612
613
|
var vue3Rules = {
|
|
613
|
-
...import_eslint_plugin_vue.default.configs
|
|
614
|
+
...import_eslint_plugin_vue.default.configs.base.rules,
|
|
614
615
|
...import_eslint_plugin_vue.default.configs["vue3-essential"].rules,
|
|
615
616
|
...import_eslint_plugin_vue.default.configs["vue3-strongly-recommended"].rules,
|
|
616
617
|
...import_eslint_plugin_vue.default.configs["vue3-recommended"].rules
|
|
617
618
|
};
|
|
618
619
|
var vue2Rules = {
|
|
619
|
-
...import_eslint_plugin_vue.default.configs
|
|
620
|
-
...import_eslint_plugin_vue.default.configs
|
|
620
|
+
...import_eslint_plugin_vue.default.configs.base.rules,
|
|
621
|
+
...import_eslint_plugin_vue.default.configs.essential.rules,
|
|
621
622
|
...import_eslint_plugin_vue.default.configs["strongly-recommended"].rules,
|
|
622
|
-
...import_eslint_plugin_vue.default.configs
|
|
623
|
+
...import_eslint_plugin_vue.default.configs.recommended.rules
|
|
623
624
|
};
|
|
624
625
|
var vue = [
|
|
625
626
|
{
|
package/package.json
CHANGED
package/src/js.js
CHANGED
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[]} */
|