@onefinity/stylelint-config 1.1.1 → 2.2.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 +17 -8
- package/package.json +4 -5
package/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends:
|
|
3
|
-
'stylelint-config-recommended',
|
|
4
|
-
'stylelint-config-css-modules'
|
|
5
|
-
],
|
|
2
|
+
extends: 'stylelint-config-standard-scss',
|
|
6
3
|
plugins: [
|
|
7
4
|
'stylelint-order'
|
|
8
5
|
],
|
|
9
6
|
rules: {
|
|
7
|
+
'alpha-value-notation': 'number',
|
|
10
8
|
'at-rule-empty-line-before': ['always', {
|
|
11
9
|
'except': ['first-nested', 'blockless-after-blockless'],
|
|
12
10
|
'ignore': ['after-comment'],
|
|
13
11
|
'ignoreAtRules': ['if', 'else']
|
|
14
12
|
}],
|
|
15
13
|
'at-rule-name-space-after': 'always',
|
|
16
|
-
'at-rule-no-unknown':
|
|
17
|
-
'ignoreAtRules': ['at-root', 'content', 'each', 'else', 'error', 'extend', 'for', 'function', 'if', 'include', 'mixin', 'return', 'warn']
|
|
18
|
-
}],
|
|
14
|
+
'at-rule-no-unknown': null,
|
|
19
15
|
'block-closing-brace-newline-before': 'always',
|
|
20
16
|
'block-closing-brace-newline-after': ['always', {
|
|
21
17
|
'ignoreAtRules': ['if', 'else']
|
|
@@ -23,11 +19,12 @@ module.exports = {
|
|
|
23
19
|
'block-no-empty': true,
|
|
24
20
|
'block-opening-brace-newline-after': 'always',
|
|
25
21
|
'block-opening-brace-newline-before': 'always-single-line',
|
|
22
|
+
'color-function-notation': 'legacy',
|
|
26
23
|
'color-hex-case': 'lower',
|
|
27
24
|
'color-named': 'never',
|
|
28
25
|
'custom-property-empty-line-before': 'never',
|
|
29
26
|
'declaration-block-no-duplicate-properties': [true, {
|
|
30
|
-
'ignore': ['consecutive-duplicates']
|
|
27
|
+
'ignore': ['consecutive-duplicates-with-different-values']
|
|
31
28
|
}],
|
|
32
29
|
'declaration-block-semicolon-newline-after': 'always',
|
|
33
30
|
'declaration-block-semicolon-newline-before': 'never-multi-line',
|
|
@@ -185,15 +182,27 @@ module.exports = {
|
|
|
185
182
|
'unspecified': 'bottom'
|
|
186
183
|
}
|
|
187
184
|
],
|
|
185
|
+
'property-no-unknown': [true, {
|
|
186
|
+
'ignoreProperties': ['container']
|
|
187
|
+
}],
|
|
188
188
|
'rule-empty-line-before': ['always', {
|
|
189
189
|
'except': ['first-nested'],
|
|
190
190
|
'ignore': ['after-comment']
|
|
191
191
|
}],
|
|
192
|
+
'scss/at-rule-no-unknown': [true, {
|
|
193
|
+
'ignoreAtRules': ['container', 'content', 'each', 'else', 'error', 'extend', 'for', 'function', 'if', 'include', 'mixin', 'return', 'warn']
|
|
194
|
+
}],
|
|
192
195
|
'selector-attribute-quotes': 'always',
|
|
196
|
+
'selector-class-pattern': ['^[a-z][a-zA-Z0-9]*$', {
|
|
197
|
+
'resolveNestedSelectors': true
|
|
198
|
+
}],
|
|
193
199
|
'selector-list-comma-newline-before': 'never-multi-line',
|
|
194
200
|
'selector-list-comma-space-after': 'always-single-line',
|
|
195
201
|
'selector-max-compound-selectors': 4,
|
|
196
202
|
'selector-max-specificity': '0,4,2',
|
|
203
|
+
'selector-pseudo-class-no-unknown': [true, {
|
|
204
|
+
'ignorePseudoClasses': ['global', 'local', 'export']
|
|
205
|
+
}],
|
|
197
206
|
'selector-pseudo-element-colon-notation': 'single',
|
|
198
207
|
'string-quotes': 'single',
|
|
199
208
|
'value-keyword-case': ['lower', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onefinity/stylelint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"homepage": "https://gitlab.com/onefinity/stylelint-config",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"stylelint": "^
|
|
21
|
-
"stylelint-config-
|
|
22
|
-
"stylelint-
|
|
23
|
-
"stylelint-order": "^4.1.0"
|
|
20
|
+
"stylelint": "^14.5.3",
|
|
21
|
+
"stylelint-config-standard-scss": "^3.0.0",
|
|
22
|
+
"stylelint-order": "^5.0.0"
|
|
24
23
|
}
|
|
25
24
|
}
|