Skip to content

Commit 10abc81

Browse files
committed
chore: 升级umi,antd到最新版本
1 parent e6746d2 commit 10abc81

File tree

141 files changed

+25898
-6122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+25898
-6122
lines changed

.editorconfig

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

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/lambda/
2+
/scripts
3+
/config
4+
.history
5+
public
6+
dist
7+
.umi
8+
mock

.eslintrc.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = {
2+
extends: require.resolve('@umijs/max/eslint'),
3+
rules: {
4+
'no-underscore-dangle': 0,
5+
'import/prefer-default-export': 0,
6+
'import/no-extraneous-dependencies': 0,
7+
'import/extensions': 0,
8+
'import/no-unresolved': 0,
9+
'no-unused-vars': 0,
10+
'no-use-before-define': 0,
11+
'no-undef': 0,
12+
'no-shadow': 0,
13+
'no-console': 0,
14+
'no-plusplus': 0,
15+
'no-script-url': 0,
16+
'no-restricted-syntax': 0,
17+
'no-unused-expressions': 0,
18+
'import/no-mutable-exports': 0,
19+
'jsx-a11y/click-events-have-key-events': 0,
20+
'jsx-a11y/no-noninteractive-element-interactions': 0,
21+
'@typescript-eslint/no-empty-function': 0,
22+
'@typescript-eslint/no-unused-vars': 0,
23+
'@typescript-eslint/no-var-requires': 0,
24+
'@typescript-eslint/no-use-before-define': 0,
25+
'react/prop-types': 0,
26+
'react/no-array-index-key': 0,
27+
'react/static-property-placement': 0,
28+
'react/destructuring-assignment': 0,
29+
'react/jsx-filename-extension': 0,
30+
'react/jsx-props-no-spreading': 0,
31+
'jsx-a11y/no-static-element-interactions': 0,
32+
'no-param-reassign': 0,
33+
'prefer-destructuring': 0,
34+
'jsx-a11y/no-autofocus': 0,
35+
'react/no-children-prop': 0,
36+
'jsx-a11y/aria-proptypes': 0,
37+
'react/require-default-props': 0,
38+
'@typescript-eslint/ban-types': [
39+
'error',
40+
{
41+
extendDefaults: true,
42+
types: {
43+
'{}': false,
44+
},
45+
},
46+
],
47+
},
48+
};

.gitignore

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
41
/node_modules
5-
/npm-debug.log*
6-
/yarn-error.log
7-
/yarn.lock
8-
/package-lock.json
9-
10-
# production
11-
/dist
12-
13-
# misc
14-
.DS_Store
15-
16-
# umi
2+
/.env.local
3+
/.umirc.local.ts
4+
/config/config.local.ts
175
/src/.umi
186
/src/.umi-production
197
/src/.umi-test
20-
/.env.local
8+
/.umi
9+
/.umi-production
10+
/.umi-test
11+
/dist
12+
/.mfsu
13+
.swc

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install max verify-commit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged --quiet

.lintstagedrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"*.{md,json}": [
3+
"prettier --cache --write"
4+
],
5+
"*.{js,jsx}": [
6+
"max lint --fix --eslint-only",
7+
"prettier --cache --write"
8+
],
9+
"*.{css,less}": [
10+
"max lint --fix --stylelint-only",
11+
"prettier --cache --write"
12+
],
13+
"*.ts?(x)": [
14+
"max lint --fix --eslint-only",
15+
"prettier --cache --parser=typescript --write"
16+
]
17+
}

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmmirror.com
2+
strict-peer-dependencies=false

.prettierignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
**/*.md
2-
**/*.svg
3-
**/*.ejs
4-
**/*.html
5-
package.json
1+
node_modules
62
.umi
73
.umi-production
8-
.umi-test

.prettierrc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2+
"printWidth": 80,
23
"singleQuote": true,
34
"trailingComma": "all",
4-
"printWidth": 80,
5-
"overrides": [
6-
{
7-
"files": ".prettierrc",
8-
"options": { "parser": "json" }
9-
}
10-
]
5+
"proseWrap": "never",
6+
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }],
7+
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"]
118
}

0 commit comments

Comments
 (0)