@flarian/frontend-preset 2.0.0 → 2.0.2
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.
|
@@ -33,11 +33,11 @@ const esLintPrettierRules = {
|
|
|
33
33
|
|
|
34
34
|
const createPrettierConfig = ({ registerPlugins = true } = {}) => {
|
|
35
35
|
const config = {
|
|
36
|
-
plugins: { prettier: prettierPlugin__default },
|
|
36
|
+
plugins: { prettier: prettierPlugin__default, ...esLintPrettierRules.plugins },
|
|
37
37
|
rules: {
|
|
38
|
-
"prettier/prettier": ["warn", prettier_config_base.baseConfig]
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
"prettier/prettier": ["warn", prettier_config_base.baseConfig],
|
|
39
|
+
...esLintPrettierRules.rules
|
|
40
|
+
}
|
|
41
41
|
};
|
|
42
42
|
const vueOverride = {
|
|
43
43
|
files: ["**/*.vue"],
|
|
@@ -47,7 +47,10 @@ const createPrettierConfig = ({ registerPlugins = true } = {}) => {
|
|
|
47
47
|
},
|
|
48
48
|
rules: {
|
|
49
49
|
"vue/script-indent": "off",
|
|
50
|
-
"prettier/prettier": [
|
|
50
|
+
"prettier/prettier": [
|
|
51
|
+
"warn",
|
|
52
|
+
{ ...prettier_config_base.baseConfig, ...prettier_config_vue.vueConfig, ...prettier_config_yml.ymlConfig, ...prettier_config_pug.pugConfig }
|
|
53
|
+
]
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
return [
|
|
@@ -25,11 +25,11 @@ const esLintPrettierRules = {
|
|
|
25
25
|
|
|
26
26
|
const createPrettierConfig = ({ registerPlugins = true } = {}) => {
|
|
27
27
|
const config = {
|
|
28
|
-
plugins: { prettier: prettierPlugin },
|
|
28
|
+
plugins: { prettier: prettierPlugin, ...esLintPrettierRules.plugins },
|
|
29
29
|
rules: {
|
|
30
|
-
"prettier/prettier": ["warn", baseConfig]
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
"prettier/prettier": ["warn", baseConfig],
|
|
31
|
+
...esLintPrettierRules.rules
|
|
32
|
+
}
|
|
33
33
|
};
|
|
34
34
|
const vueOverride = {
|
|
35
35
|
files: ["**/*.vue"],
|
|
@@ -39,7 +39,10 @@ const createPrettierConfig = ({ registerPlugins = true } = {}) => {
|
|
|
39
39
|
},
|
|
40
40
|
rules: {
|
|
41
41
|
"vue/script-indent": "off",
|
|
42
|
-
"prettier/prettier": [
|
|
42
|
+
"prettier/prettier": [
|
|
43
|
+
"warn",
|
|
44
|
+
{ ...baseConfig, ...vueConfig, ...ymlConfig, ...pugConfig }
|
|
45
|
+
]
|
|
43
46
|
}
|
|
44
47
|
};
|
|
45
48
|
return [
|
|
@@ -330,7 +330,7 @@ const esLintStylisticRules = {
|
|
|
330
330
|
{
|
|
331
331
|
max: 1,
|
|
332
332
|
maxBOF: 0,
|
|
333
|
-
maxEOF:
|
|
333
|
+
maxEOF: 0
|
|
334
334
|
}
|
|
335
335
|
],
|
|
336
336
|
/**
|
|
@@ -377,7 +377,11 @@ const esLintStylisticRules = {
|
|
|
377
377
|
* Обеспечить единый стиль переноса строк для операторов
|
|
378
378
|
* https://eslint.style/rules/default/operator-linebreak
|
|
379
379
|
*/
|
|
380
|
-
"@stylistic/operator-linebreak": [
|
|
380
|
+
"@stylistic/operator-linebreak": [
|
|
381
|
+
"warn",
|
|
382
|
+
"after",
|
|
383
|
+
{ overrides: { "?": "before", ":": "before", "|": "before" } }
|
|
384
|
+
],
|
|
381
385
|
/**
|
|
382
386
|
* Требовать или запрещать отступы внутри блоков
|
|
383
387
|
* https://eslint.style/rules/default/padded-blocks
|
|
@@ -324,7 +324,7 @@ const esLintStylisticRules = {
|
|
|
324
324
|
{
|
|
325
325
|
max: 1,
|
|
326
326
|
maxBOF: 0,
|
|
327
|
-
maxEOF:
|
|
327
|
+
maxEOF: 0
|
|
328
328
|
}
|
|
329
329
|
],
|
|
330
330
|
/**
|
|
@@ -371,7 +371,11 @@ const esLintStylisticRules = {
|
|
|
371
371
|
* Обеспечить единый стиль переноса строк для операторов
|
|
372
372
|
* https://eslint.style/rules/default/operator-linebreak
|
|
373
373
|
*/
|
|
374
|
-
"@stylistic/operator-linebreak": [
|
|
374
|
+
"@stylistic/operator-linebreak": [
|
|
375
|
+
"warn",
|
|
376
|
+
"after",
|
|
377
|
+
{ overrides: { "?": "before", ":": "before", "|": "before" } }
|
|
378
|
+
],
|
|
375
379
|
/**
|
|
376
380
|
* Требовать или запрещать отступы внутри блоков
|
|
377
381
|
* https://eslint.style/rules/default/padded-blocks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarian/frontend-preset",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Frontend preset with ESLint 9 flat config and Stylelint",
|
|
6
6
|
"author": "FlarianWeb",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=22.5.0"
|
|
73
73
|
},
|
|
74
|
-
"packageManager": "pnpm@10.
|
|
74
|
+
"packageManager": "pnpm@10.33.0",
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/js": "10.0.1",
|
|
77
77
|
"@prettier/plugin-pug": "3.4.2",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
83
83
|
"@types/eslint": "9.6.1",
|
|
84
84
|
"@types/node": "25.5.0",
|
|
85
|
-
"conventional-changelog-conventionalcommits": "^9.3.
|
|
86
|
-
"eslint": "10.0
|
|
85
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
86
|
+
"eslint": "10.1.0",
|
|
87
87
|
"eslint-plugin-jsonc": "3.1.2",
|
|
88
88
|
"eslint-plugin-prettier": "5.5.5",
|
|
89
89
|
"eslint-plugin-react": "7.37.5",
|
|
@@ -93,16 +93,16 @@
|
|
|
93
93
|
"globals": "17.4.0",
|
|
94
94
|
"prettier": "3.8.1",
|
|
95
95
|
"semantic-release": "25.0.3",
|
|
96
|
-
"stylelint": "17.
|
|
96
|
+
"stylelint": "17.6.0",
|
|
97
97
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
98
98
|
"stylelint-config-standard": "40.0.0",
|
|
99
|
-
"stylelint-config-standard-less": "4.0
|
|
99
|
+
"stylelint-config-standard-less": "4.1.0",
|
|
100
100
|
"stylelint-config-standard-scss": "17.0.0",
|
|
101
|
-
"stylelint-less": "4.
|
|
102
|
-
"stylelint-order": "8.
|
|
101
|
+
"stylelint-less": "4.1.0",
|
|
102
|
+
"stylelint-order": "8.1.1",
|
|
103
103
|
"stylelint-scss": "7.0.0",
|
|
104
|
-
"typescript": "
|
|
105
|
-
"typescript-eslint": "8.
|
|
104
|
+
"typescript": "6.0.2",
|
|
105
|
+
"typescript-eslint": "8.58.0",
|
|
106
106
|
"unbuild": "3.6.1",
|
|
107
107
|
"vue-eslint-parser": "10.4.0"
|
|
108
108
|
},
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"stylelint-less": ">=4.0.0",
|
|
128
128
|
"stylelint-order": ">=8.0.0",
|
|
129
129
|
"stylelint-scss": ">=7.0.0",
|
|
130
|
-
"typescript-eslint": ">=8.
|
|
130
|
+
"typescript-eslint": ">=8.58.0",
|
|
131
131
|
"vue-eslint-parser": ">=10.0.0"
|
|
132
132
|
},
|
|
133
133
|
"peerDependenciesMeta": {
|