@itcase/lint 1.1.74 → 1.1.78
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/dist/eslint/customPlugins/dataTestIdPlugin/constants.d.ts +33 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/example.d.ts +1 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/extra.d.ts +12 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/plugin.d.ts +40 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/rule.d.ts +5 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/rule.test.d.ts +1 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/ruleVisitors.d.ts +3 -0
- package/dist/eslint/customPlugins/dataTestIdPlugin/utils.d.ts +18 -0
- package/dist/eslint/index.d.ts +2 -0
- package/dist/eslint/mobx/index.d.ts +16 -0
- package/dist/eslint/mobx.js +20 -0
- package/dist/eslint/perfectionist/index.d.ts +11 -0
- package/dist/eslint/perfectionist/sort/customGroup.d.ts +105 -0
- package/dist/eslint/perfectionist/sort/props.d.ts +2 -0
- package/dist/eslint/perfectionist/sortClasses.d.ts +10 -0
- package/dist/eslint/perfectionist/sortEnums.d.ts +5 -0
- package/dist/eslint/perfectionist/sortExports.d.ts +15 -0
- package/dist/eslint/perfectionist/sortInterfaces.d.ts +10 -0
- package/dist/eslint/perfectionist/sortIntersectionTypes.d.ts +5 -0
- package/dist/eslint/perfectionist/sortJSXProps.d.ts +10 -0
- package/dist/eslint/perfectionist/sortMaps.d.ts +5 -0
- package/dist/eslint/perfectionist/sortNamedExports.d.ts +16 -0
- package/dist/eslint/perfectionist/sortObjectTypes.d.ts +10 -0
- package/dist/eslint/perfectionist/sortObjects.d.ts +23 -0
- package/dist/eslint/perfectionist/sortUnionTypes.d.ts +6 -0
- package/dist/eslint/perfectionist.js +30 -0
- package/dist/eslint/react-native.js +22 -0
- package/dist/eslint/storybook/index.d.ts +408 -0
- package/dist/eslint/storybook.js +10 -0
- package/dist/eslint/utils.d.ts +3 -0
- package/dist/eslint.js +342 -0
- package/dist/prettier/index.d.ts +15 -0
- package/dist/prettier/react-native/index.d.ts +9 -0
- package/dist/prettier/react-native.js +68 -0
- package/dist/prettier.js +34 -0
- package/dist/sortUnionTypes_rTLrktP3.js +619 -0
- package/dist/stylelint/index.d.ts +85 -0
- package/dist/stylelint.js +249 -0
- package/package.json +44 -18
- package/eslint/index.js +0 -108
- package/eslint/mobx/index.js +0 -18
- package/eslint/perfectionist/index.js +0 -11
- package/eslint/perfectionist/sort/customGroup.js +0 -118
- package/eslint/perfectionist/sort/props.js +0 -355
- package/eslint/perfectionist/sortClasses.js +0 -28
- package/eslint/perfectionist/sortEnums.js +0 -3
- package/eslint/perfectionist/sortExports.js +0 -17
- package/eslint/perfectionist/sortInterfaces.js +0 -38
- package/eslint/perfectionist/sortIntersectionTypes.js +0 -3
- package/eslint/perfectionist/sortJSXProps.js +0 -30
- package/eslint/perfectionist/sortMaps.js +0 -3
- package/eslint/perfectionist/sortNamedExports.js +0 -18
- package/eslint/perfectionist/sortObjectTypes.js +0 -32
- package/eslint/perfectionist/sortObjects.js +0 -44
- package/eslint/perfectionist/sortUnionTypes.js +0 -22
- package/eslint/react-native/index.js +0 -20
- package/eslint/storybook/index.js +0 -8
- package/eslint/utils.js +0 -25
- package/prettier/index.js +0 -32
- package/prettier/react-native/index.js +0 -66
- package/stylelint/index.js +0 -248
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @see https://prettier.io/docs/configuration.html
|
|
3
|
-
* @type {import("prettier").Config}
|
|
4
|
-
*/
|
|
5
|
-
export default {
|
|
6
|
-
importOrder: [
|
|
7
|
-
'^react$',
|
|
8
|
-
'^react-native$',
|
|
9
|
-
'',
|
|
10
|
-
'^@expo$',
|
|
11
|
-
'^@expo/(.*)$',
|
|
12
|
-
'^expo$',
|
|
13
|
-
'^expo-(.*)$',
|
|
14
|
-
'',
|
|
15
|
-
'^mobx$',
|
|
16
|
-
'^mobx-react-lite$',
|
|
17
|
-
'^mobx-persist-store$',
|
|
18
|
-
'',
|
|
19
|
-
'^@react-navigation/(.*)$',
|
|
20
|
-
'^@react-native-community/(.*)$',
|
|
21
|
-
'^react-native-(.*)$',
|
|
22
|
-
'',
|
|
23
|
-
'^@itcase/(.*)$',
|
|
24
|
-
'',
|
|
25
|
-
'<THIRD_PARTY_MODULES>',
|
|
26
|
-
'',
|
|
27
|
-
'^src/enums$',
|
|
28
|
-
'^src/enums/(.*)$',
|
|
29
|
-
'^src/interfaces$',
|
|
30
|
-
'^src/interfaces/(.*)$',
|
|
31
|
-
'^src/swagger$',
|
|
32
|
-
'^src/swagger/(.*)$',
|
|
33
|
-
'^src/constants$',
|
|
34
|
-
'^src/constants/(.*)$',
|
|
35
|
-
'^src/config$',
|
|
36
|
-
'^src/config/(.*)$',
|
|
37
|
-
'^src/modules$',
|
|
38
|
-
'^src/modules/(.*)$',
|
|
39
|
-
'^src/providers$',
|
|
40
|
-
'^src/providers/(.*)$',
|
|
41
|
-
'^src/navigation$',
|
|
42
|
-
'^src/navigation/(.*)$',
|
|
43
|
-
'^src/dictionaries$',
|
|
44
|
-
'^src/dictionaries/(.*)$',
|
|
45
|
-
'^src/forms$',
|
|
46
|
-
'^src/forms/(.*)$',
|
|
47
|
-
'^src/stores$',
|
|
48
|
-
'^src/stores/(.*)$',
|
|
49
|
-
'^src/screens$',
|
|
50
|
-
'^src/screens/(.*)$',
|
|
51
|
-
'^src/components$',
|
|
52
|
-
'^src/components/(.*)$',
|
|
53
|
-
'^src/screenCompoments$',
|
|
54
|
-
'^src/screenCompoments/(.*)$',
|
|
55
|
-
'^src/hooks$',
|
|
56
|
-
'^src/hooks/(.*)$',
|
|
57
|
-
'^src/utils$',
|
|
58
|
-
'^src/utils/(.*)$',
|
|
59
|
-
'^src/styles$',
|
|
60
|
-
'^src/styles/(.*)$',
|
|
61
|
-
'',
|
|
62
|
-
'^../(.*)$',
|
|
63
|
-
'^./(.*)$',
|
|
64
|
-
],
|
|
65
|
-
printWidth: 100,
|
|
66
|
-
}
|
package/stylelint/index.js
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
|
|
3
|
-
ignoreFiles: [
|
|
4
|
-
'**/__*.css',
|
|
5
|
-
'**/import.css',
|
|
6
|
-
'**/vendor/**/*.css',
|
|
7
|
-
'**/vendor/*.css',
|
|
8
|
-
'__*.css',
|
|
9
|
-
'./**/*.ts',
|
|
10
|
-
'./**/*.tsx',
|
|
11
|
-
'./**/*.js',
|
|
12
|
-
'./**/*.mjs',
|
|
13
|
-
'ios/**/*',
|
|
14
|
-
'android/**/*',
|
|
15
|
-
],
|
|
16
|
-
plugins: [
|
|
17
|
-
'stylelint-prettier',
|
|
18
|
-
'stylelint-order',
|
|
19
|
-
'stylelint-no-unsupported-browser-features',
|
|
20
|
-
],
|
|
21
|
-
rules: {
|
|
22
|
-
'prettier/prettier': true,
|
|
23
|
-
'plugin/no-unsupported-browser-features': [
|
|
24
|
-
true,
|
|
25
|
-
{
|
|
26
|
-
ignore: ['css-nesting', 'prefers-color-scheme'],
|
|
27
|
-
severity: 'warning',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'at-rule-empty-line-before': [
|
|
31
|
-
'always',
|
|
32
|
-
{
|
|
33
|
-
except: ['inside-block'],
|
|
34
|
-
ignore: [
|
|
35
|
-
'after-comment',
|
|
36
|
-
'first-nested',
|
|
37
|
-
'blockless-after-same-name-blockless',
|
|
38
|
-
'blockless-after-blockless',
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
'alpha-value-notation': [
|
|
43
|
-
'number',
|
|
44
|
-
{
|
|
45
|
-
exceptProperties: ['opacity'],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
'selector-nested-pattern': '&_*',
|
|
49
|
-
'selector-class-pattern':
|
|
50
|
-
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
|
|
51
|
-
'custom-property-empty-line-before': null,
|
|
52
|
-
'custom-property-pattern': '[a-z].*',
|
|
53
|
-
'block-no-empty': null,
|
|
54
|
-
'color-function-notation': 'legacy',
|
|
55
|
-
'declaration-empty-line-before': 'never',
|
|
56
|
-
'function-url-quotes': 'always',
|
|
57
|
-
'hue-degree-notation': 'number',
|
|
58
|
-
'import-notation': 'string',
|
|
59
|
-
'max-nesting-depth': 20,
|
|
60
|
-
'no-descending-specificity': null,
|
|
61
|
-
'property-disallowed-list': ['/^margin-/', '/^padding-/'],
|
|
62
|
-
'property-no-unknown': [
|
|
63
|
-
true,
|
|
64
|
-
{
|
|
65
|
-
ignoreProperties: [
|
|
66
|
-
'letter-spacing-range',
|
|
67
|
-
'aspect-ratio',
|
|
68
|
-
'font-range',
|
|
69
|
-
'line-height-range',
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'selector-type-no-unknown': [
|
|
74
|
-
true,
|
|
75
|
-
{
|
|
76
|
-
ignoreTypes: ['/^/'],
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
'shorthand-property-no-redundant-values': null,
|
|
80
|
-
'order/order': [
|
|
81
|
-
[
|
|
82
|
-
'declarations',
|
|
83
|
-
{
|
|
84
|
-
type: 'at-rule',
|
|
85
|
-
name: 'extend',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
type: 'at-rule',
|
|
89
|
-
name: 'mixin',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: 'at-rule',
|
|
93
|
-
name: 'media',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
type: 'rule',
|
|
97
|
-
selector: '^&::(before|after)',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
type: 'rule',
|
|
101
|
-
selector: '^&:\\w',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: 'rule',
|
|
105
|
-
selector: '^&_',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: 'rule',
|
|
109
|
-
selector: '^.',
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
{
|
|
113
|
-
unspecified: 'bottom',
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
'order/properties-order': [
|
|
117
|
-
[
|
|
118
|
-
'width',
|
|
119
|
-
'height',
|
|
120
|
-
'min-width',
|
|
121
|
-
'min-height',
|
|
122
|
-
'max-width',
|
|
123
|
-
'max-height',
|
|
124
|
-
'aspect-ratio',
|
|
125
|
-
'font',
|
|
126
|
-
'font-size',
|
|
127
|
-
'font-range',
|
|
128
|
-
'font-weight',
|
|
129
|
-
'color',
|
|
130
|
-
'text-shadow',
|
|
131
|
-
'text-decoration',
|
|
132
|
-
'text-transform',
|
|
133
|
-
'text-align',
|
|
134
|
-
'text-rendering',
|
|
135
|
-
'white-space',
|
|
136
|
-
'line-height',
|
|
137
|
-
'line-height-range',
|
|
138
|
-
'letter-spacing',
|
|
139
|
-
'background',
|
|
140
|
-
'background-position',
|
|
141
|
-
'background-repeat',
|
|
142
|
-
'background-size',
|
|
143
|
-
'padding',
|
|
144
|
-
'margin',
|
|
145
|
-
'border',
|
|
146
|
-
'border-width',
|
|
147
|
-
'border-color',
|
|
148
|
-
'border-style',
|
|
149
|
-
'border-radius',
|
|
150
|
-
'border-left',
|
|
151
|
-
'border-top',
|
|
152
|
-
'border-right',
|
|
153
|
-
'border-bottom',
|
|
154
|
-
'float',
|
|
155
|
-
'clear',
|
|
156
|
-
'position',
|
|
157
|
-
'overflow',
|
|
158
|
-
'content',
|
|
159
|
-
'display',
|
|
160
|
-
'flex',
|
|
161
|
-
'flex-direction',
|
|
162
|
-
'flex-wrap',
|
|
163
|
-
'flex-flow',
|
|
164
|
-
'order',
|
|
165
|
-
'justify-content',
|
|
166
|
-
'align-items',
|
|
167
|
-
'align-self',
|
|
168
|
-
'align-content',
|
|
169
|
-
'flex-grow',
|
|
170
|
-
'flex-shrink',
|
|
171
|
-
'flex-basis',
|
|
172
|
-
'visibility',
|
|
173
|
-
'box-sizing',
|
|
174
|
-
'box-shadow',
|
|
175
|
-
'left',
|
|
176
|
-
'top',
|
|
177
|
-
'right',
|
|
178
|
-
'bottom',
|
|
179
|
-
'vertical-align',
|
|
180
|
-
'z-index',
|
|
181
|
-
'transform',
|
|
182
|
-
'transition',
|
|
183
|
-
'animation',
|
|
184
|
-
'animation-delay',
|
|
185
|
-
'animation-direction',
|
|
186
|
-
'animation-duration',
|
|
187
|
-
'animation-fill-mode',
|
|
188
|
-
'animation-iteration-count',
|
|
189
|
-
'animation-name',
|
|
190
|
-
'animation-play-state',
|
|
191
|
-
'animation-timing-function',
|
|
192
|
-
'opacity',
|
|
193
|
-
'cursor',
|
|
194
|
-
],
|
|
195
|
-
],
|
|
196
|
-
'comment-empty-line-before': [
|
|
197
|
-
'always',
|
|
198
|
-
{
|
|
199
|
-
except: ['first-nested'],
|
|
200
|
-
ignore: ['after-comment'],
|
|
201
|
-
},
|
|
202
|
-
],
|
|
203
|
-
'rule-empty-line-before': [
|
|
204
|
-
'always',
|
|
205
|
-
{
|
|
206
|
-
except: ['first-nested', 'inside-block-and-after-rule'],
|
|
207
|
-
ignore: ['inside-block'],
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
|
-
'keyframes-name-pattern': [
|
|
211
|
-
'^([a-z]+)([A-Z]?[a-z]+)+$',
|
|
212
|
-
{ message: 'Expected keyframe name to be camelCase' },
|
|
213
|
-
],
|
|
214
|
-
'declaration-property-value-no-unknown': [
|
|
215
|
-
true,
|
|
216
|
-
{
|
|
217
|
-
ignoreProperties: {
|
|
218
|
-
'/^padding-/': '/.+/',
|
|
219
|
-
'/^margin-/': '/.+/',
|
|
220
|
-
'/^border-/': '/.+/',
|
|
221
|
-
'/-gap$/': '/.+/',
|
|
222
|
-
padding: '/.+/',
|
|
223
|
-
margin: '/.+/',
|
|
224
|
-
border: '/.+/',
|
|
225
|
-
top: '/.+/',
|
|
226
|
-
left: '/.+/',
|
|
227
|
-
right: '/.+/',
|
|
228
|
-
bottom: '/.+/',
|
|
229
|
-
gap: '/.+/',
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
'function-no-unknown': [true, { ignoreFunctions: ['$', 'fluid'] }],
|
|
234
|
-
'at-rule-no-unknown': [
|
|
235
|
-
true,
|
|
236
|
-
{
|
|
237
|
-
ignoreAtRules: [
|
|
238
|
-
'import-glob',
|
|
239
|
-
'for',
|
|
240
|
-
'each',
|
|
241
|
-
'mixin',
|
|
242
|
-
'extend',
|
|
243
|
-
'define-mixin',
|
|
244
|
-
],
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
}
|