@umijs/lint 4.0.66 → 4.0.67

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.
@@ -54,20 +54,14 @@ module.exports = {
54
54
  // disallowed set single font-family as PingFangSC
55
55
  // in most cases, this font-family rule is copied unconsciously from Sketch
56
56
  // and it will cause an unexpected font rendering on the devices that have no PingFangSC font
57
- "declaration-property-value-disallowed-list": {
58
- "font-family": [
59
- "PingFangSC",
60
- "'PingFangSC'",
61
- "PingFangSC-Regular",
62
- "'PingFangSC-Regular'",
63
- "PingFangSC-Medium",
64
- "'PingFangSC-Medium'",
65
- "PingFangSC-Semibold",
66
- "'PingFangSC-Semibold'",
67
- "PingFangSC-Bold",
68
- "'PingFangSC-Bold'"
69
- ]
70
- }
57
+ "declaration-property-value-disallowed-list": [
58
+ {
59
+ "font-family": `/^('|")?PingFangSC(-(Regular|Medium|Semibold|Bold))?\\1$/`
60
+ },
61
+ {
62
+ message: 'Unexpected value for property "font-family", which will cause some devices to render the wrong font, please delete this "font-family" css rule, see also: https://github.com/umijs/umi/pull/11001'
63
+ }
64
+ ]
71
65
  },
72
66
  customSyntax: require.resolve("../../../compiled/postcss-less"),
73
67
  ignoreFiles: ["node_modules"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/lint",
3
- "version": "4.0.66",
3
+ "version": "4.0.67",
4
4
  "description": "@umijs/lint",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/lint#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -27,7 +27,7 @@
27
27
  "postcss": "^8.4.21",
28
28
  "postcss-syntax": "0.36.2",
29
29
  "stylelint-config-standard": "25.0.0",
30
- "@umijs/babel-preset-umi": "4.0.66"
30
+ "@umijs/babel-preset-umi": "4.0.67"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rushstack/eslint-patch": "1.1.2",