@alexlit/lint-kit 165.0.0 → 165.2.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-commitlint/package.json +1 -1
- package/packages/config-eslint/package.json +4 -4
- package/packages/config-eslint/plugins/perfectionist.js +4 -0
- package/packages/config-eslint/plugins/stylistic.js +10 -3
- package/packages/config-hooks/package.json +1 -1
- package/packages/config-htmllint/package.json +1 -1
- package/packages/config-markdownlint/package.json +1 -1
- package/packages/config-npmlint/package.json +1 -1
- package/packages/config-prettier/package.json +1 -1
- package/packages/config-stylelint/package.json +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "125.
|
|
3
|
+
"version": "125.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@intlify/eslint-plugin-vue-i18n": "^4.1.0",
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
47
|
-
"@unocss/eslint-config": "^66.5.
|
|
47
|
+
"@unocss/eslint-config": "^66.5.11",
|
|
48
48
|
"eslint": "9.39.2",
|
|
49
49
|
"eslint-config-prettier": "^10.1.8",
|
|
50
50
|
"eslint-plugin-jsdoc": "^61.5.0",
|
|
51
|
-
"eslint-plugin-perfectionist": "^5.
|
|
51
|
+
"eslint-plugin-perfectionist": "^5.1.0",
|
|
52
52
|
"eslint-plugin-prettier": "^5.5.4",
|
|
53
53
|
"eslint-plugin-regexp": "^2.10.0",
|
|
54
54
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"globals": "^16.5.0",
|
|
61
61
|
"jsonc-eslint-parser": "^2.4.2",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
|
-
"typescript-eslint": "^8.50.
|
|
63
|
+
"typescript-eslint": "^8.50.1",
|
|
64
64
|
"yaml-eslint-parser": "^1.3.2"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
@@ -15,6 +15,10 @@ export const perfectionist = [
|
|
|
15
15
|
type: 'natural',
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
|
+
'perfectionist/sort-interfaces': [
|
|
19
|
+
'warn',
|
|
20
|
+
{ newlinesBetween: 0, partitionByComment: false, type: 'natural' },
|
|
21
|
+
],
|
|
18
22
|
'perfectionist/sort-object-types': [
|
|
19
23
|
'warn',
|
|
20
24
|
{ newlinesBetween: 0, partitionByComment: false, type: 'natural' },
|
|
@@ -4,6 +4,7 @@ import { FILES } from '../presets/base.js';
|
|
|
4
4
|
|
|
5
5
|
/** @see [@stylistic/eslint-plugin](https://eslint.style/) */
|
|
6
6
|
export const stylistic = [
|
|
7
|
+
plugin.configs.recommended,
|
|
7
8
|
{
|
|
8
9
|
files: FILES,
|
|
9
10
|
plugins: { '@stylistic': plugin },
|
|
@@ -45,8 +46,12 @@ export const stylistic = [
|
|
|
45
46
|
{ blankLine: 'always', next: '*', prev: 'class' },
|
|
46
47
|
{ blankLine: 'always', next: '*', prev: 'default' },
|
|
47
48
|
{ blankLine: 'always', next: '*', prev: 'directive' },
|
|
49
|
+
{ blankLine: 'always', next: '*', prev: 'enum' },
|
|
50
|
+
{ blankLine: 'always', next: '*', prev: 'export' },
|
|
48
51
|
{ blankLine: 'always', next: '*', prev: 'expression' },
|
|
49
52
|
{ blankLine: 'always', next: '*', prev: 'iife' },
|
|
53
|
+
{ blankLine: 'always', next: '*', prev: 'import' },
|
|
54
|
+
{ blankLine: 'always', next: '*', prev: 'interface' },
|
|
50
55
|
{ blankLine: 'always', next: '*', prev: 'multiline-block-like' },
|
|
51
56
|
{ blankLine: 'always', next: '*', prev: 'multiline-const' },
|
|
52
57
|
{ blankLine: 'always', next: '*', prev: 'multiline-expression' },
|
|
@@ -55,14 +60,17 @@ export const stylistic = [
|
|
|
55
60
|
{ blankLine: 'always', next: '*', prev: 'singleline-const' },
|
|
56
61
|
{ blankLine: 'always', next: '*', prev: 'singleline-let' },
|
|
57
62
|
{ blankLine: 'always', next: '*', prev: 'singleline-var' },
|
|
63
|
+
{ blankLine: 'always', next: '*', prev: 'type' },
|
|
58
64
|
{ blankLine: 'always', next: 'block-like', prev: '*' },
|
|
59
65
|
{ blankLine: 'always', next: 'cjs-export', prev: '*' },
|
|
60
66
|
{ blankLine: 'always', next: 'cjs-import', prev: '*' },
|
|
61
67
|
{ blankLine: 'always', next: 'class', prev: '*' },
|
|
62
68
|
{ blankLine: 'always', next: 'enum', prev: '*' },
|
|
69
|
+
{ blankLine: 'always', next: 'export', prev: '*' },
|
|
63
70
|
{ blankLine: 'always', next: 'expression', prev: '*' },
|
|
64
71
|
{ blankLine: 'always', next: 'function', prev: '*' },
|
|
65
72
|
{ blankLine: 'always', next: 'iife', prev: '*' },
|
|
73
|
+
{ blankLine: 'always', next: 'import', prev: '*' },
|
|
66
74
|
{ blankLine: 'always', next: 'interface', prev: '*' },
|
|
67
75
|
{ blankLine: 'always', next: 'multiline-block-like', prev: '*' },
|
|
68
76
|
{ blankLine: 'always', next: 'multiline-const', prev: '*' },
|
|
@@ -72,9 +80,6 @@ export const stylistic = [
|
|
|
72
80
|
{ blankLine: 'always', next: 'return', prev: '*' },
|
|
73
81
|
{ blankLine: 'always', next: 'switch', prev: '*' },
|
|
74
82
|
{ blankLine: 'always', next: 'type', prev: '*' },
|
|
75
|
-
{ blankLine: 'always', next: '*', prev: 'enum' },
|
|
76
|
-
{ blankLine: 'always', next: '*', prev: 'interface' },
|
|
77
|
-
{ blankLine: 'always', next: '*', prev: 'type' },
|
|
78
83
|
// any
|
|
79
84
|
{ blankLine: 'any', next: 'expression', prev: 'expression' },
|
|
80
85
|
{
|
|
@@ -82,6 +87,8 @@ export const stylistic = [
|
|
|
82
87
|
next: 'singleline-const',
|
|
83
88
|
prev: 'singleline-const',
|
|
84
89
|
},
|
|
90
|
+
{ blankLine: 'any', next: 'export', prev: 'export' },
|
|
91
|
+
{ blankLine: 'any', next: 'import', prev: 'import' },
|
|
85
92
|
{ blankLine: 'any', next: 'singleline-let', prev: 'singleline-let' },
|
|
86
93
|
{ blankLine: 'any', next: 'singleline-var', prev: 'singleline-var' },
|
|
87
94
|
// never
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "56.
|
|
3
|
+
"version": "56.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/alex-lit/lint-kit.git",
|
|
16
|
+
"url": "git+https://github.com/alex-lit/lint-kit.git",
|
|
17
17
|
"directory": "packages/config-stylelint"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
49
49
|
"stylelint-gamut": "^1.3.4",
|
|
50
50
|
"stylelint-high-performance-animation": "^1.11.0",
|
|
51
|
-
"stylelint-media-use-custom-media": "^4.
|
|
51
|
+
"stylelint-media-use-custom-media": "^4.1.0",
|
|
52
52
|
"stylelint-no-indistinguishable-colors": "^2.3.1",
|
|
53
53
|
"stylelint-no-nested-media": "^0.1.0",
|
|
54
54
|
"stylelint-no-unresolved-module": "^2.5.2",
|
|
55
55
|
"stylelint-no-unsupported-browser-features": "^8.0.5",
|
|
56
|
-
"stylelint-order": "^7.0.
|
|
56
|
+
"stylelint-order": "^7.0.1",
|
|
57
57
|
"stylelint-plugin-logical-css": "^1.2.3",
|
|
58
58
|
"stylelint-prettier": "^5.0.3",
|
|
59
|
-
"stylelint-scss": "^6.
|
|
59
|
+
"stylelint-scss": "^6.14.0",
|
|
60
60
|
"stylelint-selector-no-empty": "^1.0.9",
|
|
61
61
|
"stylelint-use-nesting": "^6.0.1"
|
|
62
62
|
}
|