@alexlit/config-stylelint 7.1.3 → 7.3.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/.stylelintrc.js +3 -1
- package/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/plugins/at-rule-no-children.js +1 -1
- package/plugins/csstree-validator.js +1 -1
- package/plugins/order.js +15 -15
- package/plugins/scss.js +28 -1
package/.stylelintrc.js
CHANGED
|
@@ -42,6 +42,7 @@ module.exports = {
|
|
|
42
42
|
'always',
|
|
43
43
|
{
|
|
44
44
|
except: ['blockless-after-same-name-blockless', 'first-nested'],
|
|
45
|
+
ignoreAtRules: ['else'],
|
|
45
46
|
},
|
|
46
47
|
],
|
|
47
48
|
|
|
@@ -57,12 +58,13 @@ module.exports = {
|
|
|
57
58
|
'custom-property-empty-line-before': [
|
|
58
59
|
'always',
|
|
59
60
|
{
|
|
60
|
-
except: ['after-custom-property', 'first-nested'],
|
|
61
|
+
except: ['after-comment', 'after-custom-property', 'first-nested'],
|
|
61
62
|
},
|
|
62
63
|
],
|
|
63
64
|
|
|
64
65
|
'custom-property-pattern': '^[a-z]+(-{1,2}[a-z]+)*$',
|
|
65
66
|
'declaration-block-no-redundant-longhand-properties': null,
|
|
67
|
+
'font-family-name-quotes': 'always-unless-keyword',
|
|
66
68
|
'function-url-quotes': 'always',
|
|
67
69
|
'function-url-scheme-disallowed-list': ['/^data/', 'ftp', '/^http/'],
|
|
68
70
|
'hue-degree-notation': 'angle',
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [7.3.0](https://github.com/alex-lit/config-stylelint/compare/v7.2.2...v7.3.0) (2021-09-15)
|
|
2
|
+
|
|
3
|
+
## [7.2.2](https://github.com/alex-lit/config-stylelint/compare/v7.2.1...v7.2.2) (2021-09-14)
|
|
4
|
+
|
|
5
|
+
## [7.2.1](https://github.com/alex-lit/config-stylelint/compare/v7.2.0...v7.2.1) (2021-09-10)
|
|
6
|
+
|
|
7
|
+
# [7.2.0](https://github.com/alex-lit/config-stylelint/compare/v7.1.3...v7.2.0) (2021-09-10)
|
|
8
|
+
|
|
1
9
|
## [7.1.3](https://github.com/alex-lit/config-stylelint/compare/v7.1.2...v7.1.3) (2021-09-03)
|
|
2
10
|
|
|
3
11
|
## [7.1.2](https://github.com/alex-lit/config-stylelint/compare/v7.1.1...v7.1.2) (2021-09-01)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"stylelint-no-indistinguishable-colors": "^1.3.0",
|
|
51
51
|
"stylelint-no-nested-media": "^0.1.0",
|
|
52
52
|
"stylelint-no-unresolved-module": "^1.1.1",
|
|
53
|
-
"stylelint-no-unsupported-browser-features": "^5.0.
|
|
53
|
+
"stylelint-no-unsupported-browser-features": "^5.0.2",
|
|
54
54
|
"stylelint-order": "^4.1.0",
|
|
55
55
|
"stylelint-prettier": "^1.2.0",
|
|
56
|
-
"stylelint-scss": "^3.
|
|
56
|
+
"stylelint-scss": "^3.21.0",
|
|
57
57
|
"stylelint-selector-no-empty": "^1.0.8",
|
|
58
58
|
"stylelint-use-logical-spec": "^3.2.2",
|
|
59
59
|
"stylelint-use-nesting": "^3.0.0"
|
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
|
|
8
8
|
rules: {
|
|
9
9
|
'csstree/validator': {
|
|
10
|
-
ignoreValue: /^(clamp|max|min|scale-color|v-bind)\(/,
|
|
10
|
+
ignoreValue: /^(clamp|max|min|quote|scale-color|unquote|v-bind)\(/,
|
|
11
11
|
|
|
12
12
|
properties: {
|
|
13
13
|
'content-visibility': 'visible | auto | hidden', // webkit
|
package/plugins/order.js
CHANGED
|
@@ -8,64 +8,64 @@ module.exports = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
'order/order': [
|
|
10
10
|
/**
|
|
11
|
-
* SASS
|
|
11
|
+
* SASS variables
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```scss
|
|
15
15
|
* .my-component {
|
|
16
|
-
*
|
|
16
|
+
* $color: red;
|
|
17
17
|
* }
|
|
18
18
|
* ```;
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
'dollar-variables',
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* LESS variables
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```scss
|
|
27
27
|
* .my-component {
|
|
28
|
-
* @
|
|
28
|
+
* @color: red;
|
|
29
29
|
* }
|
|
30
30
|
* ```;
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
'at-variables',
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* SASS extend
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```scss
|
|
39
39
|
* .my-component {
|
|
40
|
-
* @
|
|
40
|
+
* @extend .custom-class;
|
|
41
41
|
* }
|
|
42
42
|
* ```;
|
|
43
43
|
*/
|
|
44
|
-
{ name: '
|
|
44
|
+
{ name: 'extend', type: 'at-rule' },
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* SASS
|
|
47
|
+
* SASS include
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```scss
|
|
51
51
|
* .my-component {
|
|
52
|
-
*
|
|
52
|
+
* @include mixins;
|
|
53
53
|
* }
|
|
54
54
|
* ```;
|
|
55
55
|
*/
|
|
56
|
-
'
|
|
56
|
+
{ name: 'include', type: 'at-rule' },
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Tailwind apply
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```scss
|
|
63
63
|
* .my-component {
|
|
64
|
-
* @
|
|
64
|
+
* @apply z-50 z-10 container text-left md:text-center justify-center;
|
|
65
65
|
* }
|
|
66
66
|
* ```;
|
|
67
67
|
*/
|
|
68
|
-
'at-
|
|
68
|
+
{ name: 'apply', type: 'at-rule' },
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* CSS
|
package/plugins/scss.js
CHANGED
|
@@ -8,21 +8,48 @@ module.exports = {
|
|
|
8
8
|
plugins: ['stylelint-scss'],
|
|
9
9
|
|
|
10
10
|
rules: {
|
|
11
|
+
'scss/at-else-if-parentheses-space-before': 'always',
|
|
11
12
|
'scss/at-extend-no-missing-placeholder': true,
|
|
12
13
|
'scss/at-function-pattern': KEBAB_CASE_PATTERN,
|
|
14
|
+
'scss/at-if-no-null': true,
|
|
13
15
|
'scss/at-import-no-partial-leading-underscore': true,
|
|
14
|
-
'scss/at-import-partial-extension
|
|
16
|
+
'scss/at-import-partial-extension': 'always',
|
|
17
|
+
'scss/at-mixin-argumentless-call-parentheses': 'always',
|
|
18
|
+
'scss/at-mixin-named-arguments': 'always',
|
|
19
|
+
'scss/at-mixin-parentheses-space-before': 'never',
|
|
15
20
|
'scss/at-mixin-pattern': KEBAB_CASE_PATTERN,
|
|
21
|
+
'scss/at-rule-conditional-no-parentheses': true,
|
|
16
22
|
'scss/at-rule-no-unknown': [true, { ignoreAtRules: ['container'] }],
|
|
17
23
|
'scss/comment-no-empty': true,
|
|
18
24
|
'scss/comment-no-loud': null,
|
|
19
25
|
'scss/declaration-nested-properties': 'never',
|
|
20
26
|
'scss/declaration-nested-properties-no-divided-groups': true,
|
|
27
|
+
'scss/dimension-no-non-numeric-values': true,
|
|
28
|
+
'scss/dollar-variable-default': [true, { ignore: 'local' }],
|
|
29
|
+
|
|
30
|
+
'scss/dollar-variable-empty-line-before': [
|
|
31
|
+
'always',
|
|
32
|
+
{ except: ['first-nested', 'after-comment', 'after-dollar-variable'] },
|
|
33
|
+
],
|
|
34
|
+
|
|
35
|
+
'scss/dollar-variable-first-in-block': [
|
|
36
|
+
true,
|
|
37
|
+
{
|
|
38
|
+
except: [],
|
|
39
|
+
ignore: ['comments', 'imports'],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
|
|
43
|
+
'scss/dollar-variable-no-missing-interpolation': true,
|
|
21
44
|
'scss/dollar-variable-pattern': KEBAB_CASE_PATTERN,
|
|
22
45
|
'scss/double-slash-comment-whitespace-inside': 'always',
|
|
23
46
|
'scss/function-color-relative': true,
|
|
47
|
+
'scss/function-quote-no-quoted-strings-inside': true,
|
|
48
|
+
'scss/function-unquote-no-unquoted-strings-inside': true,
|
|
49
|
+
'scss/map-keys-quotes': 'always',
|
|
24
50
|
'scss/no-duplicate-dollar-variables': true,
|
|
25
51
|
'scss/no-duplicate-mixins': true,
|
|
52
|
+
'scss/operator-no-unspaced': true,
|
|
26
53
|
'scss/percent-placeholder-pattern': KEBAB_CASE_PATTERN,
|
|
27
54
|
'scss/selector-nest-combinators': 'always',
|
|
28
55
|
|