@enigmatry/stylelint-config 1.0.178

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 +49 -0
  2. package/index.js +205 -0
  3. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +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
+
49
+ Apache-2 © Enigmatry
package/index.js ADDED
@@ -0,0 +1,205 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ customSyntax: "postcss-scss",
4
+ ignoreAtRules: [ "else" ],
5
+ extends: "stylelint-config-property-sort-order-smacss",
6
+ plugins: [
7
+ "stylelint-scss",
8
+ "stylelint-use-nesting",
9
+ "stylelint-selector-no-empty",
10
+ "stylelint-group-selectors",
11
+ "stylelint-max-lines",
12
+ "stylelint-declaration-block-no-ignored-properties"
13
+ ],
14
+ rules: {
15
+ "alpha-value-notation": "number",
16
+ "annotation-no-unknown": true,
17
+ "at-rule-allowed-list": [ "use", "for", "if", "else", "include", "extend", "return", "error", "each", "mixin", "function", "keyframes", "font-face", "forward", "at-root" ],
18
+ "at-rule-name-case": "lower",
19
+ "at-rule-name-space-after": "always",
20
+ "at-rule-no-unknown": null,
21
+ "at-rule-semicolon-newline-after": "always",
22
+ "at-rule-semicolon-space-before": "never",
23
+ "block-closing-brace-empty-line-before": "never",
24
+ "block-closing-brace-newline-after": "always",
25
+ "block-closing-brace-newline-before": "always",
26
+ "block-closing-brace-space-before": "always-single-line",
27
+ "block-opening-brace-newline-after": "always",
28
+ "block-opening-brace-newline-before": "never-single-line",
29
+ "block-opening-brace-space-before": "always",
30
+ "block-no-empty": true,
31
+ "comment-no-empty": true,
32
+ "comment-whitespace-inside": "always",
33
+ "color-function-notation": "modern",
34
+ "color-hex-case": "upper",
35
+ "color-hex-length": "short",
36
+ "color-named": "never",
37
+ "color-no-invalid-hex": true,
38
+ "custom-property-empty-line-before": "always",
39
+ "declaration-bang-space-after": "never",
40
+ "declaration-bang-space-before": "always",
41
+ "declaration-block-trailing-semicolon": "always",
42
+ "declaration-colon-space-after": "always",
43
+ "declaration-colon-space-before": "never",
44
+ "declaration-empty-line-before": "never",
45
+ "declaration-block-no-duplicate-custom-properties": true,
46
+ "declaration-block-no-duplicate-properties": true,
47
+ "declaration-block-no-shorthand-property-overrides": true,
48
+ "declaration-block-no-redundant-longhand-properties": true,
49
+ "declaration-block-semicolon-newline-after": "always",
50
+ "declaration-block-semicolon-newline-before": "never-multi-line",
51
+ "declaration-block-single-line-max-declarations": 1,
52
+ "declaration-no-important": true,
53
+ "declaration-property-max-values": {},
54
+ "font-family-name-quotes": "always-unless-keyword",
55
+ "font-family-no-duplicate-names": true,
56
+ "font-family-no-missing-generic-family-keyword": true,
57
+ "font-weight-notation": "numeric",
58
+ "function-calc-no-unspaced-operator": true,
59
+ "function-comma-newline-after": "never-multi-line",
60
+ "function-comma-newline-before": "never-multi-line",
61
+ "function-comma-space-after": "always-single-line",
62
+ "function-comma-space-before": "never",
63
+ "function-linear-gradient-no-nonstandard-direction": true,
64
+ "function-name-case": "lower",
65
+ "function-no-unknown": null,
66
+ "function-parentheses-newline-inside": "never-multi-line",
67
+ "function-parentheses-space-inside": "never",
68
+ "function-url-no-scheme-relative": true,
69
+ "function-url-quotes": "always",
70
+ "function-whitespace-after": "always",
71
+ "hue-degree-notation": "number",
72
+ "import-notation": "string",
73
+ "indentation": "tab",
74
+ "keyframe-block-no-duplicate-selectors": true,
75
+ "keyframe-declaration-no-important": true,
76
+ "length-zero-no-unit": true,
77
+ "max-empty-lines": 1,
78
+ "max-line-length": [
79
+ 135,
80
+ { "ignore": [ "comments" ] }
81
+ ],
82
+ "max-nesting-depth": 3,
83
+ "media-feature-colon-space-after": "always",
84
+ "media-feature-colon-space-before": "never",
85
+ "media-feature-name-allowed-list": [ "min-width", "-ms-high-contrast" ],
86
+ "media-feature-name-case": "lower",
87
+ "media-feature-name-no-unknown": true,
88
+ "media-feature-parentheses-space-inside": "never",
89
+ "media-feature-range-operator-space-after": "always",
90
+ "media-feature-range-operator-space-before": "always",
91
+ "media-query-list-comma-newline-after": "never-multi-line",
92
+ "media-query-list-comma-newline-before": "never-multi-line",
93
+ "media-query-list-comma-space-after": "always",
94
+ "media-query-list-comma-space-before": "never",
95
+ "no-descending-specificity": true,
96
+ "no-duplicate-at-import-rules": true,
97
+ "no-duplicate-selectors": true,
98
+ "no-empty-first-line": true,
99
+ "no-extra-semicolons": true,
100
+ "no-invalid-double-slash-comments": true,
101
+ "no-unknown-animations": true,
102
+ "number-max-precision": 2,
103
+ "number-no-trailing-zeros": true,
104
+ "number-leading-zero": "never",
105
+ "property-case": "lower",
106
+ "property-no-unknown": true,
107
+ "property-no-vendor-prefix": true,
108
+ "rule-empty-line-before": [
109
+ "always",
110
+ { "except": [ "after-single-line-comment", "first-nested" ] }
111
+ ],
112
+ "selector-attribute-brackets-space-inside": "never",
113
+ "selector-attribute-operator-space-after": "always",
114
+ "selector-attribute-operator-space-before": "always",
115
+ "selector-attribute-quotes": "always",
116
+ "selector-combinator-space-after": "always",
117
+ "selector-combinator-space-before": "always",
118
+ "selector-descendant-combinator-no-non-space": true,
119
+ "selector-list-comma-space-after": "always",
120
+ "selector-list-comma-space-before": "never",
121
+ "selector-max-attribute": 0,
122
+ "selector-max-combinators": 2,
123
+ "selector-max-compound-selectors": 3,
124
+ "selector-max-empty-lines": 0,
125
+ "selector-max-id": 0,
126
+ "selector-max-pseudo-class": 1,
127
+ "selector-max-type": 2,
128
+ "selector-max-universal": 0,
129
+ "selector-no-qualifying-type": true,
130
+ "selector-no-vendor-prefix": true,
131
+ "selector-pseudo-class-case": "lower",
132
+ "selector-pseudo-class-no-unknown": true,
133
+ "selector-pseudo-class-parentheses-space-inside": "never",
134
+ "selector-pseudo-element-case": "lower",
135
+ "selector-pseudo-element-colon-notation": "double",
136
+ "selector-pseudo-element-no-unknown": [
137
+ true,
138
+ { "ignorePseudoElements": [ "host", "ng-deep" ] }
139
+ ],
140
+ "selector-type-case": "lower",
141
+ "selector-type-no-unknown": true,
142
+ "shorthand-property-no-redundant-values": true,
143
+ "string-no-newline": true,
144
+ "string-quotes": "single",
145
+ "time-min-milliseconds": 100,
146
+ "unit-allowed-list": [ "px", "%", "em", "rem", "vw", "deg", "ms", "s" ],
147
+ "unit-case": "lower",
148
+ "unit-no-unknown": true,
149
+ "value-keyword-case": "lower",
150
+ "value-list-comma-newline-after": "never-multi-line",
151
+ "value-list-comma-newline-before": "never-multi-line",
152
+ "value-list-comma-space-after": "always-single-line",
153
+ "value-list-comma-space-before": "never",
154
+ "value-no-vendor-prefix": true,
155
+ "scss/at-else-closing-brace-newline-after": "always-last-in-chain",
156
+ "scss/at-else-closing-brace-space-after": "never-intermediate",
157
+ "scss/at-else-empty-line-before": "never",
158
+ "scss/at-else-if-parentheses-space-before": "never",
159
+ "scss/at-extend-no-missing-placeholder": true,
160
+ "scss/at-function-parentheses-space-before": "never",
161
+ "scss/at-function-named-arguments": [
162
+ "never",
163
+ { "ignoreFunctions": [ "color.adjust" ] }
164
+ ],
165
+ "scss/at-if-closing-brace-newline-after": null,
166
+ "scss/at-if-closing-brace-space-after": null,
167
+ "scss/at-if-no-null": true,
168
+ "scss/at-import-no-partial-leading-underscore": true,
169
+ "scss/at-import-partial-extension": "never",
170
+ "scss/at-mixin-argumentless-call-parentheses": "always",
171
+ "scss/at-mixin-parentheses-space-before": "never",
172
+ "scss/dollar-variable-colon-space-after": "always",
173
+ "scss/dollar-variable-colon-space-before": "never",
174
+ "scss/double-slash-comment-whitespace-inside": "always",
175
+ "scss/comment-no-empty": true,
176
+ "scss/function-no-unknown": [
177
+ true,
178
+ { "ignoreFunctions": ["/^-/"] }
179
+ ],
180
+ "scss/function-quote-no-quoted-strings-inside": true,
181
+ "scss/function-unquote-no-unquoted-strings-inside": true,
182
+ "scss/operator-no-newline-after": true,
183
+ "scss/operator-no-newline-before": true,
184
+ "scss/operator-no-unspaced": true,
185
+ "scss/partial-no-import": true,
186
+ "scss/selector-no-redundant-nesting-selector": true,
187
+ "scss/selector-no-union-class-name": true,
188
+ "scss/no-duplicate-dollar-variables": true,
189
+ "scss/no-duplicate-mixins": true,
190
+ "scss/no-global-function-names": true,
191
+ "scss/declaration-nested-properties": [
192
+ "always",
193
+ { "except": [ "only-of-namespace" ] }
194
+ ],
195
+ "scss/at-rule-no-unknown": [
196
+ true,
197
+ { "ignoreAtRules": [ "use" ] }
198
+ ],
199
+ "plugin/declaration-block-no-ignored-properties": true,
200
+ "plugin/stylelint-group-selectors": true,
201
+ "plugin/stylelint-selector-no-empty": true,
202
+ "csstools/use-nesting": "always",
203
+ "pitcher/max-lines": 135
204
+ }
205
+ };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@enigmatry/stylelint-config",
3
+ "version": "1.0.178",
4
+ "author": "Enigmatry",
5
+ "description": "Stylelint shareable config for the Enigmatry style.",
6
+ "license": "Apache-2.0",
7
+ "files": [
8
+ "index.js"
9
+ ],
10
+ "dependencies": {
11
+ "stylelint": "14.11.0",
12
+ "postcss-scss": "4.0.6",
13
+ "stylelint-config-property-sort-order-smacss": "9.0.0",
14
+ "stylelint-declaration-block-no-ignored-properties": "2.5.0",
15
+ "stylelint-group-selectors": "1.0.9",
16
+ "stylelint-max-lines": "0.1.0",
17
+ "stylelint-scss": "4.3.0",
18
+ "stylelint-selector-no-empty": "1.0.9",
19
+ "stylelint-use-nesting": "4.0.0"
20
+ },
21
+ "peerDependencies": {
22
+ "stylelint": "14.11.0",
23
+ "postcss-scss": "4.0.6",
24
+ "stylelint-config-property-sort-order-smacss": "9.0.0",
25
+ "stylelint-declaration-block-no-ignored-properties": "2.5.0",
26
+ "stylelint-group-selectors": "1.0.9",
27
+ "stylelint-max-lines": "0.1.0",
28
+ "stylelint-scss": "4.3.0",
29
+ "stylelint-selector-no-empty": "1.0.9",
30
+ "stylelint-use-nesting": "4.0.0"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }