stylelint-taro 4.0.0-beta.2 → 4.0.0-beta.20
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/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -7,7 +7,6 @@ import miniprogram from './platform/miniprogram'
|
|
|
7
7
|
import rn from './platform/rn'
|
|
8
8
|
import { TaroStylelintConfig } from './platform/type'
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
type PlatformType = 'h5' | 'miniprogram' | 'harmony' | 'rn'
|
|
12
11
|
|
|
13
12
|
// 合并平台规则成并集
|
|
@@ -133,4 +132,4 @@ module.exports = function mergeConfig(platforms: PlatformType[], stylelintConfig
|
|
|
133
132
|
...stylelintConfig.rules,
|
|
134
133
|
},
|
|
135
134
|
}
|
|
136
|
-
}
|
|
135
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export const LENGTH_REGEX = /^-?\d+(\.\d+)?(px|vw|vh|%)?$/i
|
|
2
2
|
export const LENGTH_REGEX_SPLIT = /^-?\d+(\.\d+)?(px|vw|vh|%)?(\s+-?\d+(\.\d+)?(px|vw|vh|%)?)*$/i
|
|
3
3
|
export const NUMBER = /^-?\d+(\.\d+)?$/
|
|
4
|
-
export const BACKGROUND_IMAGE = /(url\(|linear-gradient\()/
|
|
4
|
+
export const BACKGROUND_IMAGE = /(url\(|linear-gradient\()/
|
package/src/platform/h5.ts
CHANGED
package/src/platform/harmony.ts
CHANGED
package/src/platform/rn.ts
CHANGED