@sxzz/eslint-config 3.1.2 → 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 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,8 +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["recommended"].rules,
506
- "@typescript-eslint/no-unused-vars": "error",
506
+ ...import_eslint_plugin2.default.configs.strict.rules,
507
507
  "@typescript-eslint/no-redeclare": "error",
508
508
  "@typescript-eslint/ban-ts-comment": "off",
509
509
  "@typescript-eslint/ban-types": "off",
@@ -511,7 +511,6 @@ var typescript = [
511
511
  "error",
512
512
  { fixStyle: "inline-type-imports", disallowTypeAnnotations: false }
513
513
  ],
514
- "@typescript-eslint/explicit-module-boundary-types": "off",
515
514
  "@typescript-eslint/no-explicit-any": "off",
516
515
  "@typescript-eslint/no-non-null-assertion": "off",
517
516
  "@typescript-eslint/prefer-as-const": "warn"
@@ -612,16 +611,16 @@ var vueCustomRules = {
612
611
  "vue/no-empty-pattern": "error"
613
612
  };
614
613
  var vue3Rules = {
615
- ...import_eslint_plugin_vue.default.configs["base"].rules,
614
+ ...import_eslint_plugin_vue.default.configs.base.rules,
616
615
  ...import_eslint_plugin_vue.default.configs["vue3-essential"].rules,
617
616
  ...import_eslint_plugin_vue.default.configs["vue3-strongly-recommended"].rules,
618
617
  ...import_eslint_plugin_vue.default.configs["vue3-recommended"].rules
619
618
  };
620
619
  var vue2Rules = {
621
- ...import_eslint_plugin_vue.default.configs["base"].rules,
622
- ...import_eslint_plugin_vue.default.configs["essential"].rules,
620
+ ...import_eslint_plugin_vue.default.configs.base.rules,
621
+ ...import_eslint_plugin_vue.default.configs.essential.rules,
623
622
  ...import_eslint_plugin_vue.default.configs["strongly-recommended"].rules,
624
- ...import_eslint_plugin_vue.default.configs["recommended"].rules
623
+ ...import_eslint_plugin_vue.default.configs.recommended.rules
625
624
  };
626
625
  var vue = [
627
626
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.1.2",
4
- "packageManager": "pnpm@8.6.5",
3
+ "version": "3.2.1",
4
+ "packageManager": "pnpm@8.6.7",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@eslint/js": "^8.44.0",
35
- "@typescript-eslint/eslint-plugin": "^5.61.0",
36
- "@typescript-eslint/parser": "^5.61.0",
35
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
36
+ "@typescript-eslint/parser": "^6.0.0",
37
37
  "eslint-config-prettier": "^8.8.0",
38
38
  "eslint-define-config": "^1.21.0",
39
39
  "eslint-plugin-antfu": "^0.39.7",
@@ -41,7 +41,7 @@
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
- "eslint-plugin-prettier": "^5.0.0-alpha.2",
44
+ "eslint-plugin-prettier": "^5.0.0",
45
45
  "eslint-plugin-unicorn": "^47.0.0",
46
46
  "eslint-plugin-vue": "^9.15.1",
47
47
  "eslint-plugin-yml": "^1.8.0",
@@ -53,8 +53,8 @@
53
53
  "yaml-eslint-parser": "^1.2.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@sxzz/prettier-config": "^1.0.3",
57
- "@types/node": "^20.4.0",
56
+ "@sxzz/prettier-config": "^1.0.4",
57
+ "@types/node": "^20.4.1",
58
58
  "bumpp": "^9.1.1",
59
59
  "eslint": "^8.44.0",
60
60
  "tsup": "^7.1.0",
package/src/js.js CHANGED
@@ -42,6 +42,7 @@ export const js = [
42
42
  allowSeparatedGroups: false,
43
43
  },
44
44
  ],
45
+ 'dot-notation': 'warn',
45
46
 
46
47
  'no-var': 'error',
47
48
  'prefer-const': [
package/src/typescript.js CHANGED
@@ -19,9 +19,8 @@ export const typescript = [
19
19
  },
20
20
  rules: {
21
21
  ...tsPlugin.configs['eslint-recommended'].overrides[0].rules,
22
- ...tsPlugin.configs['recommended'].rules,
22
+ ...tsPlugin.configs.strict.rules,
23
23
 
24
- '@typescript-eslint/no-unused-vars': 'error',
25
24
  '@typescript-eslint/no-redeclare': 'error',
26
25
 
27
26
  '@typescript-eslint/ban-ts-comment': 'off',
@@ -30,7 +29,6 @@ export const typescript = [
30
29
  'error',
31
30
  { fixStyle: 'inline-type-imports', disallowTypeAnnotations: false },
32
31
  ],
33
- '@typescript-eslint/explicit-module-boundary-types': 'off',
34
32
  '@typescript-eslint/no-explicit-any': 'off',
35
33
  '@typescript-eslint/no-non-null-assertion': 'off',
36
34
  '@typescript-eslint/prefer-as-const': 'warn',
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['base'].rules,
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['base'].rules,
101
- ...vuePlugin.configs['essential'].rules,
100
+ ...vuePlugin.configs.base.rules,
101
+ ...vuePlugin.configs.essential.rules,
102
102
  ...vuePlugin.configs['strongly-recommended'].rules,
103
- ...vuePlugin.configs['recommended'].rules,
103
+ ...vuePlugin.configs.recommended.rules,
104
104
  }
105
105
 
106
106
  /** @type {import('eslint-define-config').FlatESLintConfigItem[]} */