@azat-io/stylelint-config 1.6.0 → 1.8.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.
Files changed (3) hide show
  1. package/dist/index.js +122 -175
  2. package/package.json +4 -4
  3. package/readme.md +2 -2
package/dist/index.js CHANGED
@@ -1,176 +1,123 @@
1
- const index = {
2
- extends: ["stylelint-config-recess-order"],
3
- plugins: [
4
- "stylelint-gamut",
5
- "stylelint-plugin-defensive-css",
6
- "stylelint-plugin-logical-css",
7
- "stylelint-use-nesting"
8
- ],
9
- rules: {
10
- "alpha-value-notation": "percentage",
11
- "annotation-no-unknown": true,
12
- "at-rule-descriptor-no-unknown": true,
13
- "at-rule-descriptor-value-no-unknown": true,
14
- "at-rule-empty-line-before": [
15
- "always",
16
- {
17
- except: ["blockless-after-same-name-blockless", "first-nested"]
18
- }
19
- ],
20
- "at-rule-no-deprecated": true,
21
- "at-rule-no-unknown": true,
22
- "at-rule-no-vendor-prefix": true,
23
- "at-rule-prelude-no-invalid": true,
24
- "block-no-empty": true,
25
- "block-no-redundant-nested-style-rules": true,
26
- "color-function-notation": "modern",
27
- "color-named": "never",
28
- "color-no-hex": true,
29
- "comment-empty-line-before": [
30
- "always",
31
- {
32
- except: ["first-nested"],
33
- ignore: ["stylelint-commands"]
34
- }
35
- ],
36
- "comment-no-empty": true,
37
- "comment-whitespace-inside": "always",
38
- "custom-media-pattern": [
39
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
40
- {
41
- message: (name) => `Expected custom media query name "${name}" to be kebab-case`
42
- }
43
- ],
44
- "custom-property-empty-line-before": "never",
45
- "custom-property-no-missing-var-function": true,
46
- "custom-property-pattern": [
47
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
48
- {
49
- message: (name) => `Expected custom property name "${name}" to be kebab-case`
50
- }
51
- ],
52
- "declaration-block-no-duplicate-custom-properties": true,
53
- "declaration-block-no-duplicate-properties": [
54
- true,
55
- {
56
- ignore: ["consecutive-duplicates-with-different-syntaxes"]
57
- }
58
- ],
59
- "declaration-block-no-redundant-longhand-properties": true,
60
- "declaration-block-no-shorthand-property-overrides": true,
61
- "declaration-block-single-line-max-declarations": 1,
62
- "declaration-empty-line-before": "never",
63
- "declaration-property-value-keyword-no-deprecated": true,
64
- "declaration-property-value-no-unknown": true,
65
- "font-family-name-quotes": "always-where-recommended",
66
- "font-family-no-duplicate-names": true,
67
- "font-family-no-missing-generic-family-keyword": true,
68
- "font-weight-notation": "named-where-possible",
69
- "function-calc-no-unspaced-operator": true,
70
- "function-disallowed-list": ["rgb", "rgba", "hsl", "hsla"],
71
- "function-linear-gradient-no-nonstandard-direction": true,
72
- "function-name-case": "lower",
73
- "function-no-unknown": true,
74
- "function-url-quotes": "always",
75
- "hue-degree-notation": "angle",
76
- "import-notation": "url",
77
- "keyframe-block-no-duplicate-selectors": true,
78
- "keyframe-declaration-no-important": true,
79
- "keyframe-selector-notation": "percentage",
80
- "keyframes-name-pattern": [
81
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
82
- {
83
- message: (name) => `Expected keyframe name "${name}" to be kebab-case`
84
- }
85
- ],
86
- "length-zero-no-unit": [
87
- true,
88
- {
89
- ignore: ["custom-properties"]
90
- }
91
- ],
92
- "lightness-notation": "percentage",
93
- "media-feature-name-no-unknown": true,
94
- "media-feature-name-no-vendor-prefix": true,
95
- "media-feature-name-value-no-unknown": true,
96
- "media-feature-range-notation": "context",
97
- "media-query-no-invalid": true,
98
- "media-type-no-deprecated": true,
99
- "named-grid-areas-no-invalid": true,
100
- "nesting-selector-no-missing-scoping-root": true,
101
- "no-descending-specificity": true,
102
- "no-duplicate-at-import-rules": true,
103
- "no-duplicate-selectors": true,
104
- "no-invalid-double-slash-comments": true,
105
- "no-invalid-position-at-import-rule": true,
106
- "no-invalid-position-declaration": true,
107
- "no-unknown-animations": true,
108
- "no-unknown-custom-media": true,
109
- "number-max-precision": 4,
110
- "property-no-deprecated": true,
111
- "property-no-unknown": true,
112
- "property-no-vendor-prefix": true,
113
- "rule-empty-line-before": [
114
- "always-multi-line",
115
- {
116
- except: ["first-nested"],
117
- ignore: ["after-comment"]
118
- }
119
- ],
120
- "selector-anb-no-unmatchable": true,
121
- "selector-attribute-quotes": "always",
122
- "selector-class-pattern": [
123
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
124
- {
125
- message: (selector) => `Expected class selector "${selector}" to be kebab-case`
126
- }
127
- ],
128
- "selector-id-pattern": [
129
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
130
- {
131
- message: (selector) => `Expected id selector "${selector}" to be kebab-case`
132
- }
133
- ],
134
- "selector-no-vendor-prefix": true,
135
- "selector-not-notation": "complex",
136
- "selector-pseudo-class-no-unknown": [
137
- true,
138
- {
139
- ignorePseudoClasses: ["global"]
140
- }
141
- ],
142
- "selector-pseudo-element-colon-notation": "double",
143
- "selector-pseudo-element-no-unknown": true,
144
- "selector-type-case": "lower",
145
- "selector-type-no-unknown": [
146
- true,
147
- {
148
- ignore: ["custom-elements"]
149
- }
150
- ],
151
- "shorthand-property-no-redundant-values": true,
152
- "string-no-newline": true,
153
- "syntax-string-no-invalid": true,
154
- "unit-no-unknown": true,
155
- "value-keyword-case": "lower",
156
- "value-no-vendor-prefix": true,
157
- "defensive-css/no-accidental-hover": true,
158
- "defensive-css/no-list-style-none": true,
159
- "defensive-css/no-mixed-vendor-prefixes": true,
160
- "defensive-css/no-unsafe-will-change": true,
161
- "defensive-css/require-background-repeat": true,
162
- "defensive-css/require-dynamic-viewport-height": true,
163
- "defensive-css/require-flex-wrap": true,
164
- "defensive-css/require-focus-visible": true,
165
- "defensive-css/require-named-grid-lines": true,
166
- "defensive-css/require-prefers-reduced-motion": true,
167
- "gamut/color-no-out-gamut-range": true,
168
- "logical-css/require-logical-keywords": true,
169
- "logical-css/require-logical-properties": true,
170
- "logical-css/require-logical-units": true,
171
- "csstools/use-nesting": "always"
172
- }
173
- };
174
- export {
175
- index as default
1
+ var stylelint_config_default = {
2
+ extends: ["stylelint-config-recess-order"],
3
+ plugins: [
4
+ "stylelint-gamut",
5
+ "stylelint-plugin-defensive-css",
6
+ "stylelint-plugin-logical-css",
7
+ "stylelint-use-nesting"
8
+ ],
9
+ rules: {
10
+ "alpha-value-notation": "percentage",
11
+ "annotation-no-unknown": true,
12
+ "at-rule-descriptor-no-unknown": true,
13
+ "at-rule-descriptor-value-no-unknown": true,
14
+ "at-rule-empty-line-before": ["always", { except: ["blockless-after-same-name-blockless", "first-nested"] }],
15
+ "at-rule-no-deprecated": true,
16
+ "at-rule-no-unknown": true,
17
+ "at-rule-no-vendor-prefix": true,
18
+ "at-rule-prelude-no-invalid": true,
19
+ "block-no-empty": true,
20
+ "block-no-redundant-nested-style-rules": true,
21
+ "color-function-notation": "modern",
22
+ "color-named": "never",
23
+ "color-no-hex": true,
24
+ "comment-empty-line-before": ["always", {
25
+ except: ["first-nested"],
26
+ ignore: ["stylelint-commands"]
27
+ }],
28
+ "comment-no-empty": true,
29
+ "comment-whitespace-inside": "always",
30
+ "custom-media-pattern": ["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { message: (name) => `Expected custom media query name "${name}" to be kebab-case` }],
31
+ "custom-property-empty-line-before": "never",
32
+ "custom-property-no-missing-var-function": true,
33
+ "custom-property-pattern": ["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { message: (name) => `Expected custom property name "${name}" to be kebab-case` }],
34
+ "declaration-block-no-duplicate-custom-properties": true,
35
+ "declaration-block-no-duplicate-properties": [true, { ignore: ["consecutive-duplicates-with-different-syntaxes"] }],
36
+ "declaration-block-no-redundant-longhand-properties": true,
37
+ "declaration-block-no-shorthand-property-overrides": true,
38
+ "declaration-block-single-line-max-declarations": 1,
39
+ "declaration-empty-line-before": "never",
40
+ "declaration-property-value-keyword-no-deprecated": true,
41
+ "declaration-property-value-no-unknown": true,
42
+ "font-family-name-quotes": "always-where-recommended",
43
+ "font-family-no-duplicate-names": true,
44
+ "font-family-no-missing-generic-family-keyword": true,
45
+ "font-weight-notation": "named-where-possible",
46
+ "function-calc-no-unspaced-operator": true,
47
+ "function-disallowed-list": [
48
+ "rgb",
49
+ "rgba",
50
+ "hsl",
51
+ "hsla"
52
+ ],
53
+ "function-linear-gradient-no-nonstandard-direction": true,
54
+ "function-name-case": "lower",
55
+ "function-no-unknown": true,
56
+ "function-url-quotes": "always",
57
+ "hue-degree-notation": "angle",
58
+ "import-notation": "url",
59
+ "keyframe-block-no-duplicate-selectors": true,
60
+ "keyframe-declaration-no-important": true,
61
+ "keyframe-selector-notation": "percentage",
62
+ "keyframes-name-pattern": ["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { message: (name) => `Expected keyframe name "${name}" to be kebab-case` }],
63
+ "length-zero-no-unit": [true, { ignore: ["custom-properties"] }],
64
+ "lightness-notation": "percentage",
65
+ "media-feature-name-no-unknown": true,
66
+ "media-feature-name-no-vendor-prefix": true,
67
+ "media-feature-name-value-no-unknown": true,
68
+ "media-feature-range-notation": "context",
69
+ "media-query-no-invalid": true,
70
+ "media-type-no-deprecated": true,
71
+ "named-grid-areas-no-invalid": true,
72
+ "nesting-selector-no-missing-scoping-root": true,
73
+ "no-descending-specificity": true,
74
+ "no-duplicate-at-import-rules": true,
75
+ "no-duplicate-selectors": true,
76
+ "no-invalid-double-slash-comments": true,
77
+ "no-invalid-position-at-import-rule": true,
78
+ "no-invalid-position-declaration": true,
79
+ "no-unknown-animations": true,
80
+ "no-unknown-custom-media": true,
81
+ "number-max-precision": 4,
82
+ "property-no-deprecated": true,
83
+ "property-no-unknown": true,
84
+ "property-no-vendor-prefix": true,
85
+ "rule-empty-line-before": ["always-multi-line", {
86
+ except: ["first-nested"],
87
+ ignore: ["after-comment"]
88
+ }],
89
+ "selector-anb-no-unmatchable": true,
90
+ "selector-attribute-quotes": "always",
91
+ "selector-class-pattern": ["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { message: (selector) => `Expected class selector "${selector}" to be kebab-case` }],
92
+ "selector-id-pattern": ["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { message: (selector) => `Expected id selector "${selector}" to be kebab-case` }],
93
+ "selector-no-vendor-prefix": true,
94
+ "selector-not-notation": "complex",
95
+ "selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global"] }],
96
+ "selector-pseudo-element-colon-notation": "double",
97
+ "selector-pseudo-element-no-unknown": true,
98
+ "selector-type-case": "lower",
99
+ "selector-type-no-unknown": [true, { ignore: ["custom-elements"] }],
100
+ "shorthand-property-no-redundant-values": true,
101
+ "string-no-newline": true,
102
+ "syntax-string-no-invalid": true,
103
+ "unit-no-unknown": true,
104
+ "value-keyword-case": "lower",
105
+ "value-no-vendor-prefix": true,
106
+ "defensive-css/no-accidental-hover": true,
107
+ "defensive-css/no-list-style-none": true,
108
+ "defensive-css/no-mixed-vendor-prefixes": true,
109
+ "defensive-css/no-unsafe-will-change": true,
110
+ "defensive-css/require-background-repeat": true,
111
+ "defensive-css/require-dynamic-viewport-height": true,
112
+ "defensive-css/require-flex-wrap": true,
113
+ "defensive-css/require-focus-visible": true,
114
+ "defensive-css/require-named-grid-lines": true,
115
+ "defensive-css/require-prefers-reduced-motion": true,
116
+ "gamut/color-no-out-gamut-range": true,
117
+ "logical-css/require-logical-keywords": true,
118
+ "logical-css/require-logical-properties": true,
119
+ "logical-css/require-logical-units": true,
120
+ "csstools/use-nesting": "always"
121
+ }
176
122
  };
123
+ export { stylelint_config_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azat-io/stylelint-config",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "Stylelint shareable config",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -19,10 +19,10 @@
19
19
  "./dist"
20
20
  ],
21
21
  "dependencies": {
22
- "stylelint-config-recess-order": "^7.6.1",
22
+ "stylelint-config-recess-order": "^7.7.0",
23
23
  "stylelint-gamut": "^2.0.0",
24
- "stylelint-order": "^7.0.1",
25
- "stylelint-plugin-defensive-css": "^2.5.0",
24
+ "stylelint-order": "^8.1.1",
25
+ "stylelint-plugin-defensive-css": "^2.7.0",
26
26
  "stylelint-plugin-logical-css": "^2.0.2",
27
27
  "stylelint-use-nesting": "^6.0.2"
28
28
  },
package/readme.md CHANGED
@@ -38,10 +38,10 @@ pnpm add --save-dev stylelint @azat-io/stylelint-config
38
38
 
39
39
  3. Add script for package.json:
40
40
 
41
- ```js
41
+ ```json
42
42
  {
43
43
  "scripts": {
44
- "test:css": "stylelint \"**/*.css\"",
44
+ "test:css": "stylelint \"**/*.css\""
45
45
  }
46
46
  }
47
47
  ```