vue-linters-config 0.3.19 → 0.4.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 -10
- package/dist/index.js +11 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ _Легко принимать свободу как должное, если н
|
|
|
14
14
|
|
|
15
15
|
Установка сторонних зависимостей:
|
|
16
16
|
|
|
17
|
-
`npm i eslint @eslint/js typescript-eslint eslint-plugin-vue vue-eslint-parser eslint-plugin-import-x eslint-plugin-prettier globals eslint-config-prettier eslint-import-resolver-typescript postcss-html prettier stylelint stylelint-config-recess-order stylelint-config-recommended-scss stylelint-config-recommended-vue stylelint-prettier --save-dev`
|
|
17
|
+
`npm i eslint @eslint/js typescript-eslint eslint-plugin-vue vue-eslint-parser eslint-plugin-import-x eslint-plugin-prettier eslint-plugin-sonarjs eslint-plugin-unicorn globals eslint-config-prettier eslint-import-resolver-typescript postcss-html prettier stylelint stylelint-config-recess-order stylelint-config-recommended-scss stylelint-config-recommended-vue stylelint-prettier --save-dev`
|
|
18
18
|
|
|
19
19
|
В package.json добавить команду в секцию script для запуска npm run lint:
|
|
20
20
|
|
|
@@ -29,10 +29,12 @@ eslint.config.js:
|
|
|
29
29
|
```
|
|
30
30
|
import js from '@eslint/js';
|
|
31
31
|
import tseslint from 'typescript-eslint';
|
|
32
|
-
import pluginVue from 'eslint-plugin-vue';
|
|
33
32
|
import vueParser from 'vue-eslint-parser';
|
|
34
|
-
import
|
|
35
|
-
import
|
|
33
|
+
import pluginVue from 'eslint-plugin-vue';
|
|
34
|
+
import pluginImportX from 'eslint-plugin-import-x';
|
|
35
|
+
import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
36
|
+
import pluginSonar from 'eslint-plugin-sonarjs';
|
|
37
|
+
import pluginUnicorn from 'eslint-plugin-unicorn';
|
|
36
38
|
import globals from 'globals';
|
|
37
39
|
import { parser, options, ignores, settings, rules } from 'vue-linters-config';
|
|
38
40
|
|
|
@@ -41,6 +43,8 @@ export default tseslint.config(
|
|
|
41
43
|
...tseslint.configs.recommended,
|
|
42
44
|
...pluginVue.configs['flat/strongly-recommended'],
|
|
43
45
|
eslintPluginImportX.flatConfigs.recommended,
|
|
46
|
+
eslintPluginSonar.configs.recommended,
|
|
47
|
+
eslintPluginUnicorn.configs.recommended,
|
|
44
48
|
eslintPluginImportX.flatConfigs.typescript,
|
|
45
49
|
|
|
46
50
|
ignores,
|
|
@@ -55,17 +59,13 @@ export default tseslint.config(
|
|
|
55
59
|
prettier.config.js:
|
|
56
60
|
|
|
57
61
|
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export default prettier;
|
|
62
|
+
export { prettier as default } from 'vue-linters-config';
|
|
61
63
|
|
|
62
64
|
```
|
|
63
65
|
|
|
64
66
|
stylelint.config.js:
|
|
65
67
|
|
|
66
68
|
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export default stylelint;
|
|
69
|
+
export { stylelint as default } from 'vue-linters-config';
|
|
70
70
|
|
|
71
71
|
```
|
package/dist/index.js
CHANGED
|
@@ -206,6 +206,17 @@ const t = {
|
|
|
206
206
|
"import-x/no-unused-modules": "error",
|
|
207
207
|
"import-x/no-useless-path-segments": "error",
|
|
208
208
|
"import-x/order": "error",
|
|
209
|
+
"sonarjs/no-hardcoded-passwords": "off",
|
|
210
|
+
"sonarjs/no-duplicated-branches": "off",
|
|
211
|
+
"unicorn/prevent-abbreviations": "off",
|
|
212
|
+
"unicorn/no-null": "off",
|
|
213
|
+
"unicorn/filename-case": ["error", { cases: { camelCase: !0, pascalCase: !0 } }],
|
|
214
|
+
"unicorn/no-array-callback-reference": "off",
|
|
215
|
+
"unicorn/no-useless-undefined": "off",
|
|
216
|
+
"unicorn/no-array-for-each": "off",
|
|
217
|
+
"unicorn/numeric-separators-style": "off",
|
|
218
|
+
"unicorn/no-array-reduce": "off",
|
|
219
|
+
"unicorn/prefer-string-replace-all": "off",
|
|
209
220
|
"@typescript-eslint/naming-convention": [
|
|
210
221
|
"error",
|
|
211
222
|
{ selector: "variable", format: ["camelCase", "PascalCase", "UPPER_CASE", "snake_case"] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-linters-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue 3 linters config for eslint, prettier, stylelint",
|
|
6
6
|
"author": "Aleksandr Dergunov <dergunovs@mail.ru>",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "vite build"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"vite": "7.1.
|
|
15
|
+
"vite": "7.1.3"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"npm": ">=11.5.1",
|