@icebreakers/stylelint-config 0.1.4 → 1.0.1

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.
@@ -27,9 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
31
+ import path from "path";
32
+ import { fileURLToPath } from "url";
31
33
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
33
35
  "use strict";
34
36
  }
35
37
  });
package/dist/cli.cjs CHANGED
@@ -28,114 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
31
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
32
32
  var init_cjs_shims = __esm({
33
- "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
33
+ "../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
34
34
  "use strict";
35
35
  }
36
36
  });
37
37
 
38
- // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
39
- var require_isobject = __commonJS({
40
- "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports2, module2) {
41
- "use strict";
42
- init_cjs_shims();
43
- module2.exports = function isObject(val) {
44
- return val != null && typeof val === "object" && Array.isArray(val) === false;
45
- };
46
- }
47
- });
48
-
49
- // ../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js
50
- var require_get_value = __commonJS({
51
- "../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js"(exports2, module2) {
52
- "use strict";
53
- init_cjs_shims();
54
- var isObject = require_isobject();
55
- module2.exports = function(target, path, options) {
56
- if (!isObject(options)) {
57
- options = { default: options };
58
- }
59
- if (!isValidObject(target)) {
60
- return typeof options.default !== "undefined" ? options.default : target;
61
- }
62
- if (typeof path === "number") {
63
- path = String(path);
64
- }
65
- const isArray = Array.isArray(path);
66
- const isString = typeof path === "string";
67
- const splitChar = options.separator || ".";
68
- const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
69
- if (!isString && !isArray) {
70
- return target;
71
- }
72
- if (isString && path in target) {
73
- return isValid(path, target, options) ? target[path] : options.default;
74
- }
75
- let segs = isArray ? path : split(path, splitChar, options);
76
- let len = segs.length;
77
- let idx = 0;
78
- do {
79
- let prop = segs[idx];
80
- if (typeof prop === "number") {
81
- prop = String(prop);
82
- }
83
- while (prop && prop.slice(-1) === "\\") {
84
- prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
85
- }
86
- if (prop in target) {
87
- if (!isValid(prop, target, options)) {
88
- return options.default;
89
- }
90
- target = target[prop];
91
- } else {
92
- let hasProp = false;
93
- let n = idx + 1;
94
- while (n < len) {
95
- prop = join([prop, segs[n++]], joinChar, options);
96
- if (hasProp = prop in target) {
97
- if (!isValid(prop, target, options)) {
98
- return options.default;
99
- }
100
- target = target[prop];
101
- idx = n - 1;
102
- break;
103
- }
104
- }
105
- if (!hasProp) {
106
- return options.default;
107
- }
108
- }
109
- } while (++idx < len && isValidObject(target));
110
- if (idx === len) {
111
- return target;
112
- }
113
- return options.default;
114
- };
115
- function join(segs, joinChar, options) {
116
- if (typeof options.join === "function") {
117
- return options.join(segs);
118
- }
119
- return segs[0] + joinChar + segs[1];
120
- }
121
- function split(path, splitChar, options) {
122
- if (typeof options.split === "function") {
123
- return options.split(path);
124
- }
125
- return path.split(splitChar);
126
- }
127
- function isValid(key, target, options) {
128
- if (typeof options.isValid === "function") {
129
- return options.isValid(key, target);
130
- }
131
- return true;
132
- }
133
- function isValidObject(val) {
134
- return isObject(val) || Array.isArray(val) || typeof val === "function";
135
- }
136
- }
137
- });
138
-
139
38
  // ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
140
39
  var require_is_primitive = __commonJS({
141
40
  "../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js"(exports2, module2) {
@@ -150,14 +49,25 @@ var require_is_primitive = __commonJS({
150
49
  }
151
50
  });
152
51
 
52
+ // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
53
+ var require_isobject = __commonJS({
54
+ "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports2, module2) {
55
+ "use strict";
56
+ init_cjs_shims();
57
+ module2.exports = function isObject2(val) {
58
+ return val != null && typeof val === "object" && Array.isArray(val) === false;
59
+ };
60
+ }
61
+ });
62
+
153
63
  // ../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js
154
64
  var require_is_plain_object = __commonJS({
155
65
  "../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports2, module2) {
156
66
  "use strict";
157
67
  init_cjs_shims();
158
- var isObject = require_isobject();
68
+ var isObject2 = require_isobject();
159
69
  function isObjectObject(o) {
160
- return isObject(o) === true && Object.prototype.toString.call(o) === "[object Object]";
70
+ return isObject2(o) === true && Object.prototype.toString.call(o) === "[object Object]";
161
71
  }
162
72
  module2.exports = function isPlainObject(o) {
163
73
  var ctor, prot;
@@ -182,7 +92,7 @@ var require_set_value = __commonJS({
182
92
  var { deleteProperty } = Reflect;
183
93
  var isPrimitive = require_is_primitive();
184
94
  var isPlainObject = require_is_plain_object();
185
- var isObject = (value) => {
95
+ var isObject2 = (value) => {
186
96
  return typeof value === "object" && value !== null || typeof value === "function";
187
97
  };
188
98
  var isUnsafeKey = (key) => {
@@ -250,7 +160,7 @@ var require_set_value = __commonJS({
250
160
  }
251
161
  return parts;
252
162
  };
253
- var split = (input, options) => {
163
+ var split2 = (input, options) => {
254
164
  if (options && typeof options.split === "function") return options.split(input);
255
165
  if (typeof input === "symbol") return [input];
256
166
  if (Array.isArray(input)) return input;
@@ -273,8 +183,8 @@ var require_set_value = __commonJS({
273
183
  return obj;
274
184
  };
275
185
  var setValue = (target, path, value, options) => {
276
- if (!path || !isObject(target)) return target;
277
- const keys = split(path, options);
186
+ if (!path || !isObject2(target)) return target;
187
+ const keys = split2(path, options);
278
188
  let obj = target;
279
189
  for (let i = 0; i < keys.length; i++) {
280
190
  const key = keys[i];
@@ -288,14 +198,14 @@ var require_set_value = __commonJS({
288
198
  obj = obj[key] = [];
289
199
  continue;
290
200
  }
291
- if (!isObject(obj[key])) {
201
+ if (!isObject2(obj[key])) {
292
202
  obj[key] = {};
293
203
  }
294
204
  obj = obj[key];
295
205
  }
296
206
  return target;
297
207
  };
298
- setValue.split = split;
208
+ setValue.split = split2;
299
209
  setValue.cache = /* @__PURE__ */ new Map();
300
210
  setValue.clear = () => {
301
211
  setValue.cache = /* @__PURE__ */ new Map();
@@ -313,13 +223,102 @@ var import_comment_json = __toESM(require("comment-json"), 1);
313
223
 
314
224
  // src/shared.ts
315
225
  init_cjs_shims();
316
- var import_get_value = __toESM(require_get_value(), 1);
226
+
227
+ // ../../node_modules/.pnpm/get-value@4.0.1/node_modules/get-value/dist/index.mjs
228
+ init_cjs_shims();
229
+ var __defProp2 = Object.defineProperty;
230
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
231
+ var isObject = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
232
+ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
233
+ if (typeof options.join === "function") {
234
+ return options.join(segs);
235
+ }
236
+ return segs[0] + joinChar + segs[1];
237
+ }, "join");
238
+ var split = /* @__PURE__ */ __name((path, splitChar, options) => {
239
+ if (typeof options.split === "function") {
240
+ return options.split(path);
241
+ }
242
+ return path.split(splitChar);
243
+ }, "split");
244
+ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
245
+ if (typeof options?.isValid === "function") {
246
+ return options.isValid(key, target);
247
+ }
248
+ return true;
249
+ }, "isValid");
250
+ var isValidObject = /* @__PURE__ */ __name((v) => {
251
+ return isObject(v) || typeof v === "function";
252
+ }, "isValidObject");
253
+ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
254
+ if (!isObject(options)) {
255
+ options = { default: options };
256
+ }
257
+ if (!isValidObject(target)) {
258
+ return typeof options.default !== "undefined" ? options.default : target;
259
+ }
260
+ if (typeof path === "number") {
261
+ path = String(path);
262
+ }
263
+ const pathIsArray = Array.isArray(path);
264
+ const pathIsString = typeof path === "string";
265
+ const splitChar = options.separator || ".";
266
+ const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
267
+ if (!pathIsString && !pathIsArray) {
268
+ return target;
269
+ }
270
+ if (target[path] !== void 0) {
271
+ return isValid(path, target, options) ? target[path] : options.default;
272
+ }
273
+ const segs = pathIsArray ? path : split(path, splitChar, options);
274
+ const len = segs.length;
275
+ let idx = 0;
276
+ do {
277
+ let prop = segs[idx];
278
+ if (typeof prop !== "string") {
279
+ prop = String(prop);
280
+ }
281
+ while (prop && prop.slice(-1) === "\\") {
282
+ prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
283
+ }
284
+ if (target[prop] !== void 0) {
285
+ if (!isValid(prop, target, options)) {
286
+ return options.default;
287
+ }
288
+ target = target[prop];
289
+ } else {
290
+ let hasProp = false;
291
+ let n = idx + 1;
292
+ while (n < len) {
293
+ prop = join([prop, segs[n++]], joinChar, options);
294
+ if (hasProp = target[prop] !== void 0) {
295
+ if (!isValid(prop, target, options)) {
296
+ return options.default;
297
+ }
298
+ target = target[prop];
299
+ idx = n - 1;
300
+ break;
301
+ }
302
+ }
303
+ if (!hasProp) {
304
+ return options.default;
305
+ }
306
+ }
307
+ } while (++idx < len && isValidObject(target));
308
+ if (idx === len) {
309
+ return target;
310
+ }
311
+ return options.default;
312
+ }, "getValue");
313
+ var index_default = getValue;
314
+
315
+ // src/shared.ts
317
316
  var import_set_value = __toESM(require_set_value(), 1);
318
317
  function setVscodeSettingsJson(json2 = {}) {
319
318
  (0, import_set_value.default)(json2, "css\\.validate", false);
320
319
  (0, import_set_value.default)(json2, "less\\.validate", false);
321
320
  (0, import_set_value.default)(json2, "scss\\.validate", false);
322
- const stylelintValidates = new Set((0, import_get_value.default)(json2, "stylelint\\.validate", { default: [] }));
321
+ const stylelintValidates = new Set(index_default(json2, "stylelint\\.validate", { default: [] }));
323
322
  stylelintValidates.add("vue");
324
323
  stylelintValidates.add("css");
325
324
  stylelintValidates.add("scss");
@@ -346,27 +345,19 @@ import_node_fs.default.writeFileSync(vscodeSettingsFilename, import_comment_json
346
345
  console.info(`[@icebreakers/stylelint-config] ${isExisted ? "update" : "init"} '.vscode/settings.json' finished`);
347
346
  /*! Bundled license information:
348
347
 
349
- isobject/index.js:
350
- (*!
351
- * isobject <https://github.com/jonschlinkert/isobject>
352
- *
353
- * Copyright (c) 2014-2017, Jon Schlinkert.
354
- * Released under the MIT License.
355
- *)
356
-
357
- get-value/index.js:
348
+ is-primitive/index.js:
358
349
  (*!
359
- * get-value <https://github.com/jonschlinkert/get-value>
350
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
360
351
  *
361
- * Copyright (c) 2014-2018, Jon Schlinkert.
352
+ * Copyright (c) 2014-present, Jon Schlinkert.
362
353
  * Released under the MIT License.
363
354
  *)
364
355
 
365
- is-primitive/index.js:
356
+ isobject/index.js:
366
357
  (*!
367
- * is-primitive <https://github.com/jonschlinkert/is-primitive>
358
+ * isobject <https://github.com/jonschlinkert/isobject>
368
359
  *
369
- * Copyright (c) 2014-present, Jon Schlinkert.
360
+ * Copyright (c) 2014-2017, Jon Schlinkert.
370
361
  * Released under the MIT License.
371
362
  *)
372
363
 
@@ -385,4 +376,12 @@ set-value/index.js:
385
376
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
386
377
  * Released under the MIT License.
387
378
  *)
379
+
380
+ get-value/dist/index.mjs:
381
+ (*!
382
+ * get-value <https://github.com/jonschlinkert/get-value>
383
+ *
384
+ * Copyright (c) 2014-present, Jon Schlinkert.
385
+ * Released under the MIT License.
386
+ *)
388
387
  */
package/dist/cli.js CHANGED
@@ -2,108 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __toESM,
4
4
  init_esm_shims
5
- } from "./chunk-UBTE3CP3.js";
6
-
7
- // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
8
- var require_isobject = __commonJS({
9
- "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
10
- "use strict";
11
- init_esm_shims();
12
- module.exports = function isObject(val) {
13
- return val != null && typeof val === "object" && Array.isArray(val) === false;
14
- };
15
- }
16
- });
17
-
18
- // ../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js
19
- var require_get_value = __commonJS({
20
- "../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js"(exports, module) {
21
- "use strict";
22
- init_esm_shims();
23
- var isObject = require_isobject();
24
- module.exports = function(target, path, options) {
25
- if (!isObject(options)) {
26
- options = { default: options };
27
- }
28
- if (!isValidObject(target)) {
29
- return typeof options.default !== "undefined" ? options.default : target;
30
- }
31
- if (typeof path === "number") {
32
- path = String(path);
33
- }
34
- const isArray = Array.isArray(path);
35
- const isString = typeof path === "string";
36
- const splitChar = options.separator || ".";
37
- const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
38
- if (!isString && !isArray) {
39
- return target;
40
- }
41
- if (isString && path in target) {
42
- return isValid(path, target, options) ? target[path] : options.default;
43
- }
44
- let segs = isArray ? path : split(path, splitChar, options);
45
- let len = segs.length;
46
- let idx = 0;
47
- do {
48
- let prop = segs[idx];
49
- if (typeof prop === "number") {
50
- prop = String(prop);
51
- }
52
- while (prop && prop.slice(-1) === "\\") {
53
- prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
54
- }
55
- if (prop in target) {
56
- if (!isValid(prop, target, options)) {
57
- return options.default;
58
- }
59
- target = target[prop];
60
- } else {
61
- let hasProp = false;
62
- let n = idx + 1;
63
- while (n < len) {
64
- prop = join([prop, segs[n++]], joinChar, options);
65
- if (hasProp = prop in target) {
66
- if (!isValid(prop, target, options)) {
67
- return options.default;
68
- }
69
- target = target[prop];
70
- idx = n - 1;
71
- break;
72
- }
73
- }
74
- if (!hasProp) {
75
- return options.default;
76
- }
77
- }
78
- } while (++idx < len && isValidObject(target));
79
- if (idx === len) {
80
- return target;
81
- }
82
- return options.default;
83
- };
84
- function join(segs, joinChar, options) {
85
- if (typeof options.join === "function") {
86
- return options.join(segs);
87
- }
88
- return segs[0] + joinChar + segs[1];
89
- }
90
- function split(path, splitChar, options) {
91
- if (typeof options.split === "function") {
92
- return options.split(path);
93
- }
94
- return path.split(splitChar);
95
- }
96
- function isValid(key, target, options) {
97
- if (typeof options.isValid === "function") {
98
- return options.isValid(key, target);
99
- }
100
- return true;
101
- }
102
- function isValidObject(val) {
103
- return isObject(val) || Array.isArray(val) || typeof val === "function";
104
- }
105
- }
106
- });
5
+ } from "./chunk-ZP37ULDP.js";
107
6
 
108
7
  // ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
109
8
  var require_is_primitive = __commonJS({
@@ -119,14 +18,25 @@ var require_is_primitive = __commonJS({
119
18
  }
120
19
  });
121
20
 
21
+ // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
22
+ var require_isobject = __commonJS({
23
+ "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
24
+ "use strict";
25
+ init_esm_shims();
26
+ module.exports = function isObject2(val) {
27
+ return val != null && typeof val === "object" && Array.isArray(val) === false;
28
+ };
29
+ }
30
+ });
31
+
122
32
  // ../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js
123
33
  var require_is_plain_object = __commonJS({
124
34
  "../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports, module) {
125
35
  "use strict";
126
36
  init_esm_shims();
127
- var isObject = require_isobject();
37
+ var isObject2 = require_isobject();
128
38
  function isObjectObject(o) {
129
- return isObject(o) === true && Object.prototype.toString.call(o) === "[object Object]";
39
+ return isObject2(o) === true && Object.prototype.toString.call(o) === "[object Object]";
130
40
  }
131
41
  module.exports = function isPlainObject(o) {
132
42
  var ctor, prot;
@@ -151,7 +61,7 @@ var require_set_value = __commonJS({
151
61
  var { deleteProperty } = Reflect;
152
62
  var isPrimitive = require_is_primitive();
153
63
  var isPlainObject = require_is_plain_object();
154
- var isObject = (value) => {
64
+ var isObject2 = (value) => {
155
65
  return typeof value === "object" && value !== null || typeof value === "function";
156
66
  };
157
67
  var isUnsafeKey = (key) => {
@@ -219,7 +129,7 @@ var require_set_value = __commonJS({
219
129
  }
220
130
  return parts;
221
131
  };
222
- var split = (input, options) => {
132
+ var split2 = (input, options) => {
223
133
  if (options && typeof options.split === "function") return options.split(input);
224
134
  if (typeof input === "symbol") return [input];
225
135
  if (Array.isArray(input)) return input;
@@ -242,8 +152,8 @@ var require_set_value = __commonJS({
242
152
  return obj;
243
153
  };
244
154
  var setValue = (target, path, value, options) => {
245
- if (!path || !isObject(target)) return target;
246
- const keys = split(path, options);
155
+ if (!path || !isObject2(target)) return target;
156
+ const keys = split2(path, options);
247
157
  let obj = target;
248
158
  for (let i = 0; i < keys.length; i++) {
249
159
  const key = keys[i];
@@ -257,14 +167,14 @@ var require_set_value = __commonJS({
257
167
  obj = obj[key] = [];
258
168
  continue;
259
169
  }
260
- if (!isObject(obj[key])) {
170
+ if (!isObject2(obj[key])) {
261
171
  obj[key] = {};
262
172
  }
263
173
  obj = obj[key];
264
174
  }
265
175
  return target;
266
176
  };
267
- setValue.split = split;
177
+ setValue.split = split2;
268
178
  setValue.cache = /* @__PURE__ */ new Map();
269
179
  setValue.clear = () => {
270
180
  setValue.cache = /* @__PURE__ */ new Map();
@@ -275,20 +185,109 @@ var require_set_value = __commonJS({
275
185
 
276
186
  // src/cli.ts
277
187
  init_esm_shims();
278
- import fs from "node:fs";
279
- import { resolve } from "node:path";
280
- import process from "node:process";
188
+ import fs from "fs";
189
+ import { resolve } from "path";
190
+ import process from "process";
281
191
  import jsonc from "comment-json";
282
192
 
283
193
  // src/shared.ts
284
194
  init_esm_shims();
285
- var import_get_value = __toESM(require_get_value(), 1);
195
+
196
+ // ../../node_modules/.pnpm/get-value@4.0.1/node_modules/get-value/dist/index.mjs
197
+ init_esm_shims();
198
+ var __defProp = Object.defineProperty;
199
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
200
+ var isObject = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
201
+ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
202
+ if (typeof options.join === "function") {
203
+ return options.join(segs);
204
+ }
205
+ return segs[0] + joinChar + segs[1];
206
+ }, "join");
207
+ var split = /* @__PURE__ */ __name((path, splitChar, options) => {
208
+ if (typeof options.split === "function") {
209
+ return options.split(path);
210
+ }
211
+ return path.split(splitChar);
212
+ }, "split");
213
+ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
214
+ if (typeof options?.isValid === "function") {
215
+ return options.isValid(key, target);
216
+ }
217
+ return true;
218
+ }, "isValid");
219
+ var isValidObject = /* @__PURE__ */ __name((v) => {
220
+ return isObject(v) || typeof v === "function";
221
+ }, "isValidObject");
222
+ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
223
+ if (!isObject(options)) {
224
+ options = { default: options };
225
+ }
226
+ if (!isValidObject(target)) {
227
+ return typeof options.default !== "undefined" ? options.default : target;
228
+ }
229
+ if (typeof path === "number") {
230
+ path = String(path);
231
+ }
232
+ const pathIsArray = Array.isArray(path);
233
+ const pathIsString = typeof path === "string";
234
+ const splitChar = options.separator || ".";
235
+ const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
236
+ if (!pathIsString && !pathIsArray) {
237
+ return target;
238
+ }
239
+ if (target[path] !== void 0) {
240
+ return isValid(path, target, options) ? target[path] : options.default;
241
+ }
242
+ const segs = pathIsArray ? path : split(path, splitChar, options);
243
+ const len = segs.length;
244
+ let idx = 0;
245
+ do {
246
+ let prop = segs[idx];
247
+ if (typeof prop !== "string") {
248
+ prop = String(prop);
249
+ }
250
+ while (prop && prop.slice(-1) === "\\") {
251
+ prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
252
+ }
253
+ if (target[prop] !== void 0) {
254
+ if (!isValid(prop, target, options)) {
255
+ return options.default;
256
+ }
257
+ target = target[prop];
258
+ } else {
259
+ let hasProp = false;
260
+ let n = idx + 1;
261
+ while (n < len) {
262
+ prop = join([prop, segs[n++]], joinChar, options);
263
+ if (hasProp = target[prop] !== void 0) {
264
+ if (!isValid(prop, target, options)) {
265
+ return options.default;
266
+ }
267
+ target = target[prop];
268
+ idx = n - 1;
269
+ break;
270
+ }
271
+ }
272
+ if (!hasProp) {
273
+ return options.default;
274
+ }
275
+ }
276
+ } while (++idx < len && isValidObject(target));
277
+ if (idx === len) {
278
+ return target;
279
+ }
280
+ return options.default;
281
+ }, "getValue");
282
+ var index_default = getValue;
283
+
284
+ // src/shared.ts
286
285
  var import_set_value = __toESM(require_set_value(), 1);
287
286
  function setVscodeSettingsJson(json2 = {}) {
288
287
  (0, import_set_value.default)(json2, "css\\.validate", false);
289
288
  (0, import_set_value.default)(json2, "less\\.validate", false);
290
289
  (0, import_set_value.default)(json2, "scss\\.validate", false);
291
- const stylelintValidates = new Set((0, import_get_value.default)(json2, "stylelint\\.validate", { default: [] }));
290
+ const stylelintValidates = new Set(index_default(json2, "stylelint\\.validate", { default: [] }));
292
291
  stylelintValidates.add("vue");
293
292
  stylelintValidates.add("css");
294
293
  stylelintValidates.add("scss");
@@ -315,27 +314,19 @@ fs.writeFileSync(vscodeSettingsFilename, jsonc.stringify(json, void 0, 2), "utf8
315
314
  console.info(`[@icebreakers/stylelint-config] ${isExisted ? "update" : "init"} '.vscode/settings.json' finished`);
316
315
  /*! Bundled license information:
317
316
 
318
- isobject/index.js:
319
- (*!
320
- * isobject <https://github.com/jonschlinkert/isobject>
321
- *
322
- * Copyright (c) 2014-2017, Jon Schlinkert.
323
- * Released under the MIT License.
324
- *)
325
-
326
- get-value/index.js:
317
+ is-primitive/index.js:
327
318
  (*!
328
- * get-value <https://github.com/jonschlinkert/get-value>
319
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
329
320
  *
330
- * Copyright (c) 2014-2018, Jon Schlinkert.
321
+ * Copyright (c) 2014-present, Jon Schlinkert.
331
322
  * Released under the MIT License.
332
323
  *)
333
324
 
334
- is-primitive/index.js:
325
+ isobject/index.js:
335
326
  (*!
336
- * is-primitive <https://github.com/jonschlinkert/is-primitive>
327
+ * isobject <https://github.com/jonschlinkert/isobject>
337
328
  *
338
- * Copyright (c) 2014-present, Jon Schlinkert.
329
+ * Copyright (c) 2014-2017, Jon Schlinkert.
339
330
  * Released under the MIT License.
340
331
  *)
341
332
 
@@ -354,4 +345,12 @@ set-value/index.js:
354
345
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
355
346
  * Released under the MIT License.
356
347
  *)
348
+
349
+ get-value/dist/index.mjs:
350
+ (*!
351
+ * get-value <https://github.com/jonschlinkert/get-value>
352
+ *
353
+ * Copyright (c) 2014-present, Jon Schlinkert.
354
+ * Released under the MIT License.
355
+ *)
357
356
  */
package/dist/index.cjs CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  icebreaker: () => icebreaker
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
 
27
27
  // ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
28
28
  function isPlainObject(value) {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-UBTE3CP3.js";
3
+ } from "./chunk-ZP37ULDP.js";
4
4
 
5
5
  // src/index.ts
6
6
  init_esm_shims();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/stylelint-config",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "1.0.1",
5
5
  "description": "icebreaker's stylelint config",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  "comment-json": "^4.2.5",
37
37
  "postcss-html": "^1.8.0",
38
38
  "stylelint-config-recess-order": "^6.0.0",
39
- "stylelint-config-recommended-scss": "^14.1.0",
40
- "stylelint-config-recommended-vue": "^1.5.0",
41
- "stylelint-config-standard-scss": "^14.0.0"
39
+ "stylelint-config-recommended-scss": "^15.0.1",
40
+ "stylelint-config-recommended-vue": "^1.6.0",
41
+ "stylelint-config-standard-scss": "^15.0.1"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",