@icebreakers/stylelint-config 3.0.5 → 3.0.7

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
@@ -90,6 +90,7 @@ Defaults include:
90
90
 
91
91
  - Allowing BEM/OOCSS class selectors (e.g. `block__element--modifier`, `object--state`)
92
92
  - Allowing the `rpx` unit for mini-program compatibility
93
+ - Lowering `property-no-vendor-prefix` to a warning; Mini Program mode disables the rule so platform-prefixed properties such as `-webkit-background-clip` are allowed
93
94
  - Ignoring Tailwind/UnoCSS style at-rules (`apply`, `screen`, etc.)
94
95
  - Disallowing authored Tailwind utility selectors such as `.flex` or `.hover\:bg-red-500`
95
96
  - Ignoring the `page` selector used by various platforms
package/README.zh.md CHANGED
@@ -88,6 +88,7 @@ export default createStylelintConfig({
88
88
 
89
89
  - 允许 BEM / OOCSS 风格的类名(如 `block__element--modifier`、`object--state`)
90
90
  - 允许 `rpx` 单位,兼容小程序
91
+ - 将 `property-no-vendor-prefix` 降级为 warning;小程序模式下关闭该规则,允许 `-webkit-background-clip` 等平台前缀属性
91
92
  - 忽略 Tailwind / UnoCSS 常见指令(如 `apply`、`screen`)
92
93
  - 禁止在手写样式中声明 `.flex`、`.hover\:bg-red-500` 这类 Tailwind 原子类选择器
93
94
  - 忽略多端平台常见的 `page` 选择器
package/dist/index.js CHANGED
@@ -128,6 +128,7 @@ function resolveRules(options) {
128
128
  const rules = {
129
129
  "function-name-case": null,
130
130
  "media-feature-range-notation": "prefix",
131
+ "property-no-vendor-prefix": options?.miniProgram ? null : [true, { severity: "warning" }],
131
132
  "selector-class-pattern": [new RegExp(BEM_OOCSS_CLASS_NAME_PATTERN), {
132
133
  message: "Use BEM/OOCSS-friendly class names",
133
134
  resolveNestedSelectors: true
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/stylelint-config",
3
3
  "type": "module",
4
- "version": "3.0.5",
4
+ "version": "3.0.7",
5
5
  "description": "Stylelint preset from Icebreaker's dev-configs",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -47,10 +47,12 @@
47
47
  "comment-json": "^5.0.0",
48
48
  "postcss-html": "^1.8.1",
49
49
  "stylelint-config-recess-order": "^7.6.1",
50
+ "stylelint-config-recommended": "^18.0.0",
50
51
  "stylelint-config-recommended-scss": "^17.0.1",
51
52
  "stylelint-config-recommended-vue": "^1.6.1",
52
53
  "stylelint-config-standard-scss": "^17.0.0",
53
- "stylelint-plugin-tailwindcss": "2.0.2"
54
+ "stylelint-order": "^7.0.0",
55
+ "stylelint-plugin-tailwindcss": "2.0.3"
54
56
  },
55
57
  "publishConfig": {
56
58
  "access": "public",