@brightspace-ui/stylelint-config 0.3.1 → 0.6.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/index.js +105 -104
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1,108 +1,109 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
4
|
+
"extends": "stylelint-config-recommended",
|
|
5
|
+
"plugins": ["stylelint-order"],
|
|
6
|
+
"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",
|
|
17
|
+
"color-hex-length": "long",
|
|
18
|
+
"comment-whitespace-inside": "always",
|
|
19
|
+
"custom-property-pattern": ["^d2l-", {
|
|
20
|
+
"message": "Expected custom property to begin with \"d2l-\""
|
|
21
|
+
}],
|
|
22
|
+
"custom-property-empty-line-before": ["always", {
|
|
23
|
+
"except": [
|
|
24
|
+
"after-custom-property",
|
|
25
|
+
"first-nested"
|
|
26
|
+
],
|
|
27
|
+
"ignore": [
|
|
28
|
+
"after-comment",
|
|
29
|
+
"inside-single-line-block"
|
|
30
|
+
]
|
|
31
|
+
}],
|
|
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",
|
|
37
|
+
"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,
|
|
46
|
+
"function-name-case": ["lower", {
|
|
47
|
+
"ignoreFunctions": ["${unsafeCSS"]
|
|
48
|
+
}],
|
|
49
|
+
"function-parentheses-newline-inside": "always-multi-line",
|
|
50
|
+
"function-parentheses-space-inside": "never-single-line",
|
|
51
|
+
"function-whitespace-after": "always",
|
|
52
|
+
"indentation": "tab",
|
|
53
|
+
"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",
|
|
64
|
+
"no-descending-specificity": null,
|
|
65
|
+
"no-eol-whitespace": [true, {
|
|
66
|
+
"ignore": ["empty-lines"]
|
|
67
|
+
}],
|
|
68
|
+
"number-leading-zero": "always",
|
|
69
|
+
"number-no-trailing-zeros": true,
|
|
70
|
+
"order/order": [
|
|
71
|
+
"custom-properties",
|
|
72
|
+
"declarations"
|
|
73
|
+
],
|
|
74
|
+
"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",
|
|
87
|
+
"selector-pseudo-element-colon-notation": "double",
|
|
88
|
+
"selector-pseudo-class-disallowed-list": ["host-context"],
|
|
89
|
+
"selector-type-case": "lower",
|
|
90
|
+
"selector-type-no-unknown": [true, {
|
|
91
|
+
"ignore": ["custom-elements"]
|
|
92
|
+
}],
|
|
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
|
|
98
|
+
},
|
|
99
|
+
"overrides": [
|
|
100
|
+
{
|
|
101
|
+
"files": ["**/*.js"],
|
|
102
|
+
"customSyntax": "@stylelint/postcss-css-in-js"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"files": ["**/*.html"],
|
|
106
|
+
"customSyntax": "postcss-html"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
108
109
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/stylelint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Common Brightspace stylelint configs.",
|
|
5
5
|
"repository": "https://github.com/BrightspaceUI/stylelint-config.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"author": "D2L Corporation",
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@stylelint/postcss-css-in-js": "^0.
|
|
20
|
-
"postcss-html": "^1
|
|
21
|
-
"postcss-syntax": "^0.36
|
|
19
|
+
"@stylelint/postcss-css-in-js": "^0.38",
|
|
20
|
+
"postcss-html": "^1",
|
|
21
|
+
"postcss-syntax": "^0.36",
|
|
22
22
|
"stylelint": "^14",
|
|
23
|
-
"stylelint-config-recommended": "^
|
|
23
|
+
"stylelint-config-recommended": "^8",
|
|
24
24
|
"stylelint-order": "^5"
|
|
25
25
|
}
|
|
26
26
|
}
|