@umijs/lint 4.0.64 → 4.0.66

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.
@@ -47,7 +47,27 @@ module.exports = {
47
47
  {
48
48
  message: "Expected class selector to be kebab-case or lowerCamelCase"
49
49
  }
50
- ]
50
+ ],
51
+ // to avoid conflicts with less option { math: always }
52
+ // ref: https://github.com/less/less-docs/blob/c8b9d33b0b4ec5fe59a4bbda11db202545741228/content/usage/less-options.md#math
53
+ "color-function-notation": null,
54
+ // disallowed set single font-family as PingFangSC
55
+ // in most cases, this font-family rule is copied unconsciously from Sketch
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
+ }
51
71
  },
52
72
  customSyntax: require.resolve("../../../compiled/postcss-less"),
53
73
  ignoreFiles: ["node_modules"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/lint",
3
- "version": "4.0.64",
3
+ "version": "4.0.66",
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.64"
30
+ "@umijs/babel-preset-umi": "4.0.66"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rushstack/eslint-patch": "1.1.2",