@alexlit/config-eslint 164.0.0 → 164.1.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/README.md +10 -0
- package/package.json +7 -6
- package/plugins/tailwindcss.js +1 -0
- package/plugins/vue.js +2 -0
package/README.md
CHANGED
|
@@ -33,6 +33,12 @@ export default defineConfig([
|
|
|
33
33
|
]);
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
> [!NOTE]
|
|
37
|
+
>
|
|
38
|
+
> `plugins.javascript()` включает строгие правила для импортов: запрещает
|
|
39
|
+
> относительные импорты вида `..`/`.` , индексные импорты, расширения
|
|
40
|
+
> `.ts`/`.js` в путях и алиасы `~` в пользу `@`.
|
|
41
|
+
|
|
36
42
|
Каждый плагин возвращает массив блоков конфигурации, поэтому его нужно
|
|
37
43
|
развернуть оператором spread (`...`). Добавьте только то, что нужно проекту;
|
|
38
44
|
полный список - в разделе [Плагины](#плагины).
|
|
@@ -200,7 +206,11 @@ export default defineConfig([
|
|
|
200
206
|
Просмотр итоговой конфигурации:
|
|
201
207
|
|
|
202
208
|
```bash
|
|
209
|
+
# Запуск локального инспектора (dev-сервер)
|
|
203
210
|
npm run inspect
|
|
211
|
+
|
|
212
|
+
# Сборка статичной версии инспектора
|
|
213
|
+
npm run inspect:build
|
|
204
214
|
```
|
|
205
215
|
|
|
206
216
|
## Полезные ссылки
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "164.
|
|
3
|
+
"version": "164.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"rules/"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"inspect": "npx @eslint/config-inspector@latest",
|
|
38
|
+
"inspect": "npx @eslint/config-inspector@latest --no-open",
|
|
39
|
+
"inspect:build": "npx @eslint/config-inspector@latest build",
|
|
39
40
|
"lint": "cd ../../ && ./scripts/lint.eslint.sh",
|
|
40
41
|
"ou": "../../scripts/ou.sh",
|
|
41
42
|
"release": "../../scripts/release.sh",
|
|
@@ -47,8 +48,8 @@
|
|
|
47
48
|
"@eslint/json": "^2.1.1",
|
|
48
49
|
"@intlify/eslint-plugin-vue-i18n": "^4.5.1",
|
|
49
50
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
50
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
51
|
-
"@unocss/eslint-config": "^66.
|
|
51
|
+
"@tanstack/eslint-plugin-query": "^5.105.0",
|
|
52
|
+
"@unocss/eslint-config": "^66.12.0",
|
|
52
53
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
53
54
|
"eslint": "^10.13.0",
|
|
54
55
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -62,13 +63,13 @@
|
|
|
62
63
|
"eslint-plugin-sonarjs": "^4.2.2",
|
|
63
64
|
"eslint-plugin-tailwindcss": "^4.4.0",
|
|
64
65
|
"eslint-plugin-unicorn": "^79.0.0",
|
|
65
|
-
"eslint-plugin-vue": "^10.
|
|
66
|
+
"eslint-plugin-vue": "^10.12.0",
|
|
66
67
|
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
67
68
|
"eslint-plugin-zod": "^5.2.2",
|
|
68
69
|
"globals": "^17.13.0",
|
|
69
70
|
"jsonc-eslint-parser": "^3.3.0",
|
|
70
71
|
"typescript": "^6.0.3",
|
|
71
|
-
"typescript-eslint": "^8.72.
|
|
72
|
+
"typescript-eslint": "^8.72.1",
|
|
72
73
|
"vue-eslint-parser": "^10.4.1",
|
|
73
74
|
"yaml-eslint-parser": "^2.1.0"
|
|
74
75
|
},
|
package/plugins/tailwindcss.js
CHANGED
package/plugins/vue.js
CHANGED
|
@@ -142,6 +142,7 @@ export const vue = (config = []) =>
|
|
|
142
142
|
'vue/next-tick-style': ['error', 'promise'],
|
|
143
143
|
'vue/no-child-content': ['error'],
|
|
144
144
|
'vue/no-console': ['error'],
|
|
145
|
+
'vue/no-content-outside-block': ['error'],
|
|
145
146
|
'vue/no-custom-modifiers-on-v-model': 'off',
|
|
146
147
|
'vue/no-deprecated-delete-set': ['error'],
|
|
147
148
|
'vue/no-deprecated-model-definition': ['error'],
|
|
@@ -160,6 +161,7 @@ export const vue = (config = []) =>
|
|
|
160
161
|
'vue/no-negated-v-if-condition': ['error'],
|
|
161
162
|
'vue/no-parsing-error': ['error'],
|
|
162
163
|
'vue/no-potential-component-option-typo': ['error'],
|
|
164
|
+
'vue/no-props-shadow': ['error'],
|
|
163
165
|
'vue/no-ref-object-reactivity-loss': ['error'],
|
|
164
166
|
'vue/no-required-prop-with-default': ['error', { autofix: true }],
|
|
165
167
|
'vue/no-reserved-component-names': [
|