@d-zero/stylelint-config 5.0.0-alpha.15 → 5.0.0-alpha.17

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.
Files changed (3) hide show
  1. package/name.js +4 -3
  2. package/package.json +4 -4
  3. package/values.js +23 -22
package/name.js CHANGED
@@ -1,8 +1,5 @@
1
1
  module.exports = {
2
2
  rules: {
3
- 'scss/dollar-variable-pattern':
4
- '^(?:[a-z]{2,}-[a-z0-9-]+|_[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$',
5
- 'scss/percent-placeholder-pattern': '^[a-z]{2,}(-[a-z0-9-]+)?$',
6
3
  'custom-media-pattern': '[a-z][a-z-]*',
7
4
  'custom-property-pattern': '[a-z][a-z-]*',
8
5
  'selector-class-pattern': [
@@ -36,5 +33,9 @@ module.exports = {
36
33
  },
37
34
  },
38
35
  ],
36
+
37
+ 'scss/dollar-variable-pattern':
38
+ '^(?:[a-z]{2,}-[a-z0-9-]+|_[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$',
39
+ 'scss/percent-placeholder-pattern': '^[a-z]{2,}(-[a-z0-9-]+)?$',
39
40
  },
40
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/stylelint-config",
3
- "version": "5.0.0-alpha.15",
3
+ "version": "5.0.0-alpha.17",
4
4
  "description": "Configurations of Stylelint",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -23,13 +23,13 @@
23
23
  ],
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
- "@d-zero/stylelint-rules": "5.0.0-alpha.15",
26
+ "@d-zero/stylelint-rules": "5.0.0-alpha.17",
27
27
  "postcss-scss": "4.0.9",
28
28
  "stylelint": "16.2.1",
29
29
  "stylelint-config-recess-order": "5.0.0",
30
30
  "stylelint-config-standard": "36.0.0",
31
31
  "stylelint-order": "6.0.4",
32
- "stylelint-scss": "6.2.0"
32
+ "stylelint-scss": "6.2.1"
33
33
  },
34
- "gitHead": "0a6a1f910f3ca2802a5e7cfee9bc00a67889d24e"
34
+ "gitHead": "0fbc8d97c4bdd7f01f3eeeb0620020e1baf6f712"
35
35
  }
package/values.js CHANGED
@@ -8,28 +8,6 @@ const PERCENTATE_UNITS = `(?:%|${VIEWPORT_PERCENTAGE_LENGTHS})`;
8
8
  module.exports = {
9
9
  plugins: ['@d-zero/stylelint-rules'],
10
10
  rules: {
11
- '@d-zero/declaration-value-type-disallowed-list': {
12
- '/^length|percentage$/': {
13
- ignoreProperties: ['font-size'],
14
- patterns: [
15
- // float
16
- `/[1-9]*\\.[0-9]+${PERCENTATE_UNITS}/`,
17
-
18
- // 1% - 99%
19
- `/[1-9][0-9]?${PERCENTATE_UNITS}/`,
20
-
21
- // 101% - 199%
22
- `/1[0-9][1-9]${PERCENTATE_UNITS}/`,
23
- `/1[1-9][0-9]${PERCENTATE_UNITS}/`,
24
-
25
- // 200% - 999%
26
- `/[2-9][0-9][0-9]${PERCENTATE_UNITS}/`,
27
-
28
- // 1000% or larger
29
- `/[1-9][0-9]{3,}${PERCENTATE_UNITS}/`,
30
- ],
31
- },
32
- },
33
11
  'declaration-property-value-disallowed-list': {
34
12
  '/^(?:color|background|background-color|border|border-color|outline|outline-color)$/':
35
13
  ['/#[0-9a-f]{3}/', '/(?:rgb|hsl)a?\\(.+?\\)/'],
@@ -70,5 +48,28 @@ module.exports = {
70
48
  ignoreProperties: ['/^\\$font-family-/'],
71
49
  },
72
50
  ],
51
+
52
+ '@d-zero/declaration-value-type-disallowed-list': {
53
+ '/^length|percentage$/': {
54
+ ignoreProperties: ['font-size'],
55
+ patterns: [
56
+ // float
57
+ `/[1-9]*\\.[0-9]+${PERCENTATE_UNITS}/`,
58
+
59
+ // 1% - 99%
60
+ `/[1-9][0-9]?${PERCENTATE_UNITS}/`,
61
+
62
+ // 101% - 199%
63
+ `/1[0-9][1-9]${PERCENTATE_UNITS}/`,
64
+ `/1[1-9][0-9]${PERCENTATE_UNITS}/`,
65
+
66
+ // 200% - 999%
67
+ `/[2-9][0-9][0-9]${PERCENTATE_UNITS}/`,
68
+
69
+ // 1000% or larger
70
+ `/[1-9][0-9]{3,}${PERCENTATE_UNITS}/`,
71
+ ],
72
+ },
73
+ },
73
74
  },
74
75
  };