@itcase/lint 1.1.30 → 1.1.32
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/eslint/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import eslintPerfectionist from 'eslint-plugin-perfectionist'
|
|
|
7
7
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
8
8
|
import eslintReact from 'eslint-plugin-react'
|
|
9
9
|
import eslintReactHooks from 'eslint-plugin-react-hooks'
|
|
10
|
-
import eslintStorybook from 'eslint-plugin-storybook'
|
|
10
|
+
//import eslintStorybook from 'eslint-plugin-storybook'
|
|
11
11
|
import globals from 'globals'
|
|
12
12
|
import eslintTypeScript from 'typescript-eslint'
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
const eslintConfig = [
|
|
26
26
|
eslintJs.configs.recommended,
|
|
27
27
|
...eslintTypeScript.configs.recommended,
|
|
28
|
-
|
|
28
|
+
//...eslintStorybook.configs['flat/recommended'],
|
|
29
29
|
eslintPluginPrettierRecommended,
|
|
30
30
|
|
|
31
31
|
{
|
|
@@ -27,8 +27,10 @@ const customGroups = {
|
|
|
27
27
|
hasTertiary: '^.*(T|t)ertiary.*',
|
|
28
28
|
hasQuaternary: '^.*(Q|q)uaternary.*',
|
|
29
29
|
hasSurface: '^.*(S|s)urface.*',
|
|
30
|
+
hasDefault: '^.*(A|a)ccent.*',
|
|
30
31
|
hasError: '^(?!on).*(E|e)rror.*',
|
|
31
32
|
hasWarning: '^.*(W|w)arning.*',
|
|
33
|
+
hasRequire: '^.*(T|t)ertiary.*',
|
|
32
34
|
hasSuccess: '^(?!on).*(S|s)uccess.*',
|
|
33
35
|
hasDanger: '^.*(D|d)anger.*',
|
|
34
36
|
hasInfo: '^.*(I|i)nfo.*',
|
|
@@ -58,13 +58,13 @@ const props = [
|
|
|
58
58
|
|
|
59
59
|
'circular',
|
|
60
60
|
'rounded',
|
|
61
|
-
'roundedXXS',
|
|
62
|
-
'roundedXS',
|
|
63
|
-
'roundedS',
|
|
64
|
-
'roundedM',
|
|
65
|
-
'roundedL',
|
|
66
|
-
'roundedXL',
|
|
67
61
|
'roundedXXL',
|
|
62
|
+
'roundedXL',
|
|
63
|
+
'roundedL',
|
|
64
|
+
'roundedM',
|
|
65
|
+
'roundedS',
|
|
66
|
+
'roundedXS',
|
|
67
|
+
'roundedXXS',
|
|
68
68
|
|
|
69
69
|
'position',
|
|
70
70
|
'top',
|
|
@@ -194,7 +194,6 @@ const props = [
|
|
|
194
194
|
'elevation',
|
|
195
195
|
|
|
196
196
|
// Color and background
|
|
197
|
-
// Цвет и фон
|
|
198
197
|
'backgroundColor',
|
|
199
198
|
'opacity',
|
|
200
199
|
|
|
@@ -214,23 +213,28 @@ const props = [
|
|
|
214
213
|
'tertiary',
|
|
215
214
|
'quaternary',
|
|
216
215
|
'surface',
|
|
216
|
+
'default',
|
|
217
217
|
'error',
|
|
218
218
|
'warning',
|
|
219
|
-
'
|
|
219
|
+
'require',
|
|
220
220
|
'success',
|
|
221
221
|
'danger',
|
|
222
|
+
'info',
|
|
222
223
|
'disabled',
|
|
224
|
+
|
|
223
225
|
'hasAccent',
|
|
224
226
|
'hasPrimary',
|
|
225
227
|
'hasSecondary',
|
|
226
228
|
'hasTertiary',
|
|
227
229
|
'hasQuaternary',
|
|
228
230
|
'hasSurface',
|
|
231
|
+
'hasDefault',
|
|
229
232
|
'hasError',
|
|
230
233
|
'hasWarning',
|
|
231
|
-
'
|
|
234
|
+
'hasRequire',
|
|
232
235
|
'hasSuccess',
|
|
233
236
|
'hasDanger',
|
|
237
|
+
'hasInfo',
|
|
234
238
|
'hasDisabled',
|
|
235
239
|
|
|
236
240
|
'hasAccentMuted',
|
|
@@ -250,8 +254,8 @@ const props = [
|
|
|
250
254
|
'custom',
|
|
251
255
|
|
|
252
256
|
// State
|
|
253
|
-
'error500',
|
|
254
257
|
'fail',
|
|
258
|
+
'error500',
|
|
255
259
|
'nothingFound',
|
|
256
260
|
'unableLoadData',
|
|
257
261
|
'refresh',
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import eslintStorybook from 'eslint-plugin-storybook'
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
plugins: { strorybook: eslintStorybook },
|
|
6
|
+
files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)'],
|
|
7
|
+
},
|
|
5
8
|
]
|