@icebreakers/stylelint-config 5.0.8 → 5.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/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## Requirements
10
10
 
11
- - Node.js 18+
11
+ - Node.js 22.13+
12
12
  - Stylelint 16 (flat-compatible configuration)
13
13
 
14
14
  ## Installation
package/README.zh.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## 环境要求
8
8
 
9
- - Node.js 18+
9
+ - Node.js 22.13+
10
10
  - Stylelint 16(支持 Flat Config)
11
11
 
12
12
  ## 安装
package/dist/index.d.ts CHANGED
@@ -73,7 +73,7 @@ interface IcebreakerStylelintOptions {
73
73
  declare function createIcebreakerStylelintConfig(options?: IcebreakerStylelintOptions): StylelintConfig;
74
74
  //#endregion
75
75
  //#region src/index.d.ts
76
- declare function icebreaker(config?: IcebreakerStylelintOptions & StylelintConfig): StylelintConfig;
77
- type IcebreakerStylelintConfig = ReturnType<typeof icebreaker>;
76
+ export declare function icebreaker(config?: IcebreakerStylelintOptions & StylelintConfig): StylelintConfig;
77
+ export type IcebreakerStylelintConfig = ReturnType<typeof icebreaker>;
78
78
  //#endregion
79
- export { type FormattingPresetLevel, IcebreakerStylelintConfig, type IcebreakerStylelintOptions, type IgnoreListOptions, type PresetToggles, type StylelintConfig, type StylelintOverride, type StylelintRuleOptions, type StylelintRuleSetting, type TailwindcssPresetLevel, createIcebreakerStylelintConfig as createStylelintConfig, icebreaker };
79
+ export { type FormattingPresetLevel, type IcebreakerStylelintOptions, type IgnoreListOptions, type PresetToggles, type StylelintConfig, type StylelintOverride, type StylelintRuleOptions, type StylelintRuleSetting, type TailwindcssPresetLevel, createIcebreakerStylelintConfig as createStylelintConfig };
package/dist/index.js CHANGED
@@ -70,7 +70,8 @@ const requireFromConfig = createRequire(import.meta.url);
70
70
  const BEM_OOCSS_CLASS_NAME_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)*(?:--[a-z0-9]+(?:-[a-z0-9]+)*)*$/;
71
71
  function resolvePresetPath(specifier) {
72
72
  if (!(process.env["ICEBREAKER_STYLELINT_DISABLE_IMPORT_META_RESOLVE"] === "1") && typeof import.meta.resolve === "function") try {
73
- return fileURLToPath(import.meta.resolve(specifier));
73
+ const resolved = import.meta.resolve(specifier);
74
+ return fileURLToPath(resolved);
74
75
  } catch {}
75
76
  try {
76
77
  return requireFromConfig.resolve(specifier);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@icebreakers/stylelint-config",
3
3
  "type": "module",
4
- "version": "5.0.8",
4
+ "version": "5.1.0",
5
5
  "description": "Stylelint preset from the repoctl development toolchain",
6
- "author": "ice breaker <1324318532@qq.com>",
6
+ "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
8
8
  "homepage": "https://repoctl.icebreaker.top",
9
9
  "repository": {
@@ -34,6 +34,9 @@
34
34
  "main": "./dist/index.js",
35
35
  "module": "./dist/index.js",
36
36
  "types": "./dist/index.d.ts",
37
+ "bin": {
38
+ "stylelint-config": "./bin/init.js"
39
+ },
37
40
  "files": [
38
41
  "README.md",
39
42
  "README.zh.md",
@@ -41,7 +44,7 @@
41
44
  "dist"
42
45
  ],
43
46
  "engines": {
44
- "node": ">=22.12.0"
47
+ "node": ">=22.13.0"
45
48
  },
46
49
  "dependencies": {
47
50
  "comment-json": "^5.0.0",
@@ -52,7 +55,7 @@
52
55
  "stylelint-config-recommended-vue": "^2.0.0",
53
56
  "stylelint-config-standard-scss": "^17.0.0",
54
57
  "stylelint-order": "^8.1.1",
55
- "stylelint-plugin-tailwindcss": "3.0.8"
58
+ "stylelint-plugin-tailwindcss": "3.1.0"
56
59
  },
57
60
  "publishConfig": {
58
61
  "access": "public",
@@ -77,8 +80,5 @@
77
80
  "release": "pnpm publish",
78
81
  "sync": "cnpm sync @icebreakers/stylelint-config",
79
82
  "typecheck": "tsc --noEmit"
80
- },
81
- "bin": {
82
- "stylelint-config": "./bin/init.js"
83
83
  }
84
84
  }