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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-taro",
3
- "version": "4.0.0-beta.2",
3
+ "version": "4.0.0-beta.20",
4
4
  "description": "Taro stylelint 规则集合",
5
5
  "main": "lib/index.js",
6
6
  "files": [
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\()/
@@ -4,4 +4,4 @@ const config: TaroStylelintConfig = {
4
4
 
5
5
  }
6
6
 
7
- export default config
7
+ export default config
@@ -106,4 +106,4 @@ const config: TaroStylelintConfig = {
106
106
  }
107
107
  }
108
108
 
109
- export default config
109
+ export default config
@@ -4,4 +4,4 @@ const config: TaroStylelintConfig = {
4
4
 
5
5
  }
6
6
 
7
- export default config
7
+ export default config
@@ -28,4 +28,4 @@ const config: TaroStylelintConfig = {
28
28
  }
29
29
  }
30
30
 
31
- export default config
31
+ export default config
@@ -12,7 +12,6 @@ import { log, nameSpace, report, taroDocsUrl } from '../../utils'
12
12
 
13
13
  import type { Rule } from 'stylelint'
14
14
 
15
-
16
15
  export const ruleName = nameSpace('property-allowed-list')
17
16
 
18
17
  export const messages = stylelint.utils.ruleMessages(ruleName, {