@alexlit/config-stylelint 15.5.1 → 15.6.1
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/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/plugins/csstree-validator.js +9 -1
- package/plugins/optional/use-logical-spec.js +1 -10
- package/plugins/order.js +8 -0
- package/plugins/scss.js +15 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [15.6.1](https://github.com/alex-lit/config-stylelint/compare/v15.6.0...v15.6.1) (2022-05-06)
|
|
2
|
+
|
|
3
|
+
# [15.6.0](https://github.com/alex-lit/config-stylelint/compare/v15.5.2...v15.6.0) (2022-05-04)
|
|
4
|
+
|
|
5
|
+
## [15.5.2](https://github.com/alex-lit/config-stylelint/compare/v15.5.1...v15.5.2) (2022-04-20)
|
|
6
|
+
|
|
1
7
|
## [15.5.1](https://github.com/alex-lit/config-stylelint/compare/v15.5.0...v15.5.1) (2022-04-07)
|
|
2
8
|
|
|
3
9
|
# [15.5.0](https://github.com/alex-lit/config-stylelint/compare/v15.4.1...v15.5.0) (2022-04-07)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.6.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"version": "./node_modules/@alexlit/lint-kit/scripts/version.sh"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"postcss": "^8.4.
|
|
42
|
-
"stylelint": "^14.
|
|
41
|
+
"postcss": "^8.4.13",
|
|
42
|
+
"stylelint": "^14.8.2",
|
|
43
43
|
"stylelint-a11y": "^1.2.3",
|
|
44
44
|
"stylelint-at-rule-no-children": "^0.3.1",
|
|
45
45
|
"stylelint-color-format": "^1.1.0",
|
|
@@ -8,7 +8,15 @@ module.exports = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
'csstree/validator': {
|
|
10
10
|
// eslint-disable-next-line spellcheck/spell-checker
|
|
11
|
-
ignoreAtrules: [
|
|
11
|
+
ignoreAtrules: [
|
|
12
|
+
'apply',
|
|
13
|
+
'else',
|
|
14
|
+
'media',
|
|
15
|
+
'responsive',
|
|
16
|
+
'screen',
|
|
17
|
+
'tailwind',
|
|
18
|
+
'variants',
|
|
19
|
+
],
|
|
12
20
|
|
|
13
21
|
ignoreProperties: ['v-deep', 'v-global', 'v-slotted'],
|
|
14
22
|
|
|
@@ -5,15 +5,6 @@ module.exports = {
|
|
|
5
5
|
plugins: ['stylelint-use-logical-spec'],
|
|
6
6
|
|
|
7
7
|
rules: {
|
|
8
|
-
'liberty/use-logical-spec': [
|
|
9
|
-
'always',
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Fixes for mobile safari < 14.7
|
|
13
|
-
*
|
|
14
|
-
* @see [caniuse](https://caniuse.com/mdn-css_properties_inset-block-start)
|
|
15
|
-
*/
|
|
16
|
-
{ except: ['top', 'right', 'bottom', 'left'] },
|
|
17
|
-
],
|
|
8
|
+
'liberty/use-logical-spec': ['always'],
|
|
18
9
|
},
|
|
19
10
|
};
|
package/plugins/order.js
CHANGED
|
@@ -34,6 +34,13 @@ module.exports = {
|
|
|
34
34
|
// Bootstrap media mixins
|
|
35
35
|
{ name: 'include', parameter: 'media', type: 'at-rule' },
|
|
36
36
|
|
|
37
|
+
// Tailwind breakpoints
|
|
38
|
+
{ name: 'screen', parameter: '2xl', type: 'at-rule' },
|
|
39
|
+
{ name: 'screen', parameter: 'xl', type: 'at-rule' },
|
|
40
|
+
{ name: 'screen', parameter: 'lg', type: 'at-rule' },
|
|
41
|
+
{ name: 'screen', parameter: 'md', type: 'at-rule' },
|
|
42
|
+
{ name: 'screen', parameter: 'sm', type: 'at-rule' },
|
|
43
|
+
|
|
37
44
|
// Chrome breakpoints
|
|
38
45
|
{ name: 'media', parameter: 'laptop-4k', type: 'at-rule' },
|
|
39
46
|
{ name: 'media', parameter: 'laptop-xl', type: 'at-rule' },
|
|
@@ -55,6 +62,7 @@ module.exports = {
|
|
|
55
62
|
{ name: 'media', parameter: 'xxs', type: 'at-rule' },
|
|
56
63
|
|
|
57
64
|
{ name: 'media', type: 'at-rule' },
|
|
65
|
+
|
|
58
66
|
{ name: 'container', type: 'at-rule' },
|
|
59
67
|
{ name: 'supports', type: 'at-rule' },
|
|
60
68
|
{ name: 'document', type: 'at-rule' },
|
package/plugins/scss.js
CHANGED
|
@@ -22,7 +22,21 @@ module.exports = {
|
|
|
22
22
|
'scss/at-mixin-parentheses-space-before': 'never',
|
|
23
23
|
'scss/at-mixin-pattern': KEBAB_CASE_PATTERN,
|
|
24
24
|
'scss/at-rule-conditional-no-parentheses': true,
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
'scss/at-rule-no-unknown': [
|
|
27
|
+
true,
|
|
28
|
+
{
|
|
29
|
+
ignoreAtRules: [
|
|
30
|
+
'apply',
|
|
31
|
+
'container',
|
|
32
|
+
'responsive',
|
|
33
|
+
'screen',
|
|
34
|
+
'tailwind',
|
|
35
|
+
'variants',
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
|
|
26
40
|
'scss/at-use-no-unnamespaced': true,
|
|
27
41
|
'scss/comment-no-empty': true,
|
|
28
42
|
'scss/comment-no-loud': null,
|