Skip to content

Commit 0fcebda

Browse files
committed
Use es6
1 parent f6dbba8 commit 0fcebda

111 files changed

Lines changed: 3049 additions & 2669 deletions

File tree

Some content is hidden

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

.editorconfig

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ insert_final_newline = true
1313
trim_trailing_whitespace = false
1414

1515
[Makefile]
16-
indent_style = tab
16+
indent_style = tab

.eslintignore

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

.eslintrc.js

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
11
module.exports = {
2-
extends: [require.resolve('@umijs/fabric/dist/eslint')],
2+
parser: 'babel-eslint',
3+
extends: ['airbnb', 'prettier', 'plugin:compat/recommended'],
4+
env: {
5+
browser: true,
6+
node: true,
7+
es6: true,
8+
mocha: true,
9+
jest: true,
10+
jasmine: true,
11+
},
312
globals: {
13+
APP_TYPE: true,
414
page: true,
515
},
16+
rules: {
17+
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
18+
'react/jsx-wrap-multilines': 0,
19+
'react/prop-types': 0,
20+
'react/forbid-prop-types': 0,
21+
'react/jsx-one-expression-per-line': 0,
22+
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }],
23+
'import/no-extraneous-dependencies': [
24+
2,
25+
{
26+
optionalDependencies: true,
27+
devDependencies: ['**/tests/**.js', '/mock/**.js', '**/**.test.js'],
28+
},
29+
],
30+
'jsx-a11y/no-noninteractive-element-interactions': 0,
31+
'jsx-a11y/click-events-have-key-events': 0,
32+
'jsx-a11y/no-static-element-interactions': 0,
33+
'jsx-a11y/anchor-is-valid': 0,
34+
'linebreak-style': 0,
35+
'import/extensions': 0,
36+
'import/no-extraneous-dependencies': 0,
37+
},
38+
settings: {
39+
polyfills: ['fetch', 'promises', 'url'],
40+
},
641
};

.gitignore

100644100755
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
**/node_modules
4+
/node_modules
55
# roadhog-api-doc ignore
66
/src/utils/request-temp.js
77
_roadhog-api-doc
@@ -20,21 +20,7 @@ yarn-error.log
2020
yarn.lock
2121
package-lock.json
2222
*bak
23-
.vscode
24-
25-
# visual studio code
23+
# visual studio code
2624
.history
27-
*.log
28-
functions/*
29-
.temp/**
30-
31-
# umi
3225
.umi
33-
.umi-production
34-
35-
# screenshot
36-
screenshot
37-
.firebase
38-
.eslintcache
39-
40-
build
26+
.umi-production

.prettierignore

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1+
**/*.md
12
**/*.svg
3+
**/*.ejs
4+
**/*.html
25
package.json
36
.umi
4-
.umi-production
5-
/dist
6-
.dockerignore
7-
.DS_Store
8-
.eslintignore
9-
*.png
10-
*.toml
11-
docker
12-
.editorconfig
13-
Dockerfile*
14-
.gitignore
15-
.prettierignore
16-
LICENSE
17-
.eslintcache
18-
*.lock
19-
yarn-error.log
20-
.history
7+
.umi-production

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 100,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": { "parser": "json" }
9+
}
10+
]
11+
}

.prettierrc.js

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

.stylelintrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"selector-pseudo-class-no-unknown": null,
5+
"shorthand-property-no-redundant-values": null,
6+
"at-rule-empty-line-before": null,
7+
"at-rule-name-space-after": null,
8+
"comment-empty-line-before": null,
9+
"declaration-bang-space-before": null,
10+
"declaration-empty-line-before": null,
11+
"function-comma-newline-after": null,
12+
"function-name-case": null,
13+
"function-parentheses-newline-inside": null,
14+
"function-max-empty-lines": null,
15+
"function-whitespace-after": null,
16+
"number-leading-zero": null,
17+
"number-no-trailing-zeros": null,
18+
"rule-empty-line-before": null,
19+
"selector-combinator-space-after": null,
20+
"selector-list-comma-newline-after": null,
21+
"selector-pseudo-element-colon-notation": null,
22+
"unit-no-unknown": null,
23+
"value-list-max-empty-lines": null
24+
}
25+
}

.stylelintrc.js

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

.stylelintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules": {
4+
"declaration-empty-line-before": null,
5+
"no-descending-specificity": null,
6+
"selector-pseudo-class-no-unknown": null,
7+
"selector-pseudo-element-colon-notation": null
8+
}
9+
}

0 commit comments

Comments
 (0)