@itcase/lint 1.1.49 → 1.1.51

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
- SuccessMock: 'SuccessMock$',
36
- TimeoutMock: 'TimeoutMock$',
34
+ ErrorNetworkMock: 'ErrorNetwork$',
37
35
  ErrorRequestMock: 'ErrorRequestMock$',
36
+ SuccessMock: 'SuccessMock$',
38
37
 
39
- hasAccent: '^.(?!is|on).*(A|a)ccent.*',
40
- hasPrimary: '^.(?!is|on).*(P|p)rimary.*',
41
- hasSecondary: '^(?!is|on).*(S|s)econdary.*',
42
- hasTertiary: '^(?!is|on).*(T|t)ertiary.*',
43
- hasQuaternary: '^(?!is|on).*(Q|q)uaternary.*',
44
- hasSurface: '^(?!is|on).*(S|s)urface.*',
45
- hasError: '^(?!is|on).*(E|e)rror.*',
46
- hasWarning: '^(?!is|on).*(W|w)arning.*',
47
- hasRequire: '^(?!is|on).*(T|t)ertiary.*',
48
- hasSuccess: '^(?!is|on)(?!on).*(S|s)uccess.*',
49
- hasDanger: '^(?!is|on).*(D|d)anger.*',
50
- hasInfo: '^(?!is|on).*(I|i)nfo.*',
51
- hasDisabled: '^(?!is|on).*(D|d)isabled.*',
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: '^.*AccentMuted.*',
54
- hasPrimaryMuted: '^.*PrimaryMuted.*',
55
- hasSecondaryMuted: '^.*SecondaryMuted.*',
56
- hasTertiaryMuted: '^.*TertiaryMuted.*',
57
- hasQuaternaryMuted: '^.*QuaternaryMuted.*',
58
- hasSurfaceMuted: '^.*SurfaceMuted.*',
59
- hasErrorMuted: '^(?!on).*ErrorMuted.*',
60
- hasWarningMuted: '^.*WarningMuted.*',
61
- hasSuccessMuted: '^(?!on).*SuccessMuted.*',
62
- hasDangerMuted: '^.*DangerMuted.*',
63
- hasInfoMuted: '^.*InfoMuted.*',
64
- hasDisabledMuted: '^.*DisabledMuted.*',
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.*',
@@ -1,5 +1,4 @@
1
1
  const props = [
2
- 'UPPERCASE',
3
2
  'id',
4
3
  'appearance',
5
4
  'className',
@@ -137,6 +136,8 @@ const props = [
137
136
  'quaternary',
138
137
  'surface',
139
138
  'error',
139
+ 'errorRequest',
140
+ 'errorNetwork',
140
141
  'warning',
141
142
  'require',
142
143
  'success',
@@ -349,9 +350,9 @@ const props = [
349
350
  'DefaultMock',
350
351
  'LoadingMock',
351
352
  'ErrorMock',
352
- 'SuccessMock',
353
- 'TimeoutMock',
353
+ 'ErrorNetwork',
354
354
  'ErrorRequestMock',
355
+ 'SuccessMock',
355
356
  ]
356
357
 
357
358
  export { props }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
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.0",
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.34.0",
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.42.0",
44
- "@typescript-eslint/parser": "^8.42.0",
45
- "eslint": "^9.34.0",
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.4",
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,7 +66,7 @@
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.42.0"
69
+ "typescript-eslint": "^8.43.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@commitlint/cli": "^19.8.1",
@@ -74,7 +74,7 @@
74
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.3",
77
+ "@semantic-release/release-notes-generator": "14.1.0",
78
78
  "conventional-changelog-conventionalcommits": "^9.1.0",
79
79
  "husky": "^9.1.7",
80
80
  "lint-staged": "^16.1.6",