@d-zero/stylelint-config 5.0.0-dev.91 → 5.0.0-dev.92
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/base.js +9 -53
- package/index.js +4 -13
- package/name.js +17 -0
- package/package.json +8 -4
- package/values.js +51 -0
package/base.js
CHANGED
|
@@ -58,42 +58,13 @@ module.exports = {
|
|
|
58
58
|
'comment-word-disallowed-list': ['/^TODO:/'],
|
|
59
59
|
'custom-property-empty-line-before': 'never',
|
|
60
60
|
'declaration-block-no-duplicate-properties': true,
|
|
61
|
-
'declaration-block-no-redundant-longhand-properties':
|
|
62
|
-
true,
|
|
63
|
-
{
|
|
64
|
-
ignoreShorthands: ['flex', 'grid-template'],
|
|
65
|
-
},
|
|
66
|
-
],
|
|
61
|
+
'declaration-block-no-redundant-longhand-properties': true,
|
|
67
62
|
'declaration-block-no-shorthand-property-overrides': true,
|
|
68
63
|
'declaration-block-single-line-max-declarations': 80,
|
|
69
64
|
'declaration-empty-line-before': 'never',
|
|
70
65
|
'declaration-no-important': true,
|
|
71
|
-
'declaration-property-value-disallowed-list':
|
|
72
|
-
|
|
73
|
-
['/#[0-9a-f]{3}/', '/(?:rgb|hsl)a?\\(.+?\\)/'],
|
|
74
|
-
content: ['/^\\"\\\\[0-9a-fA-F]{1,6}\\"$/'],
|
|
75
|
-
flex: ['/calc/'],
|
|
76
|
-
'/^(?:max-|min-)?(?:width|height)|^flex/': [
|
|
77
|
-
'/[1-9]*\\.[0-9]+(?:%|vw|vh)/',
|
|
78
|
-
'/(?:^|[^0-9])[0-9](?:%|vw|vh)/',
|
|
79
|
-
'/(?:^|[^0-9])[0-9]{2}(?:%|vw|vh)/',
|
|
80
|
-
'/1[0-9][1-9](?:%|vw|vh)/',
|
|
81
|
-
'/1[1-9][0-9](?:%|vw|vh)/',
|
|
82
|
-
'/[2-9][0-9][0-9](?:%|vw|vh)/',
|
|
83
|
-
'/[0-9]{4,}(?:%|vw|vh)/',
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
'declaration-property-value-allowed-list': {
|
|
87
|
-
'font-size': [
|
|
88
|
-
'inherit',
|
|
89
|
-
'$root-font-size',
|
|
90
|
-
'$base-font-size',
|
|
91
|
-
'1em',
|
|
92
|
-
'/^calc\\((?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\/ (?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\* (?:1em|100vw)\\)$/',
|
|
93
|
-
'/^(?:[0-9]*\\.)?[0-9]+rem/',
|
|
94
|
-
'/^clamp\\(/',
|
|
95
|
-
],
|
|
96
|
-
},
|
|
66
|
+
'declaration-property-value-disallowed-list': null,
|
|
67
|
+
'declaration-property-value-allowed-list': null,
|
|
97
68
|
'font-family-name-quotes': 'always-where-required',
|
|
98
69
|
'font-family-no-duplicate-names': true,
|
|
99
70
|
'font-weight-notation': 'named-where-possible',
|
|
@@ -151,29 +122,14 @@ module.exports = {
|
|
|
151
122
|
'shorthand-property-no-redundant-values': null,
|
|
152
123
|
'string-no-newline': true,
|
|
153
124
|
'time-min-milliseconds': 100,
|
|
154
|
-
'unit-disallowed-list':
|
|
155
|
-
'ex',
|
|
156
|
-
'ch',
|
|
157
|
-
'mm',
|
|
158
|
-
'q',
|
|
159
|
-
'cm',
|
|
160
|
-
'in',
|
|
161
|
-
'pt',
|
|
162
|
-
'pc',
|
|
163
|
-
'vm',
|
|
164
|
-
's',
|
|
165
|
-
'grad',
|
|
166
|
-
'rad',
|
|
167
|
-
'turn',
|
|
168
|
-
],
|
|
125
|
+
'unit-disallowed-list': null,
|
|
169
126
|
'unit-no-unknown': true,
|
|
170
|
-
'value-keyword-case':
|
|
171
|
-
'lower',
|
|
172
|
-
{
|
|
173
|
-
ignoreProperties: ['/^\\$font-family-/'],
|
|
174
|
-
},
|
|
175
|
-
],
|
|
127
|
+
'value-keyword-case': null,
|
|
176
128
|
'value-no-vendor-prefix': true,
|
|
129
|
+
|
|
130
|
+
// Overwrite stylelint-config-standard
|
|
131
|
+
'custom-media-pattern': null,
|
|
132
|
+
'custom-property-pattern': null,
|
|
177
133
|
},
|
|
178
134
|
overrides: [
|
|
179
135
|
{
|
package/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const base = require('./base');
|
|
2
|
+
const name = require('./name');
|
|
3
|
+
const values = require('./values');
|
|
2
4
|
|
|
3
5
|
module.exports = {
|
|
4
6
|
...base,
|
|
@@ -10,18 +12,7 @@ module.exports = {
|
|
|
10
12
|
],
|
|
11
13
|
rules: {
|
|
12
14
|
...base.rules,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'scss/percent-placeholder-pattern': '^[a-z]{2,}(-[a-z0-9-]+)?$',
|
|
16
|
-
'custom-media-pattern': '[a-z][a-z-]*',
|
|
17
|
-
'custom-property-pattern': '[a-z][a-z-]*',
|
|
18
|
-
'selector-class-pattern': [
|
|
19
|
-
'^c-[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?$',
|
|
20
|
-
{
|
|
21
|
-
resolveNestedSelectors: true,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'selector-id-pattern': '^$',
|
|
25
|
-
'selector-nested-pattern': '^[^.]+.*',
|
|
15
|
+
...name.rules,
|
|
16
|
+
...values.rules,
|
|
26
17
|
},
|
|
27
18
|
};
|
package/name.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = {
|
|
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
|
+
'custom-media-pattern': '[a-z][a-z-]*',
|
|
7
|
+
'custom-property-pattern': '[a-z][a-z-]*',
|
|
8
|
+
'selector-class-pattern': [
|
|
9
|
+
'^c-[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?$',
|
|
10
|
+
{
|
|
11
|
+
resolveNestedSelectors: true,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
'selector-id-pattern': '^$',
|
|
15
|
+
'selector-nested-pattern': '^[^.]+.*',
|
|
16
|
+
},
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/stylelint-config",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.92+cac5756",
|
|
4
4
|
"description": "Configurations of Stylelint",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/node-dev-env.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
"type": "commonjs",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": "./index.js",
|
|
15
|
-
"./base": "./base.js"
|
|
15
|
+
"./base": "./base.js",
|
|
16
|
+
"./name": "./name.js",
|
|
17
|
+
"./values": "./values.js"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"base.js",
|
|
19
|
-
"index.js"
|
|
21
|
+
"index.js",
|
|
22
|
+
"name.js",
|
|
23
|
+
"values.js"
|
|
20
24
|
],
|
|
21
25
|
"main": "index.js",
|
|
22
26
|
"dependencies": {
|
|
@@ -26,5 +30,5 @@
|
|
|
26
30
|
"stylelint-order": "6.0.4",
|
|
27
31
|
"stylelint-scss": "6.0.0"
|
|
28
32
|
},
|
|
29
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "cac5756806a90edaa73a57e49f0dcd45495290ab"
|
|
30
34
|
}
|
package/values.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
rules: {
|
|
3
|
+
'declaration-property-value-disallowed-list': {
|
|
4
|
+
'/^(?:color|background|background-color|border|border-color|outline|outline-color)$/':
|
|
5
|
+
['/#[0-9a-f]{3}/', '/(?:rgb|hsl)a?\\(.+?\\)/'],
|
|
6
|
+
content: ['/^\\"\\\\[0-9a-fA-F]{1,6}\\"$/'],
|
|
7
|
+
flex: ['/calc/'],
|
|
8
|
+
'/^(?:max-|min-)?(?:width|height)|^flex/': [
|
|
9
|
+
'/[1-9]*\\.[0-9]+(?:%|vw|vh)/',
|
|
10
|
+
'/(?:^|[^0-9])[0-9](?:%|vw|vh)/',
|
|
11
|
+
'/(?:^|[^0-9])[0-9]{2}(?:%|vw|vh)/',
|
|
12
|
+
'/1[0-9][1-9](?:%|vw|vh)/',
|
|
13
|
+
'/1[1-9][0-9](?:%|vw|vh)/',
|
|
14
|
+
'/[2-9][0-9][0-9](?:%|vw|vh)/',
|
|
15
|
+
'/[0-9]{4,}(?:%|vw|vh)/',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
'declaration-property-value-allowed-list': {
|
|
19
|
+
'font-size': [
|
|
20
|
+
'inherit',
|
|
21
|
+
'$root-font-size',
|
|
22
|
+
'$base-font-size',
|
|
23
|
+
'1em',
|
|
24
|
+
'/^calc\\((?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\/ (?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\* (?:1em|100vw)\\)$/',
|
|
25
|
+
'/^(?:[0-9]*\\.)?[0-9]+rem/',
|
|
26
|
+
'/^clamp\\(/',
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
'unit-disallowed-list': [
|
|
30
|
+
'ex',
|
|
31
|
+
'ch',
|
|
32
|
+
'mm',
|
|
33
|
+
'q',
|
|
34
|
+
'cm',
|
|
35
|
+
'in',
|
|
36
|
+
'pt',
|
|
37
|
+
'pc',
|
|
38
|
+
'vm',
|
|
39
|
+
's',
|
|
40
|
+
'grad',
|
|
41
|
+
'rad',
|
|
42
|
+
'turn',
|
|
43
|
+
],
|
|
44
|
+
'value-keyword-case': [
|
|
45
|
+
'lower',
|
|
46
|
+
{
|
|
47
|
+
ignoreProperties: ['/^\\$font-family-/'],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
};
|