@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 +0 -19
- package/configs/react.js +1 -1
- package/package.json +12 -17
- package/configs/react-native.js +0 -17
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aliexme/eslint-config",
|
|
3
|
-
"version": "
|
|
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
|
|
42
|
-
"@eslint/eslintrc": "^3.3.
|
|
43
|
-
"@eslint/js": "^
|
|
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.
|
|
46
|
-
"eslint-plugin-import-x": "^4.
|
|
47
|
-
"eslint-plugin-package-json": "^
|
|
48
|
-
"globals": "^17.
|
|
49
|
-
"typescript-eslint": "^8.
|
|
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": "^
|
|
51
|
+
"eslint": "^10.0.0",
|
|
53
52
|
"eslint-config-prettier": "^10.0.0",
|
|
54
|
-
"eslint-plugin-astro": "^
|
|
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": "
|
|
86
|
+
"gitHead": "c32af348e1669e9dca51811a810abff6ba7de279"
|
|
92
87
|
}
|
package/configs/react-native.js
DELETED
|
@@ -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
|
-
])
|