@aliexme/eslint-config 3.5.1 → 4.1.0

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/README.md CHANGED
@@ -39,25 +39,6 @@ export default defineConfig([
39
39
  ])
40
40
  ```
41
41
 
42
- ### React Native
43
-
44
- Install additional packages:
45
-
46
- ```sh
47
- npm i --save-dev eslint-plugin-react-native
48
- ```
49
-
50
- And add the following lines to your ESLint config file:
51
-
52
- ```js
53
- import eslintConfigReactNative from '@aliexme/eslint-config/react-native'
54
-
55
- export default defineConfig([
56
- eslintConfigRecommended,
57
- eslintConfigReactNative, // <--
58
- ])
59
- ```
60
-
61
42
  ### Vue
62
43
 
63
44
  Install additional packages:
package/configs/react.js CHANGED
@@ -11,7 +11,7 @@ export default defineConfig([
11
11
  {
12
12
  settings: {
13
13
  react: {
14
- version: 'detect',
14
+ version: '19',
15
15
  },
16
16
  },
17
17
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliexme/eslint-config",
3
- "version": "3.5.1",
3
+ "version": "4.1.0",
4
4
  "private": false,
5
5
  "description": "Set of configs for ESLint",
6
6
  "keywords": [
@@ -27,7 +27,6 @@
27
27
  "./package-json": "./configs/package-json.js",
28
28
  "./prettier": "./configs/prettier.js",
29
29
  "./react": "./configs/react.js",
30
- "./react-native": "./configs/react-native.js",
31
30
  "./vue": "./configs/vue.js",
32
31
  "./astro": "./configs/astro.js"
33
32
  },
@@ -38,24 +37,23 @@
38
37
  "configs"
39
38
  ],
40
39
  "dependencies": {
41
- "@eslint/compat": "^2.0.3",
42
- "@eslint/eslintrc": "^3.3.5",
43
- "@eslint/js": "^9.39.4",
40
+ "@eslint/compat": "^2.1.0",
41
+ "@eslint/eslintrc": "^3.3.6",
42
+ "@eslint/js": "^10.0.1",
44
43
  "@stylistic/eslint-plugin": "^5.10.0",
45
- "eslint-import-resolver-typescript": "^4.4.4",
46
- "eslint-plugin-import-x": "^4.16.2",
47
- "eslint-plugin-package-json": "^0.91.0",
48
- "globals": "^17.4.0",
49
- "typescript-eslint": "^8.57.0"
44
+ "eslint-import-resolver-typescript": "^4.4.5",
45
+ "eslint-plugin-import-x": "^4.17.1",
46
+ "eslint-plugin-package-json": "^1.6.0",
47
+ "globals": "^17.7.0",
48
+ "typescript-eslint": "^8.64.0"
50
49
  },
51
50
  "peerDependencies": {
52
- "eslint": "^9.0.0",
51
+ "eslint": "^10.0.0",
53
52
  "eslint-config-prettier": "^10.0.0",
54
- "eslint-plugin-astro": "^1.0.0",
53
+ "eslint-plugin-astro": "^3.0.0",
55
54
  "eslint-plugin-prettier": "^5.0.0",
56
55
  "eslint-plugin-react": "^7.0.0",
57
56
  "eslint-plugin-react-hooks": "^7.0.0",
58
- "eslint-plugin-react-native": "^5.0.0",
59
57
  "eslint-plugin-vue": "^10.0.0",
60
58
  "prettier": "^3.0.0"
61
59
  },
@@ -75,9 +73,6 @@
75
73
  "eslint-plugin-react-hooks": {
76
74
  "optional": true
77
75
  },
78
- "eslint-plugin-react-native": {
79
- "optional": true
80
- },
81
76
  "eslint-plugin-vue": {
82
77
  "optional": true
83
78
  },
@@ -88,5 +83,5 @@
88
83
  "publishConfig": {
89
84
  "access": "public"
90
85
  },
91
- "gitHead": "cefbac0302fa4ec3f19a2a1e038b42d8f1ae23c8"
86
+ "gitHead": "c32af348e1669e9dca51811a810abff6ba7de279"
92
87
  }
@@ -1,17 +0,0 @@
1
- import { defineConfig } from 'eslint/config'
2
- // @ts-expect-error Could not find a declaration file for module 'eslint-plugin-react-native'
3
- import eslintPluginReactNative from 'eslint-plugin-react-native'
4
-
5
- export default defineConfig([
6
- {
7
- plugins: {
8
- 'react-native': eslintPluginReactNative,
9
- },
10
- rules: {
11
- 'react-native/no-unused-styles': 'error',
12
- 'react-native/no-inline-styles': 'error',
13
- 'react-native/no-raw-text': ['error', { skip: ['Text', 'Button'] }],
14
- 'react-native/no-single-element-style-arrays': 'error',
15
- },
16
- },
17
- ])