eslint-config-taro 3.4.4 → 3.4.5
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 +1 -2
- package/index.js +1 -1
- package/package.json +4 -4
- package/vue.js +1 -1
- package/vue3.js +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Taro ESLint config,只有当 ESLint 规则全部都通过时,Taro 小程序
|
|
|
7
7
|
通过 NPM 安装:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ npm install eslint babel-
|
|
10
|
+
$ npm install eslint @babel/eslint-parser eslint-config-taro eslint-plugin-taro eslint-plugin-react eslint-plugin-import --save-dev
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
在 `.eslintrc` 中设置:
|
|
@@ -30,4 +30,3 @@ $ npm install eslint babel-eslint eslint-config-taro eslint-plugin-taro eslint-p
|
|
|
30
30
|
2. 变量定义规则
|
|
31
31
|
3. import 规则 (via [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import))
|
|
32
32
|
4. JSX 规则 (via [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react))
|
|
33
|
-
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-taro",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "Taro specific linting rules for ESLint",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"eslint": "*"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
30
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
31
|
+
"@typescript-eslint/parser": "^4.15.1"
|
|
32
32
|
},
|
|
33
33
|
"author": "O2Team",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "789e873f7b9477124b44a900cd4f6a2810e4e06a"
|
|
36
36
|
}
|
package/vue.js
CHANGED