Skip to content

Commit f7a4cc8

Browse files
committed
[feature/2.0.0] package update, eslint praser plugin changed
1 parent e78e0de commit f7a4cc8

File tree

6 files changed

+9140
-62
lines changed

6 files changed

+9140
-62
lines changed

.babelrc

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
{
2-
"presets": [
3-
["@babel/preset-env", {
4-
"loose": true,
5-
"modules": false,
6-
"targets": "> 0.25%, not dead"
7-
}],
8-
"@babel/preset-react"
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"loose": true,
7+
"modules": false,
8+
"targets": "> 0.25%, not dead"
9+
}
910
],
10-
"plugins": [
11-
"@babel/plugin-transform-runtime",
12-
"@babel/plugin-proposal-class-properties"
13-
]
14-
}
15-
11+
"@babel/preset-react",
12+
"@babel/preset-typescript"
13+
],
14+
"plugins": [
15+
"@babel/plugin-transform-runtime",
16+
"@babel/plugin-proposal-class-properties"
17+
],
18+
"ignore": ["node_modules/**"]
19+
}

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = 0
13+
trim_trailing_whitespace = false

.eslintrc

+11-28
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
{
2-
"extends": ["airbnb"],
3-
"parser": "babel-eslint",
4-
"plugins": [
5-
"react",
6-
"jsx-a11y",
7-
"import"
8-
],
9-
"env": {
10-
"browser": true
11-
},
12-
"rules": {
13-
"indent": ["error", 4],
14-
"quotes": ["error", "double"],
15-
"max-len": ["error", 350],
16-
"no-unused-vars": ["warn", { "args": "none" }],
17-
"class-methods-use-this": "off",
18-
"jsx-a11y/href-no-hash": "off",
19-
"jsx-a11y/label-has-associated-control": "off",
20-
"camelcase": "error",
21-
"no-return-assign": "off",
22-
"no-noninteractive-element-to-interactive-role": "off",
23-
"no-console": ["error", { "allow": ["log", "error", "warn"] }],
24-
"react/jsx-indent" : ["error", 4],
25-
"react/jsx-indent-props" : ["error", 4],
26-
"import/no-extraneous-dependencies": "off",
27-
"import/prefer-default-export": "off",
28-
"react/destructuring-assignment": "off"
29-
}
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "react", "jsx-a11y", "import"],
4+
"extends": [
5+
"airbnb",
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"env": {
11+
"browser": true
12+
}
3013
}

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dist
2+
src
3+
example
4+
rollup.config.js
5+
webpack.config.js
6+
*.json
7+
*.md

0 commit comments

Comments
 (0)