@alexlit/config-stylelint 51.0.2 → 51.1.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/index.js CHANGED
@@ -5,27 +5,24 @@ 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
- 'no-browser-hacks': false,
21
20
  'no-indistinguishable-colors': false,
22
21
  'no-unresolved-module': false,
23
22
  'no-unsupported-browser-features': false,
24
23
  };
25
24
 
26
- const CODESTYLE_PLUGINS = {
27
- prettier: true,
28
- };
25
+ const CODESTYLE_PLUGINS = { prettier: true };
29
26
 
30
27
  const PLUGINS = {
31
28
  ...ADDITIONAL_PLUGINS,
@@ -99,9 +96,7 @@ const createConfig = (plugins = {}, options = {}) => ({
99
96
  'color-no-invalid-hex': true,
100
97
  'custom-property-empty-line-before': [
101
98
  'always',
102
- {
103
- except: ['after-comment', 'after-custom-property', 'first-nested'],
104
- },
99
+ { except: ['after-comment', 'after-custom-property', 'first-nested'] },
105
100
  ],
106
101
  'custom-property-pattern': '^_?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
107
102
  'declaration-block-no-redundant-longhand-properties': null,
@@ -121,9 +116,7 @@ const createConfig = (plugins = {}, options = {}) => ({
121
116
  'keyframes-name-pattern': '^[a-z]+(-[a-z]+)*$',
122
117
  'max-nesting-depth': [
123
118
  6,
124
- {
125
- ignoreAtRules: ['each', 'media', 'supports', 'include'],
126
- },
119
+ { ignoreAtRules: ['each', 'media', 'supports', 'include'] },
127
120
  ],
128
121
  'media-feature-name-no-unknown': [
129
122
  true,
@@ -140,7 +133,7 @@ const createConfig = (plugins = {}, options = {}) => ({
140
133
  ignoreProperties: [
141
134
  'align-tracks',
142
135
  'animation-timeline',
143
- 'interpolate-size',
136
+ 'interpolate-size',
144
137
  'text-stroke',
145
138
  ],
146
139
  },
@@ -148,10 +141,7 @@ const createConfig = (plugins = {}, options = {}) => ({
148
141
  'property-no-vendor-prefix': true,
149
142
  'rule-empty-line-before': [
150
143
  'always',
151
- {
152
- except: ['first-nested'],
153
- ignore: [],
154
- },
144
+ { except: ['first-nested'], ignore: [] },
155
145
  ],
156
146
  'selector-class-pattern': [
157
147
  '^[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.2",
3
+ "version": "51.1.0",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -42,7 +42,6 @@
42
42
  "stylelint-gamut": "^1.3.4",
43
43
  "stylelint-high-performance-animation": "^1.11.0",
44
44
  "stylelint-media-use-custom-media": "^4.0.0",
45
- "stylelint-no-browser-hacks": "^1.3.0",
46
45
  "stylelint-no-indistinguishable-colors": "^2.3.1",
47
46
  "stylelint-no-nested-media": "^0.1.0",
48
47
  "stylelint-no-unresolved-module": "^2.3.0",
@@ -1,7 +0,0 @@
1
- /** @see [stylelint-no-browser-hacks](https://github.com/Slamdunk/stylelint-no-browser-hacks) */
2
- export default {
3
- plugins: ['stylelint-no-browser-hacks/lib'],
4
- rules: {
5
- 'plugin/no-browser-hacks': true,
6
- },
7
- };