@alexlit/lint-kit 198.7.1 → 200.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 +1 -1
- package/packages/config-eslint/package.json +7 -7
- package/packages/config-eslint/plugins/javascript.js +14 -1
- package/packages/config-eslint/plugins/unicorn.js +6 -0
- package/packages/config-hooks/package.json +2 -2
- package/packages/config-prettier/package.json +2 -2
- package/packages/config-stylelint/package.json +7 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "152.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -45,24 +45,24 @@
|
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.101.4",
|
|
47
47
|
"@unocss/eslint-config": "^66.7.5",
|
|
48
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
48
|
+
"@vitest/eslint-plugin": "^1.6.26",
|
|
49
49
|
"eslint": "^10.8.0",
|
|
50
50
|
"eslint-config-prettier": "^10.1.8",
|
|
51
|
-
"eslint-plugin-jsdoc": "^63.3.
|
|
52
|
-
"eslint-plugin-perfectionist": "^5.10.
|
|
51
|
+
"eslint-plugin-jsdoc": "^63.3.3",
|
|
52
|
+
"eslint-plugin-perfectionist": "^5.10.1",
|
|
53
53
|
"eslint-plugin-pinia": "^0.4.2",
|
|
54
54
|
"eslint-plugin-prettier": "^5.5.6",
|
|
55
55
|
"eslint-plugin-regexp": "^3.1.1",
|
|
56
56
|
"eslint-plugin-sonarjs": "^4.2.0",
|
|
57
57
|
"eslint-plugin-tailwindcss": "^4.2.0",
|
|
58
|
-
"eslint-plugin-unicorn": "^
|
|
58
|
+
"eslint-plugin-unicorn": "^73.0.0",
|
|
59
59
|
"eslint-plugin-vue": "^10.10.0",
|
|
60
60
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
61
61
|
"eslint-plugin-zod": "^4.9.0",
|
|
62
|
-
"globals": "^17.
|
|
62
|
+
"globals": "^17.9.0",
|
|
63
63
|
"jsonc-eslint-parser": "^3.1.0",
|
|
64
64
|
"typescript": "^6.0.3",
|
|
65
|
-
"typescript-eslint": "^8.
|
|
65
|
+
"typescript-eslint": "^8.66.0",
|
|
66
66
|
"yaml-eslint-parser": "^2.1.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
@@ -9,9 +9,10 @@ export const javascript = defineConfig([
|
|
|
9
9
|
{
|
|
10
10
|
files: FILES,
|
|
11
11
|
rules: {
|
|
12
|
+
'arrow-body-style': ['error', 'as-needed'],
|
|
12
13
|
'curly': 'error',
|
|
13
14
|
'dot-notation': ['error'],
|
|
14
|
-
'func-style': ['error', '
|
|
15
|
+
'func-style': ['error', 'expression'],
|
|
15
16
|
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
|
|
16
17
|
'no-duplicate-imports': ['error', { includeExports: false }],
|
|
17
18
|
'no-implicit-coercion': 'error',
|
|
@@ -36,6 +37,18 @@ export const javascript = defineConfig([
|
|
|
36
37
|
],
|
|
37
38
|
},
|
|
38
39
|
],
|
|
40
|
+
'no-restricted-syntax': [
|
|
41
|
+
'error',
|
|
42
|
+
{
|
|
43
|
+
message:
|
|
44
|
+
"Не используйте префикс 'handle' для обработчиков событий. Переименуйте метод, заменив 'handle' на 'on' (например, 'onClick' вместо 'handleClick').",
|
|
45
|
+
selector: 'Identifier[name=/^handle[A-Z]/]',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
'prefer-arrow-callback': [
|
|
49
|
+
'error',
|
|
50
|
+
{ allowNamedFunctions: false, allowUnboundThis: false },
|
|
51
|
+
],
|
|
39
52
|
'prefer-const': 'warn',
|
|
40
53
|
'prefer-template': 'warn',
|
|
41
54
|
},
|
|
@@ -14,6 +14,11 @@ export const unicorn = defineConfig([
|
|
|
14
14
|
'error',
|
|
15
15
|
{ checkArrowFunctions: false },
|
|
16
16
|
],
|
|
17
|
+
'unicorn/consistent-function-style': [
|
|
18
|
+
'error',
|
|
19
|
+
{ default: 'arrow-function' },
|
|
20
|
+
],
|
|
21
|
+
'unicorn/iteration-fallback-style': ['error', 'guard'],
|
|
17
22
|
'unicorn/name-replacements': 'off',
|
|
18
23
|
'unicorn/no-array-reduce': ['error', { allowSimpleOperations: true }],
|
|
19
24
|
'unicorn/no-asterisk-prefix-in-documentation-comments': 'off',
|
|
@@ -32,6 +37,7 @@ export const unicorn = defineConfig([
|
|
|
32
37
|
'unicorn/prefer-temporal': 'off', // ES2026 only
|
|
33
38
|
'unicorn/prefer-type-literal-last': 'off', // perfectionist/sort-intersection-types
|
|
34
39
|
'unicorn/relative-url-style': ['error', 'always'],
|
|
40
|
+
'unicorn/single-line-block-comment-style': 'off',
|
|
35
41
|
},
|
|
36
42
|
},
|
|
37
43
|
{ files: ['.*'], rules: { 'unicorn/no-null': 'off' } },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-hooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Hooks config",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^17.
|
|
39
|
+
"lint-staged": "^17.3.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-prettier",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "prettier config",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prettier-plugin-jsdoc": "^1.8.1",
|
|
45
45
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
46
46
|
"prettier-plugin-sh": "^0.19.0",
|
|
47
|
-
"prettier-plugin-solidity": "^2.
|
|
47
|
+
"prettier-plugin-solidity": "^2.4.0",
|
|
48
48
|
"prettier-plugin-sort-json": "^4.2.0",
|
|
49
49
|
"prettier-plugin-sql": "^0.20.0",
|
|
50
50
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "61.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,14 @@
|
|
|
36
36
|
"up": "../../scripts/up.sh"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@double-great/stylelint-a11y": "^3.5.
|
|
39
|
+
"@double-great/stylelint-a11y": "^3.5.1",
|
|
40
40
|
"@morev/stylelint-plugin": "^0.6.1",
|
|
41
|
+
"postcss": "^8.5.25",
|
|
42
|
+
"postcss-html": "^2.0.0",
|
|
43
|
+
"prettier": "^3.9.6",
|
|
41
44
|
"stylelint": "17.14.1",
|
|
42
|
-
"stylelint-config-
|
|
45
|
+
"stylelint-config-html": "^2.0.0",
|
|
46
|
+
"stylelint-config-recommended-vue": "^2.0.0",
|
|
43
47
|
"stylelint-config-standard": "^40.0.0",
|
|
44
48
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
45
49
|
"stylelint-declaration-block-no-ignored-properties": "^3.0.0",
|
|
@@ -57,22 +61,6 @@
|
|
|
57
61
|
"stylelint-selector-no-empty": "^1.0.9",
|
|
58
62
|
"stylelint-use-nesting": "^6.0.2"
|
|
59
63
|
},
|
|
60
|
-
"peerDependencies": {
|
|
61
|
-
"postcss": "^8.5.24",
|
|
62
|
-
"postcss-html": "^1.8.1",
|
|
63
|
-
"prettier": "^3.9.6"
|
|
64
|
-
},
|
|
65
|
-
"peerDependenciesMeta": {
|
|
66
|
-
"postcss": {
|
|
67
|
-
"optional": true
|
|
68
|
-
},
|
|
69
|
-
"postcss-html": {
|
|
70
|
-
"optional": true
|
|
71
|
-
},
|
|
72
|
-
"prettier": {
|
|
73
|
-
"optional": true
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
64
|
"publishConfig": {
|
|
77
65
|
"access": "public",
|
|
78
66
|
"registry": "https://registry.npmjs.org/"
|