@itcase/lint 1.1.124 → 1.1.126

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.1.126](https://github.com/ITCase/itcase-lint/compare/v1.1.125...v1.1.126) (2026-09-16)
2
+
3
+ ### Dependencies
4
+
5
+ * **other:** lock ([7331e3b](https://github.com/ITCase/itcase-lint/commit/7331e3bbd19a45296f080fcada1d7e71cadc1af3))
6
+
7
+ ## [1.1.125](https://github.com/ITCase/itcase-lint/compare/v1.1.124...v1.1.125) (2026-09-10)
8
+
9
+ ### Refactoring
10
+
11
+ * **prettier:** remove react-native preset ([7b709c7](https://github.com/ITCase/itcase-lint/commit/7b709c7e54f1f5aa1a4b00218aecc6359c7fec1f))
12
+
13
+ ### Dependencies
14
+
15
+ * **other:** bump @itcase/config to 1.6.83 ([125f972](https://github.com/ITCase/itcase-lint/commit/125f972ac72b91909fa8c271b5d99504449ad231))
16
+
1
17
  ## [1.1.124](https://github.com/ITCase/itcase-lint/compare/v1.1.123...v1.1.124) (2026-09-10)
2
18
 
3
19
  ### Bug Fixes
package/README.md CHANGED
@@ -46,6 +46,8 @@ import eslint from '@itcase/lint/eslint/index.js'
46
46
  export default eslint
47
47
  ```
48
48
 
49
+ React Native rules from `eslint-plugin-react-native` are included in this preset.
50
+
49
51
  ### ESLint with MobX
50
52
 
51
53
  Create a `eslint.config.mjs` configuration file in the root of your project with the following content:
@@ -57,29 +59,6 @@ import eslintMobx from '@itcase/lint/eslint/mobx/index.js'
57
59
  export default [...eslint, ...eslintMobx]
58
60
  ```
59
61
 
60
- ### ESLint with React Native
61
-
62
- Create a `eslint.config.mjs` configuration file in the root of your project with the following content:
63
-
64
- ```js
65
- import eslint from '@itcase/lint/eslint/index.js'
66
- import eslintReactNative from '@itcase/lint/eslint/react-native/index.js'
67
-
68
- export default [...eslint, ...eslintReactNative]
69
- ```
70
-
71
- ### ESLint with MobX, React Native
72
-
73
- Create a `eslint.config.mjs` configuration file in the root of your project with the following content:
74
-
75
- ```js
76
- import eslint from '@itcase/lint/eslint/index.js'
77
- import eslintMobx from '@itcase/lint/eslint/mobx/index.js'
78
- import eslintReactNative from '@itcase/lint/eslint/react-native/index.js'
79
-
80
- export default [...eslint, ...eslintMobx, ...eslintReactNative]
81
- ```
82
-
83
62
  ### Плагины ESLint
84
63
 
85
64
  В пакет входят кастомные плагины, которые подключаются отдельно:
package/dist/eslint.js CHANGED
@@ -9,6 +9,7 @@ import eslintPerfectionist from 'eslint-plugin-perfectionist';
9
9
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
10
10
  import eslintReact from 'eslint-plugin-react';
11
11
  import eslintReactHooks from 'eslint-plugin-react-hooks';
12
+ import eslintReactNative from 'eslint-plugin-react-native';
12
13
  import globals from 'globals';
13
14
  import eslintTypeScript from 'typescript-eslint';
14
15
  import { s as sortUnionTypes, a as sortObjectTypes, b as sortObjects, c as sortExports, d as sortNamedExports, e as sortMaps, f as sortJSXProps, g as sortIntersectionTypes, h as sortInterfaces, i as sortEnums } from './sortUnionTypes_C5VVNaF3.js';
@@ -85,6 +86,7 @@ const eslintConfig = [
85
86
  // "eslint-plugin-react-hooks" already supports flat config, but "fixupPluginRules"
86
87
  // is used for compatibility. Type assertion is needed due to type incompatibility.
87
88
  'react-hooks': fixupPluginRules(eslintReactHooks),
89
+ 'react-native': fixupPluginRules(eslintReactNative),
88
90
  htmlScript: eslintHtmlScriptPlugin,
89
91
  '@html-eslint': eslintHtmlPlugin,
90
92
  import: eslintImport,
@@ -139,6 +141,13 @@ const eslintConfig = [
139
141
  // React-hooks
140
142
  'react-hooks/exhaustive-deps': 'warn',
141
143
  'react-hooks/rules-of-hooks': 'error',
144
+ // React Native
145
+ 'react-native/no-color-literals': 'warn',
146
+ 'react-native/no-inline-styles': 'warn',
147
+ 'react-native/no-raw-text': 'off',
148
+ 'react-native/no-single-element-style-arrays': 'error',
149
+ 'react-native/no-unused-styles': 'error',
150
+ 'react-native/split-platform-components': 'off',
142
151
  // Restrict certain words as identifiers (list in restrictWords/config.ts)
143
152
  'no-restricted-syntax': noRestrictedSyntaxRestrictWords,
144
153
  // Disables the requirement to format ternary operators in multiline form
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.124",
3
+ "version": "1.1.126",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets ",
6
6
  "engines": {
@@ -35,7 +35,6 @@
35
35
  "./eslint/figma": "./dist/eslint/figma.js",
36
36
  "./eslint/mobx": "./dist/eslint/mobx.js",
37
37
  "./eslint/perfectionist": "./dist/eslint/perfectionist.js",
38
- "./eslint/react-native": "./dist/eslint/react-native.js",
39
38
  "./eslint/storybook": "./dist/eslint/storybook.js",
40
39
  "./prettier": "./dist/prettier.js",
41
40
  "./stylelint": "./dist/stylelint.js"
@@ -45,14 +44,14 @@
45
44
  "registry": "https://registry.npmjs.org/"
46
45
  },
47
46
  "dependencies": {
48
- "@babel/eslint-parser": "^8.0.1",
49
- "@babel/eslint-plugin": "^8.0.1",
47
+ "@babel/eslint-parser": "^8.0.5",
48
+ "@babel/eslint-plugin": "^8.0.5",
50
49
  "@eslint/compat": "^2.1.1",
51
50
  "@figma/eslint-plugin-figma-plugins": "^1.0.0",
52
51
  "@eslint/js": "^10.0.1",
53
52
  "@eslint/markdown": "^8.0.3",
54
- "@html-eslint/eslint-plugin": "^0.65.0",
55
- "@html-eslint/parser": "^0.65.0",
53
+ "@html-eslint/eslint-plugin": "^0.66.0",
54
+ "@html-eslint/parser": "^0.66.0",
56
55
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
57
56
  "@typescript-eslint/eslint-plugin": "^8.70.0",
58
57
  "@typescript-eslint/parser": "^8.70.0",
@@ -65,15 +64,15 @@
65
64
  "eslint-plugin-mobx": "^0.0.14",
66
65
  "eslint-plugin-n": "^18.3.0",
67
66
  "eslint-plugin-node": "^11.1.0",
68
- "eslint-plugin-perfectionist": "^5.11.0",
67
+ "eslint-plugin-perfectionist": "^5.11.1",
69
68
  "eslint-plugin-prettier": "^5.5.6",
70
69
  "eslint-plugin-promise": "^7.3.0",
71
70
  "eslint-plugin-react": "^7.37.5",
72
71
  "eslint-plugin-react-hooks": "^7.1.1",
73
72
  "eslint-plugin-react-native": "^5.0.0",
74
- "eslint-plugin-react-refresh": "^0.5.6",
73
+ "eslint-plugin-react-refresh": "^0.5.7",
75
74
  "eslint-plugin-storybook": "^10.6.0",
76
- "expo-modules-autolinking": "^57.0.12",
75
+ "expo-modules-autolinking": "^57.0.13",
77
76
  "globals": "^17.12.0",
78
77
  "prettier": "^3.9.6",
79
78
  "stylelint": "^17.15.0",
@@ -86,7 +85,7 @@
86
85
  "devDependencies": {
87
86
  "@commitlint/cli": "^21.2.2",
88
87
  "@commitlint/config-conventional": "^21.2.2",
89
- "@itcase/config": "^1.6.79",
88
+ "@itcase/config": "^1.6.84",
90
89
  "@rollup/plugin-alias": "^6.0.0",
91
90
  "@rollup/plugin-babel": "^7.1.0",
92
91
  "@rollup/plugin-image": "^3.0.3",
@@ -100,8 +99,8 @@
100
99
  "conventional-changelog-conventionalcommits": "9.3.1",
101
100
  "del-cli": "^7.0.0",
102
101
  "husky": "^9.1.7",
103
- "lint-staged": "^17.5.0",
104
- "rollup": "4.63.1",
102
+ "lint-staged": "^17.5.1",
103
+ "rollup": "4.63.3",
105
104
  "rollup-plugin-copy": "^3.5.0",
106
105
  "rollup-plugin-dts": "^6.5.1",
107
106
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -1,25 +0,0 @@
1
- import { fixupPluginRules } from '@eslint/compat';
2
- import eslintReactNative from 'eslint-plugin-react-native';
3
-
4
- const jsTsFiles = ['**/*.{js,jsx,mjs,cjs,ts,tsx}'];
5
- var index = [
6
- {
7
- files: jsTsFiles,
8
- plugins: {
9
- 'react-native': fixupPluginRules(eslintReactNative),
10
- },
11
- },
12
- {
13
- files: jsTsFiles,
14
- rules: {
15
- 'react-native/no-color-literals': 'warn',
16
- 'react-native/no-inline-styles': 'warn',
17
- 'react-native/no-raw-text': 'off',
18
- 'react-native/no-single-element-style-arrays': 'error',
19
- 'react-native/no-unused-styles': 'error',
20
- 'react-native/split-platform-components': 'off',
21
- },
22
- },
23
- ];
24
-
25
- export { index as default };
@@ -1,9 +0,0 @@
1
- /**
2
- * @see https://prettier.io/docs/configuration.html
3
- * @type {import("prettier").Config}
4
- */
5
- declare const _default: {
6
- importOrder: string[];
7
- printWidth: number;
8
- };
9
- export default _default;
@@ -1,69 +0,0 @@
1
- /**
2
- * @see https://prettier.io/docs/configuration.html
3
- * @type {import("prettier").Config}
4
- */
5
- // eslint-disable-next-line import/no-default-export
6
- var index = {
7
- importOrder: [
8
- '^react$',
9
- '^react-native$',
10
- '',
11
- '^@expo$',
12
- '^@expo/(.*)$',
13
- '^expo$',
14
- '^expo-(.*)$',
15
- '',
16
- '^mobx$',
17
- '^mobx-react-lite$',
18
- '^mobx-persist-store$',
19
- '',
20
- '^@react-navigation/(.*)$',
21
- '^@react-native-community/(.*)$',
22
- '^react-native-(.*)$',
23
- '',
24
- '^@itcase/(.*)$',
25
- '',
26
- '<THIRD_PARTY_MODULES>',
27
- '',
28
- '^src/enums$',
29
- '^src/enums/(.*)$',
30
- '^src/interfaces$',
31
- '^src/interfaces/(.*)$',
32
- '^src/swagger$',
33
- '^src/swagger/(.*)$',
34
- '^src/constants$',
35
- '^src/constants/(.*)$',
36
- '^src/config$',
37
- '^src/config/(.*)$',
38
- '^src/modules$',
39
- '^src/modules/(.*)$',
40
- '^src/providers$',
41
- '^src/providers/(.*)$',
42
- '^src/navigation$',
43
- '^src/navigation/(.*)$',
44
- '^src/dictionaries$',
45
- '^src/dictionaries/(.*)$',
46
- '^src/forms$',
47
- '^src/forms/(.*)$',
48
- '^src/stores$',
49
- '^src/stores/(.*)$',
50
- '^src/screens$',
51
- '^src/screens/(.*)$',
52
- '^src/components$',
53
- '^src/components/(.*)$',
54
- '^src/screenComponents$',
55
- '^src/screenComponents/(.*)$',
56
- '^src/hooks$',
57
- '^src/hooks/(.*)$',
58
- '^src/utils$',
59
- '^src/utils/(.*)$',
60
- '^src/styles$',
61
- '^src/styles/(.*)$',
62
- '',
63
- '^../(.*)$',
64
- '^./(.*)$',
65
- ],
66
- printWidth: 100,
67
- };
68
-
69
- export { index as default };