@oroinc/oro-stylelint-config 5.1.0-alpha3 → 5.1.0-alpha5
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/index.js +13 -33
- package/package.json +6 -7
package/index.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
'plugins': ['stylelint-scss', 'stylelint-declaration-strict-value'],
|
|
6
|
-
'extends': ['stylelint-config-
|
|
7
|
-
'customSyntax': 'postcss-scss',
|
|
6
|
+
'extends': ['stylelint-config-recommended-scss'],
|
|
8
7
|
'rules': {
|
|
9
8
|
'at-rule-empty-line-before': [
|
|
10
9
|
'always',
|
|
@@ -22,26 +21,6 @@ module.exports = {
|
|
|
22
21
|
]
|
|
23
22
|
}
|
|
24
23
|
],
|
|
25
|
-
'at-rule-no-unknown': [
|
|
26
|
-
true,
|
|
27
|
-
{
|
|
28
|
-
'ignoreAtRules': [
|
|
29
|
-
'function',
|
|
30
|
-
'if',
|
|
31
|
-
'else',
|
|
32
|
-
'each',
|
|
33
|
-
'include',
|
|
34
|
-
'mixin',
|
|
35
|
-
'extend',
|
|
36
|
-
'at-root',
|
|
37
|
-
'return',
|
|
38
|
-
'for',
|
|
39
|
-
'warn',
|
|
40
|
-
'use',
|
|
41
|
-
'forward'
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
24
|
'at-rule-no-vendor-prefix': true,
|
|
46
25
|
'block-closing-brace-newline-after': [
|
|
47
26
|
'always',
|
|
@@ -59,8 +38,8 @@ module.exports = {
|
|
|
59
38
|
'custom-property-pattern': [
|
|
60
39
|
'^([\\#\\{\\$]*[a-z][a-z0-9\\}]*)(-[\\#\\$\\{a-z0-9\\}]+)*$',
|
|
61
40
|
{
|
|
62
|
-
message: 'Expected custom property name to be kebab-case'
|
|
63
|
-
}
|
|
41
|
+
message: 'Expected custom property name to be kebab-case'
|
|
42
|
+
}
|
|
64
43
|
],
|
|
65
44
|
'declaration-block-no-redundant-longhand-properties': null,
|
|
66
45
|
'declaration-block-no-shorthand-property-overrides': null,
|
|
@@ -128,20 +107,21 @@ module.exports = {
|
|
|
128
107
|
'selector-class-pattern': [
|
|
129
108
|
'^([a-z][a-zA-Z0-9]*)([-_]*[a-zA-Z0-9]+)*$',
|
|
130
109
|
{
|
|
131
|
-
|
|
110
|
+
// eslint-disable-next-line max-len
|
|
111
|
+
message: 'Selector can contain only hyphens or underscores for word separators (selector-name, selector-name__element)'
|
|
132
112
|
}
|
|
133
113
|
],
|
|
134
114
|
'selector-id-pattern': [
|
|
135
115
|
'^([a-z][a-z0-9]*)([-_]?[a-z0-9]+)*$',
|
|
136
116
|
{
|
|
137
|
-
message: 'Id should be written in lowercase with hyphens or underscores (id-name, id_name)'
|
|
138
|
-
}
|
|
117
|
+
message: 'Id should be written in lowercase with hyphens or underscores (id-name, id_name)'
|
|
118
|
+
}
|
|
139
119
|
],
|
|
140
120
|
'keyframes-name-pattern': [
|
|
141
121
|
'^([\\#\\{\\$]*[a-z][a-z0-9\\}]*)(-[\\#\\$\\{a-z0-9\\}]+)*$',
|
|
142
122
|
{
|
|
143
|
-
message: 'Expected keyframe name to be kebab-case'
|
|
144
|
-
}
|
|
123
|
+
message: 'Expected keyframe name to be kebab-case'
|
|
124
|
+
}
|
|
145
125
|
],
|
|
146
126
|
'shorthand-property-no-redundant-values': true,
|
|
147
127
|
'string-quotes': 'single',
|
|
@@ -160,16 +140,16 @@ module.exports = {
|
|
|
160
140
|
'scss/at-function-parentheses-space-before': 'never',
|
|
161
141
|
'scss/at-if-closing-brace-space-after': 'always-intermediate',
|
|
162
142
|
'scss/at-mixin-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
|
|
163
|
-
'scss/at-rule-no-unknown': true,
|
|
164
|
-
'scss/comment-no-empty': true,
|
|
165
143
|
'scss/declaration-nested-properties': 'never',
|
|
166
144
|
'scss/dollar-variable-colon-space-after': 'always-single-line',
|
|
167
145
|
'scss/dollar-variable-colon-space-before': 'never',
|
|
168
146
|
'scss/dollar-variable-pattern': '^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
|
|
169
147
|
'scss/double-slash-comment-inline': 'never',
|
|
170
|
-
'scss/function-quote-no-quoted-strings-inside': true,
|
|
171
148
|
'scss/selector-no-redundant-nesting-selector': true,
|
|
172
|
-
|
|
149
|
+
// Disabled due to scss variable might have a long name
|
|
150
|
+
'scss/operator-no-newline-after': null,
|
|
151
|
+
// Disabled due to scss variable might have a long name
|
|
152
|
+
'scss/operator-no-newline-before': null,
|
|
173
153
|
'scale-unlimited/declaration-strict-value': [
|
|
174
154
|
[
|
|
175
155
|
'background-color',
|
package/package.json
CHANGED
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
"name": "@oroinc/oro-stylelint-config",
|
|
3
3
|
"author": "Oro, Inc (https://www.oroinc.com)",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "5.1.0-
|
|
5
|
+
"version": "5.1.0-alpha5",
|
|
6
6
|
"description": "Stylelint config used by ORO",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"index.js"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"stylelint
|
|
14
|
-
"stylelint-
|
|
15
|
-
"stylelint-
|
|
16
|
-
"
|
|
17
|
-
"postcss-scss": "^4.0.3"
|
|
12
|
+
"postcss": "^8.4.19",
|
|
13
|
+
"stylelint": "^14.16.0",
|
|
14
|
+
"stylelint-config-standard": "^29.0.0",
|
|
15
|
+
"stylelint-declaration-strict-value": "^1.9.1",
|
|
16
|
+
"stylelint-config-recommended-scss": "^8.0.0"
|
|
18
17
|
}
|
|
19
18
|
}
|