@alexlit/config-stylelint 51.0.1 → 51.0.3

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 (2) hide show
  1. package/index.js +10 -18
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,16 +5,16 @@ const ADDITIONAL_PLUGINS = {
5
5
  'declaration-block-no-ignored-properties': true,
6
6
  'high-performance-animation': true,
7
7
  'no-nested-media': true,
8
- order: true,
9
- scss: true,
8
+ 'order': true,
9
+ 'scss': true,
10
10
  'selector-no-empty': true,
11
11
  'use-nesting': true,
12
- vue: true,
12
+ 'vue': true,
13
13
  };
14
14
 
15
15
  const OPTIONAL_PLUGINS = {
16
- a11y: false,
17
- gamut: false,
16
+ 'a11y': false,
17
+ 'gamut': false,
18
18
  'logical-css': false,
19
19
  'media-use-custom-media': false,
20
20
  'no-browser-hacks': false,
@@ -23,9 +23,7 @@ const OPTIONAL_PLUGINS = {
23
23
  'no-unsupported-browser-features': false,
24
24
  };
25
25
 
26
- const CODESTYLE_PLUGINS = {
27
- prettier: true,
28
- };
26
+ const CODESTYLE_PLUGINS = { prettier: true };
29
27
 
30
28
  const PLUGINS = {
31
29
  ...ADDITIONAL_PLUGINS,
@@ -99,9 +97,7 @@ const createConfig = (plugins = {}, options = {}) => ({
99
97
  'color-no-invalid-hex': true,
100
98
  'custom-property-empty-line-before': [
101
99
  'always',
102
- {
103
- except: ['after-comment', 'after-custom-property', 'first-nested'],
104
- },
100
+ { except: ['after-comment', 'after-custom-property', 'first-nested'] },
105
101
  ],
106
102
  'custom-property-pattern': '^_?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
107
103
  'declaration-block-no-redundant-longhand-properties': null,
@@ -121,9 +117,7 @@ const createConfig = (plugins = {}, options = {}) => ({
121
117
  'keyframes-name-pattern': '^[a-z]+(-[a-z]+)*$',
122
118
  'max-nesting-depth': [
123
119
  6,
124
- {
125
- ignoreAtRules: ['each', 'media', 'supports', 'include'],
126
- },
120
+ { ignoreAtRules: ['each', 'media', 'supports', 'include'] },
127
121
  ],
128
122
  'media-feature-name-no-unknown': [
129
123
  true,
@@ -141,16 +135,14 @@ const createConfig = (plugins = {}, options = {}) => ({
141
135
  'align-tracks',
142
136
  'animation-timeline',
143
137
  'interpolate-size',
138
+ 'text-stroke',
144
139
  ],
145
140
  },
146
141
  ],
147
142
  'property-no-vendor-prefix': true,
148
143
  'rule-empty-line-before': [
149
144
  'always',
150
- {
151
- except: ['first-nested'],
152
- ignore: [],
153
- },
145
+ { except: ['first-nested'], ignore: [] },
154
146
  ],
155
147
  'selector-class-pattern': [
156
148
  '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "51.0.1",
3
+ "version": "51.0.3",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [