@xiaohe01/stylelint-config 3.5.0 → 3.6.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/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let local_pkg = require("local-pkg");
3
-
4
3
  //#region ../shared/src/constants.ts
5
4
  const SCSS_PACKAGES = [
6
5
  "sass",
@@ -14,7 +13,6 @@ const VUE_PACKAGES = [
14
13
  "vitepress",
15
14
  "@slidev/cli"
16
15
  ];
17
-
18
16
  //#endregion
19
17
  //#region ../shared/src/helpers.ts
20
18
  function castArray(value) {
@@ -23,7 +21,6 @@ function castArray(value) {
23
21
  function isPkgExists(pkg) {
24
22
  return castArray(pkg).some((it) => (0, local_pkg.isPackageExists)(it));
25
23
  }
26
-
27
24
  //#endregion
28
25
  //#region src/globs.ts
29
26
  const GLOB_CSS = ["*.css", "**/*.css"];
@@ -36,7 +33,6 @@ const GLOB_ALL = [
36
33
  ...GLOB_HTML,
37
34
  ...GLOB_VUE
38
35
  ];
39
-
40
36
  //#endregion
41
37
  //#region src/configs/core.ts
42
38
  function core(options = {}) {
@@ -106,7 +102,6 @@ function core(options = {}) {
106
102
  }
107
103
  }];
108
104
  }
109
-
110
105
  //#endregion
111
106
  //#region src/configs/css.ts
112
107
  function css(options = {}) {
@@ -116,7 +111,6 @@ function css(options = {}) {
116
111
  rules: { ...options.overrides }
117
112
  }];
118
113
  }
119
-
120
114
  //#endregion
121
115
  //#region src/configs/html.ts
122
116
  function html(options = {}) {
@@ -126,7 +120,6 @@ function html(options = {}) {
126
120
  rules: { ...options.overrides }
127
121
  }];
128
122
  }
129
-
130
123
  //#endregion
131
124
  //#region src/configs/scss.ts
132
125
  function scss(options = {}) {
@@ -161,7 +154,6 @@ function scss(options = {}) {
161
154
  }
162
155
  }];
163
156
  }
164
-
165
157
  //#endregion
166
158
  //#region src/configs/setup.ts
167
159
  function setup(options = {}) {
@@ -186,7 +178,6 @@ function setup(options = {}) {
186
178
  });
187
179
  return overrides;
188
180
  }
189
-
190
181
  //#endregion
191
182
  //#region src/configs/vue.ts
192
183
  function vue(options = {}) {
@@ -196,7 +187,6 @@ function vue(options = {}) {
196
187
  rules: { ...options.overrides }
197
188
  }];
198
189
  }
199
-
200
190
  //#endregion
201
191
  //#region src/factory.ts
202
192
  function defineConfig(options = {}, ...userOverrides) {
@@ -233,11 +223,10 @@ function getOverrides(options) {
233
223
  if (options == null || typeof options === "boolean") return {};
234
224
  return options.overrides || {};
235
225
  }
236
-
237
226
  //#endregion
238
227
  exports.GLOB_ALL = GLOB_ALL;
239
228
  exports.GLOB_CSS = GLOB_CSS;
240
229
  exports.GLOB_HTML = GLOB_HTML;
241
230
  exports.GLOB_SCSS = GLOB_SCSS;
242
231
  exports.GLOB_VUE = GLOB_VUE;
243
- exports.defineConfig = defineConfig;
232
+ exports.defineConfig = defineConfig;
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { isPackageExists } from "local-pkg";
2
-
3
2
  //#region ../shared/src/constants.ts
4
3
  const SCSS_PACKAGES = [
5
4
  "sass",
@@ -13,7 +12,6 @@ const VUE_PACKAGES = [
13
12
  "vitepress",
14
13
  "@slidev/cli"
15
14
  ];
16
-
17
15
  //#endregion
18
16
  //#region ../shared/src/helpers.ts
19
17
  function castArray(value) {
@@ -22,7 +20,6 @@ function castArray(value) {
22
20
  function isPkgExists(pkg) {
23
21
  return castArray(pkg).some((it) => isPackageExists(it));
24
22
  }
25
-
26
23
  //#endregion
27
24
  //#region src/globs.ts
28
25
  const GLOB_CSS = ["*.css", "**/*.css"];
@@ -35,7 +32,6 @@ const GLOB_ALL = [
35
32
  ...GLOB_HTML,
36
33
  ...GLOB_VUE
37
34
  ];
38
-
39
35
  //#endregion
40
36
  //#region src/configs/core.ts
41
37
  function core(options = {}) {
@@ -105,7 +101,6 @@ function core(options = {}) {
105
101
  }
106
102
  }];
107
103
  }
108
-
109
104
  //#endregion
110
105
  //#region src/configs/css.ts
111
106
  function css(options = {}) {
@@ -115,7 +110,6 @@ function css(options = {}) {
115
110
  rules: { ...options.overrides }
116
111
  }];
117
112
  }
118
-
119
113
  //#endregion
120
114
  //#region src/configs/html.ts
121
115
  function html(options = {}) {
@@ -125,7 +119,6 @@ function html(options = {}) {
125
119
  rules: { ...options.overrides }
126
120
  }];
127
121
  }
128
-
129
122
  //#endregion
130
123
  //#region src/configs/scss.ts
131
124
  function scss(options = {}) {
@@ -160,7 +153,6 @@ function scss(options = {}) {
160
153
  }
161
154
  }];
162
155
  }
163
-
164
156
  //#endregion
165
157
  //#region src/configs/setup.ts
166
158
  function setup(options = {}) {
@@ -185,7 +177,6 @@ function setup(options = {}) {
185
177
  });
186
178
  return overrides;
187
179
  }
188
-
189
180
  //#endregion
190
181
  //#region src/configs/vue.ts
191
182
  function vue(options = {}) {
@@ -195,7 +186,6 @@ function vue(options = {}) {
195
186
  rules: { ...options.overrides }
196
187
  }];
197
188
  }
198
-
199
189
  //#endregion
200
190
  //#region src/factory.ts
201
191
  function defineConfig(options = {}, ...userOverrides) {
@@ -232,6 +222,5 @@ function getOverrides(options) {
232
222
  if (options == null || typeof options === "boolean") return {};
233
223
  return options.overrides || {};
234
224
  }
235
-
236
225
  //#endregion
237
- export { GLOB_ALL, GLOB_CSS, GLOB_HTML, GLOB_SCSS, GLOB_VUE, defineConfig };
226
+ export { GLOB_ALL, GLOB_CSS, GLOB_HTML, GLOB_SCSS, GLOB_VUE, defineConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xiaohe01/stylelint-config",
3
3
  "type": "module",
4
- "version": "3.5.0",
4
+ "version": "3.6.0",
5
5
  "description": "🤚 Xiaohe's Stylelint config preset",
6
6
  "author": "xiaohe0601 <xiaohe0601@outlook.com>",
7
7
  "license": "MIT",
@@ -36,12 +36,12 @@
36
36
  "local-pkg": "^1.1.2",
37
37
  "postcss-html": "^1.8.1",
38
38
  "postcss-scss": "^4.0.9",
39
- "stylelint-config-recess-order": "^7.6.1",
40
- "stylelint-order": "^7.0.1",
39
+ "stylelint-config-recess-order": "^7.7.0",
40
+ "stylelint-order": "^8.1.1",
41
41
  "stylelint-scss": "^7.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "stylelint": "^17.4.0",
44
+ "stylelint": "^17.5.0",
45
45
  "@xiaohe-config/shared": "^0.0.0"
46
46
  },
47
47
  "scripts": {