@oroinc/oro-stylelint-config 5.1.0-alpha4 → 5.1.0-dev002

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 (2) hide show
  1. package/index.js +51 -72
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
  /* eslint-disable quote-props */
3
3
 
4
4
  module.exports = {
5
- 'plugins': ['stylelint-scss', 'stylelint-declaration-strict-value'],
6
- 'extends': ['stylelint-config-standard'],
7
- 'customSyntax': 'postcss-scss',
5
+ 'plugins': ['stylelint-scss', 'stylelint-declaration-strict-value', 'stylelint-stylistic'],
6
+ 'extends': ['stylelint-stylistic/config', 'stylelint-config-recommended-scss'],
8
7
  'rules': {
9
8
  'at-rule-empty-line-before': [
10
9
  'always',
@@ -22,36 +21,7 @@ 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
- 'block-closing-brace-newline-after': [
47
- 'always',
48
- {
49
- 'ignoreAtRules': [
50
- 'else',
51
- 'if'
52
- ]
53
- }
54
- ],
55
25
  'color-named': 'never',
56
26
  'comment-word-disallowed-list': [
57
27
  '/todo/i'
@@ -59,8 +29,8 @@ module.exports = {
59
29
  'custom-property-pattern': [
60
30
  '^([\\#\\{\\$]*[a-z][a-z0-9\\}]*)(-[\\#\\$\\{a-z0-9\\}]+)*$',
61
31
  {
62
- message: 'Expected custom property name to be kebab-case',
63
- },
32
+ message: 'Expected custom property name to be kebab-case'
33
+ }
64
34
  ],
65
35
  'declaration-block-no-redundant-longhand-properties': null,
66
36
  'declaration-block-no-shorthand-property-overrides': null,
@@ -77,16 +47,6 @@ module.exports = {
77
47
  }
78
48
  ],
79
49
  'declaration-no-important': true,
80
- 'function-comma-newline-after': null,
81
- 'indentation': [
82
- 4,
83
- {
84
- 'indentClosingBrace': false,
85
- 'ignore': [
86
- 'value'
87
- ]
88
- }
89
- ],
90
50
  'max-nesting-depth': [
91
51
  5,
92
52
  {
@@ -101,26 +61,8 @@ module.exports = {
101
61
  ]
102
62
  }
103
63
  ],
104
- 'max-line-length': [
105
- 120,
106
- {
107
- 'ignore': [
108
- 'comments'
109
- ]
110
- }
111
- ],
112
64
  'media-feature-name-no-vendor-prefix': true,
113
- 'no-empty-first-line': true,
114
- 'no-eol-whitespace': [
115
- true,
116
- {
117
- 'ignore': [
118
- 'empty-lines'
119
- ]
120
- }
121
- ],
122
65
  'no-invalid-position-at-import-rule': null,
123
- 'number-leading-zero': 'never',
124
66
  'property-no-vendor-prefix': true,
125
67
  'selector-max-compound-selectors': 4,
126
68
  'selector-max-id': 1,
@@ -128,23 +70,23 @@ module.exports = {
128
70
  'selector-class-pattern': [
129
71
  '^([a-z][a-zA-Z0-9]*)([-_]*[a-zA-Z0-9]+)*$',
130
72
  {
131
- message: 'Selector can contain only hyphens or underscores for word separators (selector-name, selector-name__element)',
73
+ // eslint-disable-next-line max-len
74
+ message: 'Selector can contain only hyphens or underscores for word separators (selector-name, selector-name__element)'
132
75
  }
133
76
  ],
134
77
  'selector-id-pattern': [
135
78
  '^([a-z][a-z0-9]*)([-_]?[a-z0-9]+)*$',
136
79
  {
137
- message: 'Id should be written in lowercase with hyphens or underscores (id-name, id_name)',
138
- },
80
+ message: 'Id should be written in lowercase with hyphens or underscores (id-name, id_name)'
81
+ }
139
82
  ],
140
83
  'keyframes-name-pattern': [
141
84
  '^([\\#\\{\\$]*[a-z][a-z0-9\\}]*)(-[\\#\\$\\{a-z0-9\\}]+)*$',
142
85
  {
143
- message: 'Expected keyframe name to be kebab-case',
144
- },
86
+ message: 'Expected keyframe name to be kebab-case'
87
+ }
145
88
  ],
146
89
  'shorthand-property-no-redundant-values': true,
147
- 'string-quotes': 'single',
148
90
  'value-no-vendor-prefix': [
149
91
  true,
150
92
  {
@@ -154,22 +96,59 @@ module.exports = {
154
96
  }
155
97
  ],
156
98
  'value-list-comma-newline-after': null,
99
+ 'stylistic/block-closing-brace-newline-after': [
100
+ 'always',
101
+ {
102
+ 'ignoreAtRules': [
103
+ 'else',
104
+ 'if'
105
+ ]
106
+ }
107
+ ],
108
+ 'stylistic/max-line-length': [
109
+ 120,
110
+ {
111
+ 'ignore': [
112
+ 'comments'
113
+ ]
114
+ }
115
+ ],
116
+ 'stylistic/no-eol-whitespace': [
117
+ true,
118
+ {
119
+ 'ignore': [
120
+ 'empty-lines'
121
+ ]
122
+ }
123
+ ],
124
+ 'stylistic/number-leading-zero': 'never',
125
+ 'stylistic/string-quotes': 'single',
126
+ 'stylistic/indentation': [
127
+ 4,
128
+ {
129
+ 'indentClosingBrace': false,
130
+ 'ignore': [
131
+ 'value'
132
+ ]
133
+ }
134
+ ],
135
+ 'stylistic/function-comma-newline-after': null,
157
136
  'scss/at-else-if-parentheses-space-before': 'always',
158
137
  'scss/at-else-empty-line-before': 'never',
159
138
  'scss/at-function-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
160
139
  'scss/at-function-parentheses-space-before': 'never',
161
140
  'scss/at-if-closing-brace-space-after': 'always-intermediate',
162
141
  '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
142
  'scss/declaration-nested-properties': 'never',
166
143
  'scss/dollar-variable-colon-space-after': 'always-single-line',
167
144
  'scss/dollar-variable-colon-space-before': 'never',
168
145
  'scss/dollar-variable-pattern': '^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
169
146
  'scss/double-slash-comment-inline': 'never',
170
- 'scss/function-quote-no-quoted-strings-inside': true,
171
147
  'scss/selector-no-redundant-nesting-selector': true,
172
- 'scss/no-duplicate-mixins': true,
148
+ // Disabled due to scss variable might have a long name
149
+ 'scss/operator-no-newline-after': null,
150
+ // Disabled due to scss variable might have a long name
151
+ 'scss/operator-no-newline-before': null,
173
152
  'scale-unlimited/declaration-strict-value': [
174
153
  [
175
154
  'background-color',
package/package.json CHANGED
@@ -2,7 +2,7 @@
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-alpha4",
5
+ "version": "5.1.0-dev002",
6
6
  "description": "Stylelint config used by ORO",
7
7
  "main": "index.js",
8
8
  "files": [
@@ -10,10 +10,10 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "postcss": "^8.4.19",
13
- "postcss-scss": "^4.0.6",
14
- "stylelint": "^14.16.0",
15
- "stylelint-config-standard": "^29.0.0",
13
+ "stylelint": "^15.3.0",
14
+ "stylelint-config-recommended-scss": "^9.0.1",
15
+ "stylelint-config-standard": "^31.0.0",
16
16
  "stylelint-declaration-strict-value": "^1.9.1",
17
- "stylelint-scss": "^4.3.0"
17
+ "stylelint-stylistic": "^0.4.1"
18
18
  }
19
19
  }