@massimo-cassandro/stylelint-config 2.2.0 → 2.2.2
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 +20 -30
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -24,62 +24,52 @@ export default {
|
|
|
24
24
|
rules: {
|
|
25
25
|
|
|
26
26
|
'alpha-value-notation': null,
|
|
27
|
+
'at-rule-empty-line-before': null,
|
|
27
28
|
'at-rule-no-vendor-prefix': true,
|
|
28
|
-
'at-rule-no-unknown': [
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
ignoreAtRules: [
|
|
32
|
-
...tailwindAtRules,
|
|
33
|
-
...postCSSRules
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
],
|
|
29
|
+
'at-rule-no-unknown': [ true, { ignoreAtRules: [ ...tailwindAtRules, ...postCSSRules ] } ],
|
|
30
|
+
'color-function-notation': null,
|
|
37
31
|
'color-named': 'never',
|
|
38
32
|
'comment-empty-line-before': null,
|
|
33
|
+
'custom-property-empty-line-before': null,
|
|
34
|
+
'custom-property-pattern': null,
|
|
35
|
+
'declaration-block-no-redundant-longhand-properties': null,
|
|
36
|
+
'declaration-empty-line-before': null,
|
|
39
37
|
'declaration-no-important': true,
|
|
40
38
|
'font-family-name-quotes': 'always-where-recommended',
|
|
39
|
+
'font-weight-notation': ['numeric', { ignore: ['relative'] }],
|
|
41
40
|
'function-no-unknown': [true, { ignoreFunctions: ['theme'] }],
|
|
41
|
+
'function-url-no-scheme-relative': true,
|
|
42
42
|
'function-url-quotes': 'always',
|
|
43
|
+
'hue-degree-notation': null,
|
|
43
44
|
'import-notation': null,
|
|
44
45
|
'max-nesting-depth': [3, {
|
|
45
46
|
ignore: ['pseudo-classes', 'blockless-at-rules'],
|
|
46
47
|
ignoreAtRules: [/media/, /include/],
|
|
47
48
|
ignorePseudoClasses: ['before', 'after']
|
|
48
49
|
}],
|
|
49
|
-
'selector-attribute-quotes': 'always',
|
|
50
|
-
'selector-class-pattern': ['^[a-z][a-z0-9\\-]*[a-z0-9]$', { resolveNestedSelectors: true }],
|
|
51
|
-
'selector-max-type': [3, { ignore: ['child', 'compounded', 'descendant', 'next-sibling'] }],
|
|
52
|
-
'selector-max-universal': 1,
|
|
53
|
-
'selector-no-qualifying-type': true,
|
|
54
|
-
'selector-no-vendor-prefix': true,
|
|
55
|
-
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global'] }],
|
|
56
|
-
'shorthand-property-no-redundant-values': true,
|
|
57
|
-
'value-keyword-case': ['lower', { ignoreKeywords: ['currentColor'] }],
|
|
58
|
-
'value-no-vendor-prefix': true,
|
|
59
|
-
|
|
60
|
-
// --- da stylelint-config-twbs-bootstrap ---
|
|
61
|
-
'at-rule-empty-line-before': null,
|
|
62
|
-
'color-function-notation': null,
|
|
63
|
-
'custom-property-empty-line-before': null,
|
|
64
|
-
'custom-property-pattern': null,
|
|
65
|
-
'declaration-block-no-redundant-longhand-properties': null,
|
|
66
|
-
'declaration-empty-line-before': null,
|
|
67
|
-
'font-weight-notation': ['numeric', { ignore: ['relative'] }],
|
|
68
|
-
'function-url-no-scheme-relative': true,
|
|
69
|
-
'hue-degree-notation': null,
|
|
70
50
|
'media-feature-range-notation': null,
|
|
71
51
|
'media-query-no-invalid': null,
|
|
72
52
|
'no-descending-specificity': null,
|
|
73
53
|
'number-max-precision': null,
|
|
74
54
|
'property-no-vendor-prefix': true,
|
|
75
55
|
'rule-empty-line-before': null,
|
|
56
|
+
'selector-attribute-quotes': 'always',
|
|
57
|
+
'selector-class-pattern': ['^[a-z][a-z0-9\\-]*[a-z0-9]$', { resolveNestedSelectors: true }],
|
|
76
58
|
'selector-max-attribute': 2,
|
|
77
59
|
'selector-max-class': 4,
|
|
78
60
|
'selector-max-combinators': 4,
|
|
79
61
|
'selector-max-compound-selectors': 4,
|
|
80
62
|
'selector-max-id': 0,
|
|
81
63
|
'selector-max-specificity': null,
|
|
64
|
+
'selector-max-type': [3, { ignore: ['child', 'compounded', 'descendant', 'next-sibling'] }],
|
|
65
|
+
'selector-max-universal': 1,
|
|
66
|
+
'selector-no-qualifying-type': null, // https://stylelint.io/user-guide/rules/selector-no-qualifying-type/
|
|
67
|
+
'selector-no-vendor-prefix': true,
|
|
82
68
|
'selector-not-notation': null,
|
|
69
|
+
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global'] }],
|
|
70
|
+
'shorthand-property-no-redundant-values': true,
|
|
71
|
+
'value-keyword-case': ['lower', { ignoreKeywords: ['currentColor'] }],
|
|
72
|
+
'value-no-vendor-prefix': true,
|
|
83
73
|
|
|
84
74
|
// --- Stylistic ---
|
|
85
75
|
'@stylistic/at-rule-name-space-after': 'always',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massimo-cassandro/stylelint-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "my stylelint config",
|
|
5
5
|
"author": "Massimo Cassandro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@eslint/js": "^10.0.1",
|
|
34
34
|
"@massimo-cassandro/dev-updater": "^3.0.2",
|
|
35
|
-
"@massimo-cassandro/eslint-config": "^
|
|
36
|
-
"eslint": "^10.0.
|
|
37
|
-
"globals": "^17.
|
|
35
|
+
"@massimo-cassandro/eslint-config": "^3.0.2",
|
|
36
|
+
"eslint": "^10.0.2",
|
|
37
|
+
"globals": "^17.4.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@stylistic/stylelint-config": "^4.0.0",
|
|
41
41
|
"@stylistic/stylelint-plugin": "^5.0.1",
|
|
42
|
-
"stylelint": "^17.
|
|
42
|
+
"stylelint": "^17.4.0",
|
|
43
43
|
"stylelint-config-css-modules": "^4.6.0",
|
|
44
44
|
"stylelint-config-recess-order": "^7.6.1",
|
|
45
45
|
"stylelint-config-standard": "^40.0.0",
|