@itcase/lint 1.1.8 → 1.1.10
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.
|
@@ -22,10 +22,10 @@ const customGroups = {
|
|
|
22
22
|
tertiary: '^.*Tertiary.*',
|
|
23
23
|
quaternary: '^.*Quaternary.*',
|
|
24
24
|
surface: '^.*Surface.*',
|
|
25
|
-
error: '
|
|
25
|
+
error: '^(?!on).*Error.*',
|
|
26
26
|
warning: '^.*Warning.*',
|
|
27
27
|
info: '^.*Info.*',
|
|
28
|
-
success: '
|
|
28
|
+
success: '^(?!on).*Success.*',
|
|
29
29
|
danger: '^.*Danger.*',
|
|
30
30
|
disabled: '^.*Disabled.*',
|
|
31
31
|
|
|
@@ -46,6 +46,7 @@ const customGroups = {
|
|
|
46
46
|
isTablet: '^isTablet.*',
|
|
47
47
|
isDesktop: '^isDesktop.*',
|
|
48
48
|
|
|
49
|
+
message: '^message.*',
|
|
49
50
|
close: '^close.*',
|
|
50
51
|
open: '^open.*',
|
|
51
52
|
is: '^is.*',
|
|
@@ -88,6 +88,7 @@ const props = [
|
|
|
88
88
|
'credentials',
|
|
89
89
|
'params',
|
|
90
90
|
'code',
|
|
91
|
+
'errors',
|
|
91
92
|
|
|
92
93
|
// Indents and margins
|
|
93
94
|
'margin',
|
|
@@ -211,6 +212,11 @@ const props = [
|
|
|
211
212
|
'rotateY',
|
|
212
213
|
'perspective',
|
|
213
214
|
'cursor',
|
|
215
|
+
'firstName',
|
|
216
|
+
'secondName',
|
|
217
|
+
'lastName',
|
|
218
|
+
'email',
|
|
219
|
+
'phone',
|
|
214
220
|
'component',
|
|
215
221
|
'args',
|
|
216
222
|
'globals',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"eslint/react-native",
|
|
25
25
|
"eslint/storybook",
|
|
26
26
|
"prettier",
|
|
27
|
+
"prettier/react-native",
|
|
27
28
|
"README.md",
|
|
28
29
|
"storybook",
|
|
29
30
|
"stylelint"
|
|
@@ -33,49 +34,49 @@
|
|
|
33
34
|
"registry": "https://registry.npmjs.org/"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@babel/eslint-parser": "^7.27.
|
|
37
|
-
"@babel/eslint-plugin": "^7.27.
|
|
38
|
-
"@eslint/compat": "^1.2.
|
|
39
|
-
"@eslint/js": "^9.
|
|
37
|
+
"@babel/eslint-parser": "^7.27.5",
|
|
38
|
+
"@babel/eslint-plugin": "^7.27.1",
|
|
39
|
+
"@eslint/compat": "^1.2.9",
|
|
40
|
+
"@eslint/js": "^9.28.0",
|
|
40
41
|
"@eslint/markdown": "^6.4.0",
|
|
41
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.
|
|
42
|
-
"@itcase/config": "^1.0.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"eslint": "^9.
|
|
46
|
-
"eslint-config-prettier": "^10.1.
|
|
47
|
-
"eslint-plugin-html": "^8.1.
|
|
42
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
|
|
43
|
+
"@itcase/config": "^1.0.47",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
45
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
46
|
+
"eslint": "^9.28.0",
|
|
47
|
+
"eslint-config-prettier": "^10.1.5",
|
|
48
|
+
"eslint-plugin-html": "^8.1.3",
|
|
48
49
|
"eslint-plugin-json": "^4.0.1",
|
|
49
50
|
"eslint-plugin-mobx": "^0.0.13",
|
|
50
|
-
"eslint-plugin-n": "^17.
|
|
51
|
+
"eslint-plugin-n": "^17.19.0",
|
|
51
52
|
"eslint-plugin-node": "^11.1.0",
|
|
52
|
-
"eslint-plugin-perfectionist": "^4.
|
|
53
|
-
"eslint-plugin-prettier": "^5.
|
|
53
|
+
"eslint-plugin-perfectionist": "^4.13.0",
|
|
54
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
54
55
|
"eslint-plugin-promise": "^7.2.1",
|
|
55
56
|
"eslint-plugin-react": "^7.37.5",
|
|
56
57
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
57
58
|
"eslint-plugin-react-native": "^5.0.0",
|
|
58
59
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
59
|
-
"eslint-plugin-storybook": "^0.
|
|
60
|
-
"expo-modules-autolinking": "^2.
|
|
61
|
-
"globals": "^16.
|
|
60
|
+
"eslint-plugin-storybook": "^9.0.4",
|
|
61
|
+
"expo-modules-autolinking": "^2.1.10",
|
|
62
|
+
"globals": "^16.2.0",
|
|
62
63
|
"prettier": "^3.5.3",
|
|
63
64
|
"stylelint-config-standard": "^38.0.0",
|
|
64
65
|
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
|
65
66
|
"stylelint-order": "^7.0.0",
|
|
66
67
|
"stylelint-prettier": "^5.0.3",
|
|
67
|
-
"typescript-eslint": "^8.
|
|
68
|
+
"typescript-eslint": "^8.33.1"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "^19.8.
|
|
71
|
-
"@commitlint/config-conventional": "^19.8.
|
|
71
|
+
"@commitlint/cli": "^19.8.1",
|
|
72
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
72
73
|
"@semantic-release/changelog": "^6.0.3",
|
|
73
74
|
"@semantic-release/git": "^10.0.1",
|
|
74
75
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
75
|
-
"conventional-changelog-conventionalcommits": "^
|
|
76
|
+
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
76
77
|
"husky": "^9.1.7",
|
|
77
|
-
"lint-staged": "^
|
|
78
|
-
"semantic-release": "^24.2.
|
|
78
|
+
"lint-staged": "^16.1.0",
|
|
79
|
+
"semantic-release": "^24.2.5",
|
|
79
80
|
"typescript": "^5.8.3"
|
|
80
81
|
}
|
|
81
82
|
}
|
package/prettier/index.js
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
}
|