@brightspace-ui/stylelint-config 0.8.0 → 0.8.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.
- package/index.js +61 -58
- package/package.json +5 -4
package/index.js
CHANGED
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
"extends": "stylelint-config-recommended",
|
|
5
|
-
"plugins": [
|
|
5
|
+
"plugins": [
|
|
6
|
+
"stylelint-order",
|
|
7
|
+
"stylelint-stylistic"
|
|
8
|
+
],
|
|
6
9
|
"rules": {
|
|
7
|
-
"at-rule-name-case": "lower",
|
|
8
|
-
"at-rule-name-space-after": "always-single-line",
|
|
9
|
-
"at-rule-semicolon-newline-after": "always",
|
|
10
|
-
"block-closing-brace-newline-after": "always",
|
|
11
|
-
"block-closing-brace-newline-before": "always-multi-line",
|
|
12
|
-
"block-closing-brace-space-before": "always-single-line",
|
|
13
|
-
"block-opening-brace-newline-after": "always-multi-line",
|
|
14
|
-
"block-opening-brace-space-after": "always-single-line",
|
|
15
|
-
"block-opening-brace-space-before": "always",
|
|
16
|
-
"color-hex-case": "lower",
|
|
10
|
+
"stylistic/at-rule-name-case": "lower",
|
|
11
|
+
"stylistic/at-rule-name-space-after": "always-single-line",
|
|
12
|
+
"stylistic/at-rule-semicolon-newline-after": "always",
|
|
13
|
+
"stylistic/block-closing-brace-newline-after": "always",
|
|
14
|
+
"stylistic/block-closing-brace-newline-before": "always-multi-line",
|
|
15
|
+
"stylistic/block-closing-brace-space-before": "always-single-line",
|
|
16
|
+
"stylistic/block-opening-brace-newline-after": "always-multi-line",
|
|
17
|
+
"stylistic/block-opening-brace-space-after": "always-single-line",
|
|
18
|
+
"stylistic/block-opening-brace-space-before": "always",
|
|
19
|
+
"stylistic/color-hex-case": "lower",
|
|
17
20
|
"color-hex-length": "long",
|
|
18
21
|
"comment-whitespace-inside": "always",
|
|
19
22
|
"custom-property-pattern": ["^d2l-", {
|
|
@@ -29,72 +32,72 @@ module.exports = {
|
|
|
29
32
|
"inside-single-line-block"
|
|
30
33
|
]
|
|
31
34
|
}],
|
|
32
|
-
"declaration-bang-space-after": "never",
|
|
33
|
-
"declaration-bang-space-before": "always",
|
|
34
|
-
"declaration-block-semicolon-newline-after": "always-multi-line",
|
|
35
|
-
"declaration-block-semicolon-space-after": "always-single-line",
|
|
36
|
-
"declaration-block-semicolon-space-before": "never",
|
|
35
|
+
"stylistic/declaration-bang-space-after": "never",
|
|
36
|
+
"stylistic/declaration-bang-space-before": "always",
|
|
37
|
+
"stylistic/declaration-block-semicolon-newline-after": "always-multi-line",
|
|
38
|
+
"stylistic/declaration-block-semicolon-space-after": "always-single-line",
|
|
39
|
+
"stylistic/declaration-block-semicolon-space-before": "never",
|
|
37
40
|
"declaration-block-single-line-max-declarations": 3,
|
|
38
|
-
"declaration-block-trailing-semicolon": "always",
|
|
39
|
-
"declaration-colon-newline-after": "always-multi-line",
|
|
40
|
-
"declaration-colon-space-after": "always-single-line",
|
|
41
|
-
"declaration-colon-space-before": "never",
|
|
42
|
-
"function-comma-newline-after": "always-multi-line",
|
|
43
|
-
"function-comma-space-after": "always-single-line",
|
|
44
|
-
"function-comma-space-before": "never",
|
|
45
|
-
"function-max-empty-lines": 0,
|
|
41
|
+
"stylistic/declaration-block-trailing-semicolon": "always",
|
|
42
|
+
"stylistic/declaration-colon-newline-after": "always-multi-line",
|
|
43
|
+
"stylistic/declaration-colon-space-after": "always-single-line",
|
|
44
|
+
"stylistic/declaration-colon-space-before": "never",
|
|
45
|
+
"stylistic/function-comma-newline-after": "always-multi-line",
|
|
46
|
+
"stylistic/function-comma-space-after": "always-single-line",
|
|
47
|
+
"stylistic/function-comma-space-before": "never",
|
|
48
|
+
"stylistic/function-max-empty-lines": 0,
|
|
46
49
|
"function-name-case": ["lower", {
|
|
47
50
|
"ignoreFunctions": ["${unsafeCSS"]
|
|
48
51
|
}],
|
|
49
|
-
"function-parentheses-newline-inside": "always-multi-line",
|
|
50
|
-
"function-parentheses-space-inside": "never-single-line",
|
|
51
|
-
"function-whitespace-after": "always",
|
|
52
|
-
"indentation": "tab",
|
|
52
|
+
"stylistic/function-parentheses-newline-inside": "always-multi-line",
|
|
53
|
+
"stylistic/function-parentheses-space-inside": "never-single-line",
|
|
54
|
+
"stylistic/function-whitespace-after": "always",
|
|
55
|
+
"stylistic/indentation": "tab",
|
|
53
56
|
"length-zero-no-unit": true,
|
|
54
|
-
"max-empty-lines": 2,
|
|
55
|
-
"media-feature-colon-space-after": "always",
|
|
56
|
-
"media-feature-colon-space-before": "never",
|
|
57
|
-
"media-feature-name-case": "lower",
|
|
58
|
-
"media-feature-parentheses-space-inside": "never",
|
|
59
|
-
"media-feature-range-operator-space-after": "always",
|
|
60
|
-
"media-feature-range-operator-space-before": "always",
|
|
61
|
-
"media-query-list-comma-newline-after": "always-multi-line",
|
|
62
|
-
"media-query-list-comma-space-after": "always-single-line",
|
|
63
|
-
"media-query-list-comma-space-before": "never",
|
|
57
|
+
"stylistic/max-empty-lines": 2,
|
|
58
|
+
"stylistic/media-feature-colon-space-after": "always",
|
|
59
|
+
"stylistic/media-feature-colon-space-before": "never",
|
|
60
|
+
"stylistic/media-feature-name-case": "lower",
|
|
61
|
+
"stylistic/media-feature-parentheses-space-inside": "never",
|
|
62
|
+
"stylistic/media-feature-range-operator-space-after": "always",
|
|
63
|
+
"stylistic/media-feature-range-operator-space-before": "always",
|
|
64
|
+
"stylistic/media-query-list-comma-newline-after": "always-multi-line",
|
|
65
|
+
"stylistic/media-query-list-comma-space-after": "always-single-line",
|
|
66
|
+
"stylistic/media-query-list-comma-space-before": "never",
|
|
64
67
|
"no-descending-specificity": null,
|
|
65
|
-
"no-eol-whitespace": [true, {
|
|
68
|
+
"stylistic/no-eol-whitespace": [true, {
|
|
66
69
|
"ignore": ["empty-lines"]
|
|
67
70
|
}],
|
|
68
|
-
"number-leading-zero": "always",
|
|
69
|
-
"number-no-trailing-zeros": true,
|
|
71
|
+
"stylistic/number-leading-zero": "always",
|
|
72
|
+
"stylistic/number-no-trailing-zeros": true,
|
|
70
73
|
"order/order": [
|
|
71
74
|
"custom-properties",
|
|
72
75
|
"declarations"
|
|
73
76
|
],
|
|
74
77
|
"order/properties-alphabetical-order": true,
|
|
75
|
-
"property-case": "lower",
|
|
76
|
-
"selector-attribute-brackets-space-inside": "never",
|
|
77
|
-
"selector-attribute-operator-space-after": "never",
|
|
78
|
-
"selector-attribute-operator-space-before": "never",
|
|
79
|
-
"selector-combinator-space-after": "always",
|
|
80
|
-
"selector-combinator-space-before": "always",
|
|
81
|
-
"selector-descendant-combinator-no-non-space": true,
|
|
82
|
-
"selector-list-comma-space-before": "never",
|
|
83
|
-
"selector-max-empty-lines": 0,
|
|
84
|
-
"selector-pseudo-class-case": "lower",
|
|
85
|
-
"selector-pseudo-class-parentheses-space-inside": "never",
|
|
86
|
-
"selector-pseudo-element-case": "lower",
|
|
78
|
+
"stylistic/property-case": "lower",
|
|
79
|
+
"stylistic/selector-attribute-brackets-space-inside": "never",
|
|
80
|
+
"stylistic/selector-attribute-operator-space-after": "never",
|
|
81
|
+
"stylistic/selector-attribute-operator-space-before": "never",
|
|
82
|
+
"stylistic/selector-combinator-space-after": "always",
|
|
83
|
+
"stylistic/selector-combinator-space-before": "always",
|
|
84
|
+
"stylistic/selector-descendant-combinator-no-non-space": true,
|
|
85
|
+
"stylistic/selector-list-comma-space-before": "never",
|
|
86
|
+
"stylistic/selector-max-empty-lines": 0,
|
|
87
|
+
"stylistic/selector-pseudo-class-case": "lower",
|
|
88
|
+
"stylistic/selector-pseudo-class-parentheses-space-inside": "never",
|
|
89
|
+
"stylistic/selector-pseudo-element-case": "lower",
|
|
87
90
|
"selector-pseudo-element-colon-notation": "double",
|
|
88
91
|
"selector-pseudo-class-disallowed-list": ["host-context"],
|
|
89
92
|
"selector-type-case": "lower",
|
|
90
93
|
"selector-type-no-unknown": [true, {
|
|
91
94
|
"ignore": ["custom-elements"]
|
|
92
95
|
}],
|
|
93
|
-
"unit-case": "lower",
|
|
94
|
-
"value-list-comma-newline-after": "always-multi-line",
|
|
95
|
-
"value-list-comma-space-after": "always-single-line",
|
|
96
|
-
"value-list-comma-space-before": "never",
|
|
97
|
-
"value-list-max-empty-lines": 0
|
|
96
|
+
"stylistic/unit-case": "lower",
|
|
97
|
+
"stylistic/value-list-comma-newline-after": "always-multi-line",
|
|
98
|
+
"stylistic/value-list-comma-space-after": "always-single-line",
|
|
99
|
+
"stylistic/value-list-comma-space-before": "never",
|
|
100
|
+
"stylistic/value-list-max-empty-lines": 0
|
|
98
101
|
},
|
|
99
102
|
"overrides": [
|
|
100
103
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/stylelint-config",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Common Brightspace stylelint configs.",
|
|
5
5
|
"repository": "https://github.com/BrightspaceUI/stylelint-config.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
"@stylelint/postcss-css-in-js": "^0.38",
|
|
20
20
|
"postcss-html": "^1",
|
|
21
21
|
"postcss-syntax": "^0.36",
|
|
22
|
-
"stylelint": "
|
|
23
|
-
"stylelint-config-recommended": "
|
|
24
|
-
"stylelint-order": "^6"
|
|
22
|
+
"stylelint": "15.9.0",
|
|
23
|
+
"stylelint-config-recommended": "12",
|
|
24
|
+
"stylelint-order": "^6",
|
|
25
|
+
"stylelint-stylistic": "^0.4"
|
|
25
26
|
}
|
|
26
27
|
}
|