@alexlit/config-eslint 158.0.1 → 159.0.0

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": "@alexlit/config-eslint",
3
- "version": "158.0.1",
3
+ "version": "159.0.0",
4
4
  "private": false,
5
5
  "description": "Sharable ESLint configuration",
6
6
  "keywords": [
@@ -61,7 +61,7 @@
61
61
  "eslint-plugin-unicorn": "^76.0.0",
62
62
  "eslint-plugin-vue": "^10.11.1",
63
63
  "eslint-plugin-vuejs-accessibility": "^2.6.0",
64
- "eslint-plugin-zod": "^4.14.2",
64
+ "eslint-plugin-zod": "^5.0.0",
65
65
  "globals": "^17.12.0",
66
66
  "jsonc-eslint-parser": "^3.3.0",
67
67
  "typescript": "^6.0.3",
@@ -43,6 +43,7 @@ export const importX = defineConfig([
43
43
  'import-x/no-named-as-default-member': 'off',
44
44
  'import-x/no-nodejs-modules': 'off',
45
45
  'import-x/no-self-import': 'error',
46
+ 'import-x/no-unresolved': 'off', // lots of bugs
46
47
  'import-x/no-useless-path-segments': ['error', { noUselessIndex: true }],
47
48
  'import-x/unambiguous': 'error',
48
49
  },
@@ -17,8 +17,11 @@ export const javascript = defineConfig([
17
17
  'dot-notation': ['error'],
18
18
  'grouped-accessor-pairs': ['error', 'getBeforeSet'],
19
19
  'no-alert': 'error',
20
- 'no-console': 'error',
21
- 'no-duplicate-imports': ['error', { includeExports: false }],
20
+ 'no-console': 'warn',
21
+ 'no-duplicate-imports': [
22
+ 'error',
23
+ { allowSeparateTypeImports: true, includeExports: false },
24
+ ],
22
25
  'no-else-return': 'error',
23
26
  'no-implicit-coercion': 'error',
24
27
  'no-param-reassign': ['error', { props: false }],
@@ -81,11 +81,10 @@ export const perfectionist = defineConfig([
81
81
 
82
82
  'type-internal',
83
83
  'value-internal',
84
- // `parent` and `index` groups are omitted on purpose:
85
- // `no-restricted-imports` in `javascript.js` forbids `..`, `.`
86
- // and `**/index` imports, so nothing can ever land in them.
87
- 'type-sibling',
88
- 'value-sibling',
84
+
85
+ ['type-parent', 'type-sibling', 'type-index'],
86
+ ['value-parent', 'value-sibling', 'value-index'],
87
+
89
88
  'ts-equals-import',
90
89
  'unknown',
91
90
  ],
package/plugins/vue.js CHANGED
@@ -46,7 +46,7 @@ export const vue = defineConfig([
46
46
  'vue/attributes-order': ['error', { alphabetical: true }],
47
47
  'vue/block-lang': [
48
48
  'error',
49
- { script: { lang: 'ts' }, style: { lang: 'scss' }, template: {} },
49
+ { script: { lang: 'ts' }, style: {}, template: {} },
50
50
  ],
51
51
  'vue/block-order': ['error', { order: ['script', 'template', 'style'] }],
52
52
  'vue/component-api-style': ['error', ['script-setup']],
@@ -94,7 +94,7 @@ export const vue = defineConfig([
94
94
  'vue/define-props-declaration': ['error'],
95
95
  'vue/define-props-destructuring': ['warn', { destructure: 'always' }],
96
96
  'vue/dot-notation': ['error'],
97
- 'vue/enforce-style-attribute': ['error', { allow: ['module'] }],
97
+ 'vue/enforce-style-attribute': ['error', { allow: ['scoped'] }],
98
98
  'vue/eqeqeq': ['error'],
99
99
  'vue/html-button-has-type': ['error'],
100
100
  'vue/html-comment-content-newline': ['warn'],