Skip to content

Commit e9aceeb

Browse files
committedJul 26, 2021
Fix eslint errors & format by prettier
1 parent 384548c commit e9aceeb

Some content is hidden

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

41 files changed

+5431
-4527
lines changed
 

‎.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[*.json]
10+
indent_size = 2
11+
indent_style = space
12+
13+
[*.{js,jsx,ts,tsx,sh}]
14+
indent_size = 2
15+
indent_style = space
16+
insert_final_newline = true
17+
18+
[*.md]
19+
insert_final_newline = false
20+
trim_trailing_whitespace = false

‎.eslintrc.js

+76-76
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
es6: true,
5-
node: true,
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:react/recommended',
10+
'plugin:import/errors',
11+
'plugin:import/warnings',
12+
'plugin:jsx-a11y/recommended',
13+
'plugin:react-hooks/recommended',
14+
'next',
15+
'prettier',
16+
'plugin:prettier/recommended',
17+
],
18+
parser: 'babel-eslint',
19+
parserOptions: {
20+
ecmaVersion: 2018,
21+
sourceType: 'module',
22+
ecmaFeatures: {
23+
jsx: true,
624
},
7-
extends: [
8-
"eslint:recommended",
9-
"plugin:react/recommended",
10-
"plugin:import/errors",
11-
"plugin:import/warnings",
12-
"plugin:jsx-a11y/recommended",
13-
"plugin:react-hooks/recommended",
14-
"next",
15-
"prettier",
16-
"plugin:prettier/recommended",
17-
],
18-
parser: "babel-eslint",
19-
parserOptions: {
20-
ecmaVersion: 2018,
21-
sourceType: "module",
22-
ecmaFeatures: {
23-
jsx: true,
24-
},
25-
},
26-
settings: {
27-
react: {
28-
version: "detect",
29-
},
30-
},
31-
plugins: ["eslint-plugin-import", "eslint-plugin-react", "eslint-plugin-jsdoc", "eslint-plugin-prefer-arrow"],
32-
rules: {
33-
"react/prop-types": 0,
34-
"react/react-in-jsx-scope": 0,
35-
"comma-dangle": ["error", "always-multiline"],
36-
"jsx-quotes": ["error", "prefer-double"],
37-
"react-native/no-inline-styles": 0,
38-
"space-before-function-paren": 0,
39-
"react-hooks/exhaustive-deps": 0,
40-
"no-duplicate-imports": "off",
41-
"react/display-name": 0,
42-
"prettier/prettier": 0,
43-
camelcase: 0,
44-
"max-len": [
45-
1,
46-
{
47-
code: 120,
48-
},
49-
],
50-
"no-use-before-define": 0,
51-
"default-param-last": 0,
52-
"multiline-ternary": 0,
53-
"key-spacing": ["error"],
54-
"object-curly-spacing": ["error", "always"],
55-
"jsx-a11y/alt-text": ["warn"],
56-
"jsx-a11y/no-noninteractive-element-interactions": ["warn"],
57-
"jsx-a11y/click-events-have-key-events": ["warn"],
58-
"import/no-unresolved": ["warn"],
59-
"jsx-a11y/no-static-element-interactions": ["warn"],
60-
"jsx-a11y/anchor-is-valid": ["warn"],
61-
semi: ["error", "never"],
62-
"no-multiple-empty-lines": [
63-
"error",
64-
{
65-
max: 1,
66-
maxEOF: 0,
67-
maxBOF: 0,
68-
},
69-
],
70-
quotes: [
71-
"error",
72-
"single",
73-
{
74-
avoidEscape: true,
75-
allowTemplateLiterals: true,
76-
},
77-
],
25+
},
26+
settings: {
27+
react: {
28+
version: 'detect',
7829
},
79-
};
30+
},
31+
plugins: ['eslint-plugin-import', 'eslint-plugin-react', 'eslint-plugin-jsdoc', 'eslint-plugin-prefer-arrow'],
32+
rules: {
33+
'react/prop-types': 0,
34+
'react/react-in-jsx-scope': 0,
35+
'comma-dangle': ['error', 'always-multiline'],
36+
'jsx-quotes': ['error', 'prefer-double'],
37+
'react-native/no-inline-styles': 0,
38+
'space-before-function-paren': 0,
39+
'react-hooks/exhaustive-deps': 0,
40+
'no-duplicate-imports': 'off',
41+
'react/display-name': 0,
42+
'prettier/prettier': 0,
43+
camelcase: 0,
44+
'max-len': [
45+
1,
46+
{
47+
code: 120,
48+
},
49+
],
50+
'no-use-before-define': 0,
51+
'default-param-last': 0,
52+
'multiline-ternary': 0,
53+
'key-spacing': ['error'],
54+
'object-curly-spacing': ['error', 'always'],
55+
'jsx-a11y/alt-text': ['warn'],
56+
'jsx-a11y/no-noninteractive-element-interactions': ['warn'],
57+
'jsx-a11y/click-events-have-key-events': ['warn'],
58+
'import/no-unresolved': ['warn'],
59+
'jsx-a11y/no-static-element-interactions': ['warn'],
60+
'jsx-a11y/anchor-is-valid': ['warn'],
61+
semi: ['error', 'never'],
62+
'no-multiple-empty-lines': [
63+
'error',
64+
{
65+
max: 1,
66+
maxEOF: 0,
67+
maxBOF: 0,
68+
},
69+
],
70+
quotes: [
71+
'error',
72+
'single',
73+
{
74+
avoidEscape: true,
75+
allowTemplateLiterals: true,
76+
},
77+
],
78+
},
79+
}

0 commit comments

Comments
 (0)
Please sign in to comment.