@enigmatry/stylelint-config 17.0.0-preview.5.1 → 17.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.
Files changed (3) hide show
  1. package/README.md +48 -48
  2. package/index.js +247 -247
  3. package/package.json +35 -35
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # @enigmatry/stylelint-config
2
-
3
- > Enigmatry's shareable config for stylelint.
4
-
5
- To see the rules that this config uses, please read the [config itself](./index.js).
6
-
7
- ## Installation
8
-
9
- ```
10
- npm install stylelint @enigmatry/stylelint-config --save-dev
11
- ```
12
-
13
- ## Usage
14
-
15
- Just set your `stylelint` config to:
16
-
17
- ```json
18
- {
19
- "extends": "@enigmatry/stylelint-config"
20
- }
21
- ```
22
-
23
-
24
- ### Extending the config
25
-
26
- Simply add a `"rules"` key to your config, then add your overrides and additions there.
27
-
28
- For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule,and add the `unit-allowed-list` rule:
29
-
30
- ```json
31
- {
32
- "extends": "stylelint-config-standard",
33
- "rules": {
34
- "at-rule-no-unknown": [
35
- true,
36
- {
37
- "ignoreAtRules": ["extends", "ignores"]
38
- }
39
- ],
40
- "indentation": "tab",
41
- "number-leading-zero": null,
42
- "unit-allowed-list": ["em", "rem", "s"]
43
- }
44
- }
45
- ```
46
-
47
- ## License
48
-
1
+ # @enigmatry/stylelint-config
2
+
3
+ > Enigmatry's shareable config for stylelint.
4
+
5
+ To see the rules that this config uses, please read the [config itself](./index.js).
6
+
7
+ ## Installation
8
+
9
+ ```
10
+ npm install stylelint @enigmatry/stylelint-config --save-dev
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ Just set your `stylelint` config to:
16
+
17
+ ```json
18
+ {
19
+ "extends": "@enigmatry/stylelint-config"
20
+ }
21
+ ```
22
+
23
+
24
+ ### Extending the config
25
+
26
+ Simply add a `"rules"` key to your config, then add your overrides and additions there.
27
+
28
+ For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule,and add the `unit-allowed-list` rule:
29
+
30
+ ```json
31
+ {
32
+ "extends": "stylelint-config-standard",
33
+ "rules": {
34
+ "at-rule-no-unknown": [
35
+ true,
36
+ {
37
+ "ignoreAtRules": ["extends", "ignores"]
38
+ }
39
+ ],
40
+ "indentation": "tab",
41
+ "number-leading-zero": null,
42
+ "unit-allowed-list": ["em", "rem", "s"]
43
+ }
44
+ }
45
+ ```
46
+
47
+ ## License
48
+
49
49
  Apache-2 © Enigmatry
package/index.js CHANGED
@@ -1,247 +1,247 @@
1
- 'use strict';
2
- module.exports = {
3
- customSyntax: "postcss-scss",
4
- ignoreAtRules: ["else"],
5
- extends: "stylelint-config-property-sort-order-smacss",
6
- plugins: [
7
- "@stylistic/stylelint-plugin",
8
- "stylelint-use-nesting",
9
- "stylelint-declaration-block-no-ignored-properties",
10
- "stylelint-file-max-lines",
11
- "stylelint-scss",
12
- "stylelint-group-selectors",
13
- // "stylelint-selector-no-empty", => uncomment this line once this library is again compatible with stylelint v16+
14
- ],
15
- rules: {
16
- "@stylistic/at-rule-name-case": "lower",
17
- "@stylistic/at-rule-name-newline-after": null,
18
- "@stylistic/at-rule-name-space-after": "always",
19
- "@stylistic/at-rule-semicolon-newline-after": "always",
20
- "@stylistic/at-rule-semicolon-space-before": "never",
21
- "@stylistic/block-closing-brace-empty-line-before": "never",
22
- "@stylistic/block-closing-brace-newline-after": "always",
23
- "@stylistic/block-closing-brace-newline-before": "always",
24
- "@stylistic/block-closing-brace-space-after": null,
25
- "@stylistic/block-closing-brace-space-before": "always-single-line",
26
- "@stylistic/block-opening-brace-newline-after": "always",
27
- "@stylistic/block-opening-brace-newline-before": "never-single-line",
28
- "@stylistic/block-opening-brace-space-after": null,
29
- "@stylistic/block-opening-brace-space-before": "always",
30
- "@stylistic/color-hex-case": "upper",
31
- "@stylistic/declaration-bang-space-after": "never",
32
- "@stylistic/declaration-bang-space-before": "always",
33
- "@stylistic/declaration-block-semicolon-newline-after": "always",
34
- "@stylistic/declaration-block-semicolon-newline-before": "never-multi-line",
35
- "@stylistic/declaration-block-semicolon-space-after": null,
36
- "@stylistic/declaration-block-semicolon-space-before": "never",
37
- "@stylistic/declaration-block-trailing-semicolon": "always",
38
- "@stylistic/declaration-colon-newline-after": null,
39
- "@stylistic/declaration-colon-space-after": "always",
40
- "@stylistic/declaration-colon-space-before": "never",
41
- "@stylistic/function-comma-newline-after": "never-multi-line",
42
- "@stylistic/function-comma-newline-before": "never-multi-line",
43
- "@stylistic/function-comma-space-after": "always-single-line",
44
- "@stylistic/function-comma-space-before": "never",
45
- "@stylistic/function-max-empty-lines": 0,
46
- "@stylistic/function-parentheses-newline-inside": "never-multi-line",
47
- "@stylistic/function-parentheses-space-inside": "never",
48
- "@stylistic/function-whitespace-after": "always",
49
- "@stylistic/indentation": "tab",
50
- "@stylistic/linebreaks": null,
51
- "@stylistic/max-empty-lines": 1,
52
- "@stylistic/max-line-length": [
53
- 135,
54
- { "ignore": ["comments"] }
55
- ],
56
- "@stylistic/media-feature-colon-space-after": "always",
57
- "@stylistic/media-feature-colon-space-before": "never",
58
- "@stylistic/media-feature-name-case": "lower",
59
- "@stylistic/media-feature-parentheses-space-inside": "never",
60
- "@stylistic/media-feature-range-operator-space-after": "always",
61
- "@stylistic/media-feature-range-operator-space-before": "always",
62
- "@stylistic/media-query-list-comma-newline-after": "never-multi-line",
63
- "@stylistic/media-query-list-comma-newline-before": "never-multi-line",
64
- "@stylistic/media-query-list-comma-space-after": "always",
65
- "@stylistic/media-query-list-comma-space-before": "never",
66
- "@stylistic/named-grid-areas-alignment": true,
67
- "@stylistic/no-empty-first-line": true,
68
- "@stylistic/no-eol-whitespace": [true, {
69
- ignore: ["empty-lines"]
70
- }],
71
- "@stylistic/no-extra-semicolons": true,
72
- "@stylistic/no-missing-end-of-source-newline": null,
73
- "@stylistic/number-leading-zero": "never",
74
- "@stylistic/number-no-trailing-zeros": true,
75
- "@stylistic/property-case": "lower",
76
- "@stylistic/selector-attribute-brackets-space-inside": "never",
77
- "@stylistic/selector-attribute-operator-space-after": "always",
78
- "@stylistic/selector-attribute-operator-space-before": "always",
79
- "@stylistic/selector-combinator-space-after": "always",
80
- "@stylistic/selector-combinator-space-before": "always",
81
- "@stylistic/selector-descendant-combinator-no-non-space": true,
82
- "@stylistic/selector-list-comma-space-after": "always",
83
- "@stylistic/selector-list-comma-space-before": "never",
84
- "@stylistic/selector-list-comma-newline-after": null,
85
- "@stylistic/selector-list-comma-newline-before": null,
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",
90
- "@stylistic/string-quotes": "single",
91
- "@stylistic/unit-case": "lower",
92
- "@stylistic/value-list-comma-newline-after": "never-multi-line",
93
- "@stylistic/value-list-comma-newline-before": "never-multi-line",
94
- "@stylistic/value-list-comma-space-after": "always-single-line",
95
- "@stylistic/value-list-comma-space-before": "never",
96
- "@stylistic/value-list-max-empty-lines": 0,
97
- "@stylistic/unicode-bom": null,
98
- "alpha-value-notation": "number",
99
- "annotation-no-unknown": [
100
- true,
101
- {
102
- "ignoreAnnotations": [
103
- "default"
104
- ]
105
- }
106
- ],
107
- "at-rule-allowed-list": ["use", "for", "if", "else", "include", "extend", "return", "error", "each", "mixin", "function", "keyframes", "font-face", "forward", "at-root", "while"],
108
- "at-rule-no-unknown": null,
109
- "block-no-empty": true,
110
- "comment-no-empty": true,
111
- "comment-whitespace-inside": "always",
112
- "color-function-notation": "modern",
113
- "color-hex-length": "short",
114
- "color-named": "never",
115
- "color-no-invalid-hex": true,
116
- "custom-property-empty-line-before": "always",
117
- "declaration-empty-line-before": "never",
118
- "declaration-block-no-duplicate-custom-properties": true,
119
- "declaration-block-no-duplicate-properties": true,
120
- "declaration-block-no-shorthand-property-overrides": true,
121
- "declaration-block-no-redundant-longhand-properties": true,
122
- "declaration-block-single-line-max-declarations": 1,
123
- "declaration-no-important": true,
124
- "declaration-property-max-values": {},
125
- "declaration-property-value-no-unknown": null,
126
- "font-family-name-quotes": "always-unless-keyword",
127
- "font-family-no-duplicate-names": true,
128
- "font-family-no-missing-generic-family-keyword": true,
129
- "font-weight-notation": "numeric",
130
- "function-calc-no-unspaced-operator": true,
131
- "function-linear-gradient-no-nonstandard-direction": true,
132
- "function-name-case": "lower",
133
- "function-no-unknown": null,
134
- "function-url-no-scheme-relative": true,
135
- "function-url-quotes": "always",
136
- "hue-degree-notation": "number",
137
- "import-notation": "string",
138
- "keyframe-block-no-duplicate-selectors": true,
139
- "keyframe-declaration-no-important": true,
140
- "length-zero-no-unit": true,
141
- "lightness-notation": "number",
142
- "max-nesting-depth": 3,
143
- "media-feature-name-allowed-list": ["min-width", "width", "-ms-high-contrast"],
144
- "media-feature-name-no-unknown": true,
145
- "media-feature-range-notation": "context",
146
- "no-descending-specificity": true,
147
- "no-duplicate-at-import-rules": true,
148
- "no-duplicate-selectors": true,
149
- "no-invalid-double-slash-comments": true,
150
- "no-unknown-animations": true,
151
- "no-unknown-custom-properties": null,
152
- "number-max-precision": 2,
153
- "property-no-unknown": true,
154
- "property-no-vendor-prefix": true,
155
- "rule-empty-line-before": [
156
- "always",
157
- { "except": ["after-single-line-comment", "first-nested"] }
158
- ],
159
- "selector-anb-no-unmatchable": true,
160
- "selector-attribute-quotes": "always",
161
- "selector-disallowed-list": null,
162
- "selector-max-attribute": 0,
163
- "selector-max-combinators": 2,
164
- "selector-max-compound-selectors": 3,
165
- "selector-max-id": 0,
166
- "selector-max-pseudo-class": 1,
167
- "selector-max-type": 2,
168
- "selector-max-universal": 0,
169
- "selector-no-qualifying-type": true,
170
- "selector-no-vendor-prefix": true,
171
- "selector-pseudo-class-no-unknown": true,
172
- "selector-pseudo-element-colon-notation": "double",
173
- "selector-pseudo-element-no-unknown": [
174
- true,
175
- { "ignorePseudoElements": ["host", "ng-deep"] }
176
- ],
177
- "selector-type-case": "lower",
178
- "selector-type-no-unknown": true,
179
- "shorthand-property-no-redundant-values": true,
180
- "string-no-newline": true,
181
- "time-min-milliseconds": 100,
182
- "unit-allowed-list": ["px", "%", "em", "rem", "vw", "deg", "ms", "s"],
183
- "unit-no-unknown": true,
184
- "value-keyword-case": "lower",
185
- "value-no-vendor-prefix": true,
186
- "scss/at-else-closing-brace-newline-after": "always-last-in-chain",
187
- "scss/at-else-closing-brace-space-after": "never-intermediate",
188
- "scss/at-else-empty-line-before": "never",
189
- "scss/at-else-if-parentheses-space-before": "never",
190
- "scss/at-extend-no-missing-placeholder": true,
191
- "scss/at-function-parentheses-space-before": "never",
192
- "scss/at-function-named-arguments": [
193
- "never",
194
- { "ignoreFunctions": ["color.adjust"] }
195
- ],
196
- "scss/at-if-closing-brace-newline-after": null,
197
- "scss/at-if-closing-brace-space-after": null,
198
- "scss/at-if-no-null": true,
199
- "scss/at-import-partial-extension": "never",
200
- "scss/at-mixin-argumentless-call-parentheses": "always",
201
- "scss/at-mixin-parentheses-space-before": "never",
202
- "scss/at-root-no-redundant": true,
203
- "scss/at-rule-no-unknown": [
204
- true,
205
- { "ignoreAtRules": ["use"] }
206
- ],
207
- "scss/at-use-no-redundant-alias": true,
208
- "scss/block-no-redundant-nesting": true,
209
- "scss/dollar-variable-colon-space-after": "always",
210
- "scss/dollar-variable-colon-space-before": "never",
211
- "scss/double-slash-comment-whitespace-inside": "always",
212
- "scss/comment-no-empty": true,
213
- "scss/function-no-unknown": [
214
- true,
215
- { "ignoreFunctions": ["/^-/", "/^mat\\./", "/^theming\\.mat/"] }
216
- ],
217
- "scss/function-quote-no-quoted-strings-inside": true,
218
- "scss/function-calculation-no-interpolation": null,
219
- "scss/function-unquote-no-unquoted-strings-inside": true,
220
- "scss/load-no-partial-leading-underscore": true,
221
- "scss/operator-no-newline-after": true,
222
- "scss/operator-no-newline-before": true,
223
- "scss/operator-no-unspaced": true,
224
- "scss/partial-no-import": true,
225
- "scss/selector-no-redundant-nesting-selector": true,
226
- "scss/selector-no-union-class-name": true,
227
- "scss/no-duplicate-dollar-variables": [
228
- true,
229
- {
230
- "ignoreInsideAtRules": [
231
- "each",
232
- "while"
233
- ]
234
- }
235
- ],
236
- "scss/no-duplicate-mixins": true,
237
- "scss/no-global-function-names": true,
238
- "scss/no-unused-private-members": null,
239
- "plugin/declaration-block-no-ignored-properties": true,
240
- "plugin/stylelint-group-selectors": true,
241
- //"plugin/stylelint-selector-no-empty": true, => uncomment this line once this library is again compatible with stylelint v15+
242
- // "csstools/use-nesting": ["always", => uncomment this line once this library is again compatible with stylelint v16+
243
- // { "syntax": "scss" }
244
- // ],
245
- "plugin/file-max-lines": 135
246
- }
247
- };
1
+ 'use strict';
2
+ module.exports = {
3
+ customSyntax: "postcss-scss",
4
+ ignoreAtRules: ["else"],
5
+ extends: "stylelint-config-property-sort-order-smacss",
6
+ plugins: [
7
+ "@stylistic/stylelint-plugin",
8
+ "stylelint-use-nesting",
9
+ "stylelint-declaration-block-no-ignored-properties",
10
+ "stylelint-file-max-lines",
11
+ "stylelint-scss",
12
+ "stylelint-group-selectors",
13
+ // "stylelint-selector-no-empty", => uncomment this line once this library is again compatible with stylelint v16+
14
+ ],
15
+ rules: {
16
+ "@stylistic/at-rule-name-case": "lower",
17
+ "@stylistic/at-rule-name-newline-after": null,
18
+ "@stylistic/at-rule-name-space-after": "always",
19
+ "@stylistic/at-rule-semicolon-newline-after": "always",
20
+ "@stylistic/at-rule-semicolon-space-before": "never",
21
+ "@stylistic/block-closing-brace-empty-line-before": "never",
22
+ "@stylistic/block-closing-brace-newline-after": "always",
23
+ "@stylistic/block-closing-brace-newline-before": "always",
24
+ "@stylistic/block-closing-brace-space-after": null,
25
+ "@stylistic/block-closing-brace-space-before": "always-single-line",
26
+ "@stylistic/block-opening-brace-newline-after": "always",
27
+ "@stylistic/block-opening-brace-newline-before": "never-single-line",
28
+ "@stylistic/block-opening-brace-space-after": null,
29
+ "@stylistic/block-opening-brace-space-before": "always",
30
+ "@stylistic/color-hex-case": "upper",
31
+ "@stylistic/declaration-bang-space-after": "never",
32
+ "@stylistic/declaration-bang-space-before": "always",
33
+ "@stylistic/declaration-block-semicolon-newline-after": "always",
34
+ "@stylistic/declaration-block-semicolon-newline-before": "never-multi-line",
35
+ "@stylistic/declaration-block-semicolon-space-after": null,
36
+ "@stylistic/declaration-block-semicolon-space-before": "never",
37
+ "@stylistic/declaration-block-trailing-semicolon": "always",
38
+ "@stylistic/declaration-colon-newline-after": null,
39
+ "@stylistic/declaration-colon-space-after": "always",
40
+ "@stylistic/declaration-colon-space-before": "never",
41
+ "@stylistic/function-comma-newline-after": "never-multi-line",
42
+ "@stylistic/function-comma-newline-before": "never-multi-line",
43
+ "@stylistic/function-comma-space-after": "always-single-line",
44
+ "@stylistic/function-comma-space-before": "never",
45
+ "@stylistic/function-max-empty-lines": 0,
46
+ "@stylistic/function-parentheses-newline-inside": "never-multi-line",
47
+ "@stylistic/function-parentheses-space-inside": "never",
48
+ "@stylistic/function-whitespace-after": "always",
49
+ "@stylistic/indentation": "tab",
50
+ "@stylistic/linebreaks": null,
51
+ "@stylistic/max-empty-lines": 1,
52
+ "@stylistic/max-line-length": [
53
+ 135,
54
+ { "ignore": ["comments"] }
55
+ ],
56
+ "@stylistic/media-feature-colon-space-after": "always",
57
+ "@stylistic/media-feature-colon-space-before": "never",
58
+ "@stylistic/media-feature-name-case": "lower",
59
+ "@stylistic/media-feature-parentheses-space-inside": "never",
60
+ "@stylistic/media-feature-range-operator-space-after": "always",
61
+ "@stylistic/media-feature-range-operator-space-before": "always",
62
+ "@stylistic/media-query-list-comma-newline-after": "never-multi-line",
63
+ "@stylistic/media-query-list-comma-newline-before": "never-multi-line",
64
+ "@stylistic/media-query-list-comma-space-after": "always",
65
+ "@stylistic/media-query-list-comma-space-before": "never",
66
+ "@stylistic/named-grid-areas-alignment": true,
67
+ "@stylistic/no-empty-first-line": true,
68
+ "@stylistic/no-eol-whitespace": [true, {
69
+ ignore: ["empty-lines"]
70
+ }],
71
+ "@stylistic/no-extra-semicolons": true,
72
+ "@stylistic/no-missing-end-of-source-newline": null,
73
+ "@stylistic/number-leading-zero": "never",
74
+ "@stylistic/number-no-trailing-zeros": true,
75
+ "@stylistic/property-case": "lower",
76
+ "@stylistic/selector-attribute-brackets-space-inside": "never",
77
+ "@stylistic/selector-attribute-operator-space-after": "always",
78
+ "@stylistic/selector-attribute-operator-space-before": "always",
79
+ "@stylistic/selector-combinator-space-after": "always",
80
+ "@stylistic/selector-combinator-space-before": "always",
81
+ "@stylistic/selector-descendant-combinator-no-non-space": true,
82
+ "@stylistic/selector-list-comma-space-after": "always",
83
+ "@stylistic/selector-list-comma-space-before": "never",
84
+ "@stylistic/selector-list-comma-newline-after": null,
85
+ "@stylistic/selector-list-comma-newline-before": null,
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",
90
+ "@stylistic/string-quotes": "single",
91
+ "@stylistic/unit-case": "lower",
92
+ "@stylistic/value-list-comma-newline-after": "never-multi-line",
93
+ "@stylistic/value-list-comma-newline-before": "never-multi-line",
94
+ "@stylistic/value-list-comma-space-after": "always-single-line",
95
+ "@stylistic/value-list-comma-space-before": "never",
96
+ "@stylistic/value-list-max-empty-lines": 0,
97
+ "@stylistic/unicode-bom": null,
98
+ "alpha-value-notation": "number",
99
+ "annotation-no-unknown": [
100
+ true,
101
+ {
102
+ "ignoreAnnotations": [
103
+ "default"
104
+ ]
105
+ }
106
+ ],
107
+ "at-rule-allowed-list": ["use", "for", "if", "else", "include", "extend", "return", "error", "each", "mixin", "function", "keyframes", "font-face", "forward", "at-root", "while"],
108
+ "at-rule-no-unknown": null,
109
+ "block-no-empty": true,
110
+ "comment-no-empty": true,
111
+ "comment-whitespace-inside": "always",
112
+ "color-function-notation": "modern",
113
+ "color-hex-length": "short",
114
+ "color-named": "never",
115
+ "color-no-invalid-hex": true,
116
+ "custom-property-empty-line-before": "always",
117
+ "declaration-empty-line-before": "never",
118
+ "declaration-block-no-duplicate-custom-properties": true,
119
+ "declaration-block-no-duplicate-properties": true,
120
+ "declaration-block-no-shorthand-property-overrides": true,
121
+ "declaration-block-no-redundant-longhand-properties": true,
122
+ "declaration-block-single-line-max-declarations": 1,
123
+ "declaration-no-important": true,
124
+ "declaration-property-max-values": {},
125
+ "declaration-property-value-no-unknown": null,
126
+ "font-family-name-quotes": "always-unless-keyword",
127
+ "font-family-no-duplicate-names": true,
128
+ "font-family-no-missing-generic-family-keyword": true,
129
+ "font-weight-notation": "numeric",
130
+ "function-calc-no-unspaced-operator": true,
131
+ "function-linear-gradient-no-nonstandard-direction": true,
132
+ "function-name-case": "lower",
133
+ "function-no-unknown": null,
134
+ "function-url-no-scheme-relative": true,
135
+ "function-url-quotes": "always",
136
+ "hue-degree-notation": "number",
137
+ "import-notation": "string",
138
+ "keyframe-block-no-duplicate-selectors": true,
139
+ "keyframe-declaration-no-important": true,
140
+ "length-zero-no-unit": true,
141
+ "lightness-notation": "number",
142
+ "max-nesting-depth": 3,
143
+ "media-feature-name-allowed-list": ["min-width", "width", "-ms-high-contrast"],
144
+ "media-feature-name-no-unknown": true,
145
+ "media-feature-range-notation": "context",
146
+ "no-descending-specificity": true,
147
+ "no-duplicate-at-import-rules": true,
148
+ "no-duplicate-selectors": true,
149
+ "no-invalid-double-slash-comments": true,
150
+ "no-unknown-animations": true,
151
+ "no-unknown-custom-properties": null,
152
+ "number-max-precision": 2,
153
+ "property-no-unknown": true,
154
+ "property-no-vendor-prefix": true,
155
+ "rule-empty-line-before": [
156
+ "always",
157
+ { "except": ["after-single-line-comment", "first-nested"] }
158
+ ],
159
+ "selector-anb-no-unmatchable": true,
160
+ "selector-attribute-quotes": "always",
161
+ "selector-disallowed-list": null,
162
+ "selector-max-attribute": 0,
163
+ "selector-max-combinators": 2,
164
+ "selector-max-compound-selectors": 3,
165
+ "selector-max-id": 0,
166
+ "selector-max-pseudo-class": 1,
167
+ "selector-max-type": 2,
168
+ "selector-max-universal": 0,
169
+ "selector-no-qualifying-type": true,
170
+ "selector-no-vendor-prefix": true,
171
+ "selector-pseudo-class-no-unknown": true,
172
+ "selector-pseudo-element-colon-notation": "double",
173
+ "selector-pseudo-element-no-unknown": [
174
+ true,
175
+ { "ignorePseudoElements": ["host", "ng-deep"] }
176
+ ],
177
+ "selector-type-case": "lower",
178
+ "selector-type-no-unknown": true,
179
+ "shorthand-property-no-redundant-values": true,
180
+ "string-no-newline": true,
181
+ "time-min-milliseconds": 100,
182
+ "unit-allowed-list": ["px", "%", "em", "rem", "vw", "deg", "ms", "s"],
183
+ "unit-no-unknown": true,
184
+ "value-keyword-case": "lower",
185
+ "value-no-vendor-prefix": true,
186
+ "scss/at-else-closing-brace-newline-after": "always-last-in-chain",
187
+ "scss/at-else-closing-brace-space-after": "never-intermediate",
188
+ "scss/at-else-empty-line-before": "never",
189
+ "scss/at-else-if-parentheses-space-before": "never",
190
+ "scss/at-extend-no-missing-placeholder": true,
191
+ "scss/at-function-parentheses-space-before": "never",
192
+ "scss/at-function-named-arguments": [
193
+ "never",
194
+ { "ignoreFunctions": ["color.adjust"] }
195
+ ],
196
+ "scss/at-if-closing-brace-newline-after": null,
197
+ "scss/at-if-closing-brace-space-after": null,
198
+ "scss/at-if-no-null": true,
199
+ "scss/at-import-partial-extension": "never",
200
+ "scss/at-mixin-argumentless-call-parentheses": "always",
201
+ "scss/at-mixin-parentheses-space-before": "never",
202
+ "scss/at-root-no-redundant": true,
203
+ "scss/at-rule-no-unknown": [
204
+ true,
205
+ { "ignoreAtRules": ["use"] }
206
+ ],
207
+ "scss/at-use-no-redundant-alias": true,
208
+ "scss/block-no-redundant-nesting": true,
209
+ "scss/dollar-variable-colon-space-after": "always",
210
+ "scss/dollar-variable-colon-space-before": "never",
211
+ "scss/double-slash-comment-whitespace-inside": "always",
212
+ "scss/comment-no-empty": true,
213
+ "scss/function-no-unknown": [
214
+ true,
215
+ { "ignoreFunctions": ["/^-/", "/^mat\\./", "/^theming\\.mat/"] }
216
+ ],
217
+ "scss/function-quote-no-quoted-strings-inside": true,
218
+ "scss/function-calculation-no-interpolation": null,
219
+ "scss/function-unquote-no-unquoted-strings-inside": true,
220
+ "scss/load-no-partial-leading-underscore": true,
221
+ "scss/operator-no-newline-after": true,
222
+ "scss/operator-no-newline-before": true,
223
+ "scss/operator-no-unspaced": true,
224
+ "scss/partial-no-import": true,
225
+ "scss/selector-no-redundant-nesting-selector": true,
226
+ "scss/selector-no-union-class-name": true,
227
+ "scss/no-duplicate-dollar-variables": [
228
+ true,
229
+ {
230
+ "ignoreInsideAtRules": [
231
+ "each",
232
+ "while"
233
+ ]
234
+ }
235
+ ],
236
+ "scss/no-duplicate-mixins": true,
237
+ "scss/no-global-function-names": true,
238
+ "scss/no-unused-private-members": null,
239
+ "plugin/declaration-block-no-ignored-properties": true,
240
+ "plugin/stylelint-group-selectors": true,
241
+ //"plugin/stylelint-selector-no-empty": true, => uncomment this line once this library is again compatible with stylelint v15+
242
+ // "csstools/use-nesting": ["always", => uncomment this line once this library is again compatible with stylelint v16+
243
+ // { "syntax": "scss" }
244
+ // ],
245
+ "plugin/file-max-lines": 135
246
+ }
247
+ };
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "name": "@enigmatry/stylelint-config",
3
- "version": "17.0.0-preview.5.1",
4
- "author": "Enigmatry",
5
- "description": "Stylelint shareable config for the Enigmatry style.",
6
- "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/stylelint-config#readme",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/enigmatry/entry-angular-building-blocks.git"
10
- },
11
- "license": "Apache-2.0",
12
- "files": [
13
- "index.js"
14
- ],
15
- "dependencies": {
16
- "postcss-scss": "^4.0.9",
17
- "stylelint-config-property-sort-order-smacss": "^10.0.0",
18
- "@stylistic/stylelint-plugin": "^2.1.2",
19
- "stylelint-use-nesting": "^5.1.1",
20
- "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
21
- "stylelint-file-max-lines": "^1.0.0",
22
- "stylelint-scss": "^6.1.0",
23
- "stylelint-group-selectors": "^1.0.10"
24
- },
25
- "peerDependencies": {
26
- "stylelint": "^16.5.0"
27
- },
28
- "deprecatedDependencies": {
29
- "stylelint-use-nesting": "4.1.0 is out of support. Add it back to the list if support for Stylelint v16+ is added",
30
- "stylelint-selector-no-empty": "1.0.9 is out of support. Add it back to the list if support for Stylelint v16+ is added"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- }
35
- }
1
+ {
2
+ "name": "@enigmatry/stylelint-config",
3
+ "version": "17.0.0",
4
+ "author": "Enigmatry",
5
+ "description": "Stylelint shareable config for the Enigmatry style.",
6
+ "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/stylelint-config#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/enigmatry/entry-angular-building-blocks.git"
10
+ },
11
+ "license": "Apache-2.0",
12
+ "files": [
13
+ "index.js"
14
+ ],
15
+ "dependencies": {
16
+ "postcss-scss": "^4.0.9",
17
+ "stylelint-config-property-sort-order-smacss": "^10.0.0",
18
+ "@stylistic/stylelint-plugin": "^2.1.2",
19
+ "stylelint-use-nesting": "^5.1.1",
20
+ "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
21
+ "stylelint-file-max-lines": "^1.0.0",
22
+ "stylelint-scss": "^6.1.0",
23
+ "stylelint-group-selectors": "^1.0.10"
24
+ },
25
+ "peerDependencies": {
26
+ "stylelint": "^16.5.0"
27
+ },
28
+ "deprecatedDependencies": {
29
+ "stylelint-use-nesting": "4.1.0 is out of support. Add it back to the list if support for Stylelint v16+ is added",
30
+ "stylelint-selector-no-empty": "1.0.9 is out of support. Add it back to the list if support for Stylelint v16+ is added"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }