@itcase/lint 1.1.7 → 1.1.9

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.
@@ -41,9 +41,11 @@ const customGroups = {
41
41
  initial: '^initial.*',
42
42
  background: '^background.*',
43
43
  direction: '^direction.*',
44
+
44
45
  isMobile: '^isMobile.*',
45
46
  isTablet: '^isTablet.*',
46
47
  isDesktop: '^isDesktop.*',
48
+
47
49
  close: '^close.*',
48
50
  open: '^open.*',
49
51
  is: '^is.*',
@@ -224,10 +224,14 @@ const props = [
224
224
  'device',
225
225
  'unknown',
226
226
  'before',
227
+ 'primaryButton',
228
+ 'secondatyButton',
229
+ 'tertiaryButton',
227
230
  'after',
228
231
  'open',
229
232
  'close',
230
233
  'is',
234
+ 'isDisabled',
231
235
  'set',
232
236
  'use',
233
237
  'on',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
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"
@@ -36,35 +37,35 @@
36
37
  "@babel/eslint-parser": "^7.27.0",
37
38
  "@babel/eslint-plugin": "^7.27.0",
38
39
  "@eslint/compat": "^1.2.8",
39
- "@eslint/js": "^9.24.0",
40
- "@eslint/markdown": "^6.3.0",
40
+ "@eslint/js": "^9.25.1",
41
+ "@eslint/markdown": "^6.4.0",
41
42
  "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
42
- "@itcase/config": "^1.0.26",
43
- "@typescript-eslint/eslint-plugin": "^8.30.1",
44
- "@typescript-eslint/parser": "^8.30.1",
45
- "eslint": "^9.24.0",
43
+ "@itcase/config": "^1.0.40",
44
+ "@typescript-eslint/eslint-plugin": "^8.31.0",
45
+ "@typescript-eslint/parser": "^8.31.0",
46
+ "eslint": "^9.25.1",
46
47
  "eslint-config-prettier": "^10.1.2",
47
48
  "eslint-plugin-html": "^8.1.2",
48
49
  "eslint-plugin-json": "^4.0.1",
49
50
  "eslint-plugin-mobx": "^0.0.13",
50
51
  "eslint-plugin-n": "^17.17.0",
51
52
  "eslint-plugin-node": "^11.1.0",
52
- "eslint-plugin-perfectionist": "^4.11.0",
53
+ "eslint-plugin-perfectionist": "^4.12.0",
53
54
  "eslint-plugin-prettier": "^5.2.6",
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
- "eslint-plugin-react-refresh": "^0.4.19",
59
+ "eslint-plugin-react-refresh": "^0.4.20",
59
60
  "eslint-plugin-storybook": "^0.12.0",
60
61
  "expo-modules-autolinking": "^2.0.8",
61
62
  "globals": "^16.0.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
- "stylelint-order": "^6.0.4",
66
+ "stylelint-order": "^7.0.0",
66
67
  "stylelint-prettier": "^5.0.3",
67
- "typescript-eslint": "^8.30.1"
68
+ "typescript-eslint": "^8.31.0"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@commitlint/cli": "^19.8.0",
package/prettier/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @see https://prettier.io/docs/configuration.html
3
+ * @type {import("prettier").Config}
4
+ */
1
5
  export default {
2
6
  arrowParens: 'always',
3
7
  importOrder: [
@@ -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
+ }