@itcase/lint 1.1.48 → 1.1.50
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const customGroups = {
|
|
2
|
-
UPPERCASE: '\\b[A-Z]+(_[A-Z]+)*\\b',
|
|
3
2
|
id: '^id$',
|
|
4
3
|
title: '^title.*',
|
|
5
4
|
subtitle: '^subtitle.*',
|
|
@@ -32,36 +31,36 @@ const customGroups = {
|
|
|
32
31
|
DefaultMock: 'DefaultMock$',
|
|
33
32
|
LoadingMock: 'LoadingMock$',
|
|
34
33
|
ErrorMock: 'ErrorMock$',
|
|
35
|
-
|
|
36
|
-
TimeoutMock: 'TimeoutMock$',
|
|
34
|
+
ErrorNetworkMock: 'ErrorNetwork$',
|
|
37
35
|
ErrorRequestMock: 'ErrorRequestMock$',
|
|
36
|
+
SuccessMock: 'SuccessMock$',
|
|
38
37
|
|
|
39
|
-
hasAccent: '^.(?!is|on)
|
|
40
|
-
hasPrimary: '^.(?!is|on)
|
|
41
|
-
hasSecondary: '^(?!is|on)
|
|
42
|
-
hasTertiary: '^(?!is|on)
|
|
43
|
-
hasQuaternary: '^(?!is|on)
|
|
44
|
-
hasSurface: '^(?!is|on)
|
|
45
|
-
hasError: '^(?!is|on)
|
|
46
|
-
hasWarning: '^(?!is|on)
|
|
47
|
-
hasRequire: '^(?!is|on)
|
|
48
|
-
hasSuccess: '^(?!is|on)(?!on)
|
|
49
|
-
hasDanger: '^(?!is|on)
|
|
50
|
-
hasInfo: '^(?!is|on)
|
|
51
|
-
hasDisabled: '^(?!is|on)
|
|
38
|
+
hasAccent: '^.(?!is|on).*\b(A|a)ccent.*\b',
|
|
39
|
+
hasPrimary: '^.(?!is|on).*\b(P|p)rimary.*\b',
|
|
40
|
+
hasSecondary: '^(?!is|on).*\b(S|s)econdary.*\b',
|
|
41
|
+
hasTertiary: '^(?!is|on).*\b(T|t)ertiary.*\b',
|
|
42
|
+
hasQuaternary: '^(?!is|on).*\b(Q|q)uaternary.*\b',
|
|
43
|
+
hasSurface: '^(?!is|on).*\b(S|s)urface.*\b',
|
|
44
|
+
hasError: '^(?!is|on).*\b(E|e)rror.*\b',
|
|
45
|
+
hasWarning: '^(?!is|on).*\b(W|w)arning.*\b',
|
|
46
|
+
hasRequire: '^(?!is|on).*\b(T|t)ertiary.*\b',
|
|
47
|
+
hasSuccess: '^(?!is|on)(?!on).*\b(S|s)uccess.*\b',
|
|
48
|
+
hasDanger: '^(?!is|on).*\b(D|d)anger.*\b',
|
|
49
|
+
hasInfo: '^(?!is|on).*\b(I|i)nfo.*\b',
|
|
50
|
+
hasDisabled: '^(?!is|on).*\b(D|d)isabled.*\b',
|
|
52
51
|
|
|
53
|
-
hasAccentMuted: '
|
|
54
|
-
hasPrimaryMuted: '
|
|
55
|
-
hasSecondaryMuted: '
|
|
56
|
-
hasTertiaryMuted: '
|
|
57
|
-
hasQuaternaryMuted: '
|
|
58
|
-
hasSurfaceMuted: '
|
|
59
|
-
hasErrorMuted: '^(?!on)
|
|
60
|
-
hasWarningMuted: '
|
|
61
|
-
hasSuccessMuted: '^(?!on)
|
|
62
|
-
hasDangerMuted: '
|
|
63
|
-
hasInfoMuted: '
|
|
64
|
-
hasDisabledMuted: '
|
|
52
|
+
hasAccentMuted: '^.*\bAccentMuted.*\b',
|
|
53
|
+
hasPrimaryMuted: '^.*\bPrimaryMuted.*\b',
|
|
54
|
+
hasSecondaryMuted: '^.*\bSecondaryMuted.*\b',
|
|
55
|
+
hasTertiaryMuted: '^.*\bTertiaryMuted.*\b',
|
|
56
|
+
hasQuaternaryMuted: '^.*\bQuaternaryMuted.*\b',
|
|
57
|
+
hasSurfaceMuted: '^.*\bSurfaceMuted.*\b',
|
|
58
|
+
hasErrorMuted: '^(?!on).*\bErrorMuted.*\b',
|
|
59
|
+
hasWarningMuted: '^.*\bWarningMuted.*\b',
|
|
60
|
+
hasSuccessMuted: '^(?!on).*\bSuccessMuted.*\b',
|
|
61
|
+
hasDangerMuted: '^.*\bDangerMuted.*\b',
|
|
62
|
+
hasInfoMuted: '^.*\bInfoMuted.*\b',
|
|
63
|
+
hasDisabledMuted: '^.*\bDisabledMuted.*\b',
|
|
65
64
|
|
|
66
65
|
min: '^min.*',
|
|
67
66
|
max: '^max.*',
|
|
@@ -83,8 +82,8 @@ const customGroups = {
|
|
|
83
82
|
message: '^message.*',
|
|
84
83
|
close: '^close.*',
|
|
85
84
|
open: '^open.*',
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
hasIs: '^is.*',
|
|
86
|
+
hasSet: '^set.*',
|
|
88
87
|
on: '^on.*',
|
|
89
88
|
onClick: '^onClick.*',
|
|
90
89
|
onSuccess: '^onSuccess.*',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const props = [
|
|
2
|
-
'UPPERCASE',
|
|
3
2
|
'id',
|
|
4
3
|
'appearance',
|
|
5
4
|
'className',
|
|
@@ -199,8 +198,6 @@ const props = [
|
|
|
199
198
|
'code',
|
|
200
199
|
'errors',
|
|
201
200
|
|
|
202
|
-
'design',
|
|
203
|
-
|
|
204
201
|
// Indents and margins
|
|
205
202
|
'margin',
|
|
206
203
|
'marginMobile',
|
|
@@ -327,31 +324,33 @@ const props = [
|
|
|
327
324
|
'tags',
|
|
328
325
|
'render',
|
|
329
326
|
'device',
|
|
327
|
+
'design',
|
|
330
328
|
'unknown',
|
|
331
329
|
'before',
|
|
332
330
|
'after',
|
|
333
331
|
'open',
|
|
334
332
|
'close',
|
|
335
|
-
'is',
|
|
336
333
|
'isActive',
|
|
337
334
|
'isChecked',
|
|
338
335
|
'isDisabled',
|
|
339
336
|
'isError',
|
|
340
337
|
'isSkeleton',
|
|
338
|
+
'hasIs',
|
|
339
|
+
'hasSet',
|
|
341
340
|
'use',
|
|
342
|
-
'on',
|
|
343
341
|
'onClick',
|
|
344
342
|
'onSuccess',
|
|
345
343
|
'onError',
|
|
344
|
+
'on',
|
|
346
345
|
'children',
|
|
347
346
|
|
|
348
347
|
// Mock
|
|
349
348
|
'DefaultMock',
|
|
350
349
|
'LoadingMock',
|
|
351
350
|
'ErrorMock',
|
|
352
|
-
'
|
|
353
|
-
'TimeoutMock',
|
|
351
|
+
'ErrorNetwork',
|
|
354
352
|
'ErrorRequestMock',
|
|
353
|
+
'SuccessMock',
|
|
355
354
|
]
|
|
356
355
|
|
|
357
356
|
export { props }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.50",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"registry": "https://registry.npmjs.org/"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@babel/eslint-parser": "^7.28.
|
|
37
|
+
"@babel/eslint-parser": "^7.28.4",
|
|
38
38
|
"@babel/eslint-plugin": "^7.27.1",
|
|
39
39
|
"@eslint/compat": "^1.3.2",
|
|
40
|
-
"@eslint/js": "^9.
|
|
40
|
+
"@eslint/js": "^9.35.0",
|
|
41
41
|
"@eslint/markdown": "^7.2.0",
|
|
42
42
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"eslint": "^9.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
45
|
+
"eslint": "^9.35.0",
|
|
46
46
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
47
47
|
"eslint-plugin-import": "^2.32.0",
|
|
48
48
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
59
59
|
"eslint-plugin-react-native": "^5.0.0",
|
|
60
60
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
61
|
-
"eslint-plugin-storybook": "^9.1.
|
|
61
|
+
"eslint-plugin-storybook": "^9.1.5",
|
|
62
62
|
"expo-modules-autolinking": "^2.1.14",
|
|
63
63
|
"globals": "^16.3.0",
|
|
64
64
|
"prettier": "^3.6.2",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
|
67
67
|
"stylelint-order": "^7.0.0",
|
|
68
68
|
"stylelint-prettier": "^5.0.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.43.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@commitlint/cli": "^19.8.1",
|
|
73
73
|
"@commitlint/config-conventional": "^19.8.1",
|
|
74
|
-
"@itcase/config": "^1.0.
|
|
74
|
+
"@itcase/config": "^1.0.57",
|
|
75
75
|
"@semantic-release/changelog": "^6.0.3",
|
|
76
76
|
"@semantic-release/git": "^10.0.1",
|
|
77
|
-
"@semantic-release/release-notes-generator": "14.0
|
|
77
|
+
"@semantic-release/release-notes-generator": "14.1.0",
|
|
78
78
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
79
79
|
"husky": "^9.1.7",
|
|
80
|
-
"lint-staged": "^16.1.
|
|
80
|
+
"lint-staged": "^16.1.6",
|
|
81
81
|
"semantic-release": "^24.2.7",
|
|
82
82
|
"typescript": "^5.9.2"
|
|
83
83
|
}
|