@jhqn/stylelint-config 0.5.0 → 0.5.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/package.json +3 -2
- package/stylistic-rules.js +66 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/stylelint-config",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"packageManager": "pnpm@8.12.1",
|
|
5
5
|
"description": "jhqn's stylelint config",
|
|
6
6
|
"author": "jade-gjz",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
|
-
"index.js"
|
|
22
|
+
"index.js",
|
|
23
|
+
"stylistic-rules.js"
|
|
23
24
|
],
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"stylelint": "^16.0.2"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'@stylistic/at-rule-name-case': 'lower',
|
|
3
|
+
'@stylistic/at-rule-name-space-after': 'always-single-line',
|
|
4
|
+
'@stylistic/at-rule-semicolon-newline-after': 'always',
|
|
5
|
+
'@stylistic/block-closing-brace-empty-line-before': 'never',
|
|
6
|
+
'@stylistic/block-closing-brace-newline-after': 'always',
|
|
7
|
+
'@stylistic/block-closing-brace-newline-before': 'always-multi-line',
|
|
8
|
+
'@stylistic/block-closing-brace-space-before': 'always-single-line',
|
|
9
|
+
'@stylistic/block-opening-brace-newline-after': 'always-multi-line',
|
|
10
|
+
'@stylistic/block-opening-brace-space-after': 'always-single-line',
|
|
11
|
+
'@stylistic/block-opening-brace-space-before': 'always',
|
|
12
|
+
'@stylistic/color-hex-case': 'lower',
|
|
13
|
+
'@stylistic/declaration-bang-space-after': 'never',
|
|
14
|
+
'@stylistic/declaration-bang-space-before': 'always',
|
|
15
|
+
'@stylistic/declaration-block-semicolon-newline-after': 'always-multi-line',
|
|
16
|
+
'@stylistic/declaration-block-semicolon-space-after': 'always-single-line',
|
|
17
|
+
'@stylistic/declaration-block-semicolon-space-before': 'never',
|
|
18
|
+
'@stylistic/declaration-block-trailing-semicolon': 'always',
|
|
19
|
+
'@stylistic/declaration-colon-newline-after': 'always-multi-line',
|
|
20
|
+
'@stylistic/declaration-colon-space-after': 'always-single-line',
|
|
21
|
+
'@stylistic/declaration-colon-space-before': 'never',
|
|
22
|
+
'@stylistic/function-comma-newline-after': 'always-multi-line',
|
|
23
|
+
'@stylistic/function-comma-space-after': 'always-single-line',
|
|
24
|
+
'@stylistic/function-comma-space-before': 'never',
|
|
25
|
+
'@stylistic/function-max-empty-lines': 0,
|
|
26
|
+
'@stylistic/function-parentheses-newline-inside': 'always-multi-line',
|
|
27
|
+
'@stylistic/function-parentheses-space-inside': 'never-single-line',
|
|
28
|
+
'@stylistic/function-whitespace-after': 'always',
|
|
29
|
+
'@stylistic/indentation': [2, { baseIndentLevel: 1 }],
|
|
30
|
+
'@stylistic/max-empty-lines': 1,
|
|
31
|
+
'@stylistic/max-line-length': 120,
|
|
32
|
+
'@stylistic/media-feature-colon-space-after': 'always',
|
|
33
|
+
'@stylistic/media-feature-colon-space-before': 'never',
|
|
34
|
+
'@stylistic/media-feature-name-case': 'lower',
|
|
35
|
+
'@stylistic/media-feature-parentheses-space-inside': 'never',
|
|
36
|
+
'@stylistic/media-feature-range-operator-space-after': 'always',
|
|
37
|
+
'@stylistic/media-feature-range-operator-space-before': 'always',
|
|
38
|
+
'@stylistic/media-query-list-comma-newline-after': 'always-multi-line',
|
|
39
|
+
'@stylistic/media-query-list-comma-space-after': 'always-single-line',
|
|
40
|
+
'@stylistic/media-query-list-comma-space-before': 'never',
|
|
41
|
+
'@stylistic/no-empty-first-line': true,
|
|
42
|
+
'@stylistic/no-eol-whitespace': true,
|
|
43
|
+
'@stylistic/no-extra-semicolons': true,
|
|
44
|
+
'@stylistic/no-missing-end-of-source-newline': true,
|
|
45
|
+
'@stylistic/number-leading-zero': 'always',
|
|
46
|
+
'@stylistic/number-no-trailing-zeros': true,
|
|
47
|
+
'@stylistic/property-case': 'lower',
|
|
48
|
+
'@stylistic/selector-attribute-brackets-space-inside': 'never',
|
|
49
|
+
'@stylistic/selector-attribute-operator-space-after': 'never',
|
|
50
|
+
'@stylistic/selector-attribute-operator-space-before': 'never',
|
|
51
|
+
'@stylistic/selector-combinator-space-after': 'always',
|
|
52
|
+
'@stylistic/selector-combinator-space-before': 'always',
|
|
53
|
+
'@stylistic/selector-descendant-combinator-no-non-space': true,
|
|
54
|
+
'@stylistic/selector-list-comma-newline-after': 'always',
|
|
55
|
+
'@stylistic/selector-list-comma-space-before': 'never',
|
|
56
|
+
'@stylistic/selector-max-empty-lines': 0,
|
|
57
|
+
'@stylistic/selector-pseudo-class-case': 'lower',
|
|
58
|
+
'@stylistic/selector-pseudo-class-parentheses-space-inside': 'never',
|
|
59
|
+
'@stylistic/selector-pseudo-element-case': 'lower',
|
|
60
|
+
'@stylistic/string-quotes': 'double',
|
|
61
|
+
'@stylistic/unit-case': 'lower',
|
|
62
|
+
'@stylistic/value-list-comma-newline-after': 'always-multi-line',
|
|
63
|
+
'@stylistic/value-list-comma-space-after': 'always-single-line',
|
|
64
|
+
'@stylistic/value-list-comma-space-before': 'never',
|
|
65
|
+
'@stylistic/value-list-max-empty-lines': 0,
|
|
66
|
+
}
|