Skip to content

Commit f27aa9e

Browse files
committed
chore: upgrade package and lint config
1 parent e8a13a9 commit f27aa9e

File tree

6 files changed

+42
-67
lines changed

6 files changed

+42
-67
lines changed

.eslintignore

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
# Node modules
12
node_modules/
2-
dist/
3-
lib/
4-
coverage/
5-
.vscode/
3+
4+
# Editor and IDE files
5+
.vscode
6+
.idea
7+
8+
# Build outputs
9+
packages/taro-ui/lib/
10+
packages/**/dist/
11+
12+
# Test files
13+
coverage
14+
jest.config.js
15+
test/__mock__/
16+
17+
# Others
618
.nyc_output/
719
git_stats/
820
yarn-offline/
921
docs/
10-
jest.config.js
11-
test/__mock__/

.eslintrc.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2+
"root": true,
23
"extends": [
34
"o2team",
5+
"eslint:recommended",
6+
"plugin:import/errors",
7+
"plugin:import/warnings",
48
"plugin:react/recommended",
9+
"plugin:react-hooks/recommended",
510
"plugin:prettier/recommended"
611
],
7-
"parser": "babel-eslint",
8-
"plugins": [
9-
"react"
10-
],
11-
"env": {
12-
"jest": true
13-
},
1412
"rules": {
1513
"class-methods-use-this": "off",
1614
"prefer-rest-params": "off",
@@ -65,19 +63,19 @@
6563
],
6664
"parser": "@typescript-eslint/parser",
6765
"plugins": [
68-
"react",
6966
"@typescript-eslint"
7067
],
7168
"extends": [
7269
"eslint:recommended",
7370
"plugin:@typescript-eslint/eslint-recommended",
7471
"plugin:@typescript-eslint/recommended",
72+
"plugin:import/errors",
73+
"plugin:import/warnings",
74+
"plugin:import/typescript",
7575
"plugin:react/recommended",
76+
"plugin:react-hooks/recommended",
7677
"plugin:prettier/recommended"
7778
],
78-
"env": {
79-
"jest": true
80-
},
8179
"rules": {
8280
"@typescript-eslint/no-explicit-any": [
8381
"off"

.gitignore

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1+
# Node modules
12
node_modules/
23

4+
# Yarn and NPM files
35
yarn-error.log
46
package-lock.json
5-
project.config.json
67

8+
# Template files
79
.temp
810
.DS_Store
9-
.vscode
1011
.eslintcache
11-
.babelrc
12-
13-
site/
14-
docs/h5/
15-
16-
coverage
1712

13+
# Editor and IDE files
14+
.vscode
1815
.idea
1916

20-
# taro-ui outputs
21-
lib/
22-
dist/
17+
# Build outputs
18+
packages/taro-ui/lib/
19+
packages/**/dist/
20+
21+
# Docs outputs
22+
site/
23+
docs/h5/
2324

24-
# rollup visualizer file
25+
# Rollup visualizer file
2526
stats.html
27+
28+
# Test files
29+
coverage
File renamed without changes.

babel.config.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

packages/taro-ui-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
"@types/webpack-env": "^1.13.6",
5858
"babel-preset-taro": "3.0.0-beta.2",
5959
"eslint-config-taro": "3.0.0-beta.2",
60-
"typescript": "~3.7.0"
60+
"typescript": "^3.8.3"
6161
}
6262
}

0 commit comments

Comments
 (0)