Skip to content

Commit 0e37bed

Browse files
committed
Update devDependencies and fix minor errors
1 parent 88bb744 commit 0e37bed

File tree

5 files changed

+23406
-10718
lines changed

5 files changed

+23406
-10718
lines changed

.eslintrc.json

Lines changed: 118 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,119 @@
11
{
2-
"extends": ["airbnb", "prettier", "prettier/react"],
3-
"plugins": ["prettier", "react-hooks"],
4-
"rules": {
5-
"no-nested-ternary": [0],
6-
"react-hooks/exhaustive-deps": "off",
7-
"import/imports-first": ["error", "absolute-first"],
8-
"import/newline-after-import": "error",
9-
"react/no-did-update-set-state": "error",
10-
"react/no-unknown-property": "error",
11-
"react/no-unused-prop-types": "error",
12-
"react/react-in-jsx-scope": "error",
13-
"space-in-parens": [0, "never"],
14-
"template-curly-spacing": [2, "never"],
15-
"array-bracket-spacing": [2, "never"],
16-
"computed-property-spacing": [2, "never"],
17-
"quotes": [1, "single", "avoid-escape"],
18-
"semi": [0, "never"],
19-
"prefer-const": 1,
20-
"react/prefer-es6-class": 0,
21-
"react/prop-types": [1],
22-
"react/no-array-index-key": [1],
23-
"class-methods-use-this": [1],
24-
"no-undef": [1],
25-
"no-case-declarations": [1],
26-
"no-return-assign": [1],
27-
"no-param-reassign": [1],
28-
"import/prefer-default-export": "off",
29-
"no-shadow": [1],
30-
"camelcase": [1],
31-
"commentPattern": [0],
32-
"no-underscore-dangle": [0, "always"],
33-
"react/jsx-props-no-spreading": [0, {}],
34-
"jsx-a11y/label-has-associated-control": [0, {
35-
"labelComponents": [],
36-
"labelAttributes": [],
37-
"controlComponents": [],
38-
"assert": "both",
39-
"depth": 3
40-
}],
41-
"jsx-a11y/label-has-for": [2, {
42-
"required": {
43-
"every": ["id"]
44-
}
45-
}],
46-
"object-curly-spacing": [
47-
"error",
48-
"always",
49-
{
50-
"arraysInObjects": true,
51-
"objectsInObjects": true
52-
}
53-
],
54-
"jsx-a11y/anchor-is-valid": [
55-
"error",
56-
{
57-
"components": ["Link"],
58-
"specialLink": ["hrefLeft", "hrefRight", "to"],
59-
"aspects": ["noHref", "invalidHref", "preferButton"]
60-
}
61-
],
62-
"react/jsx-curly-spacing": [
63-
2,
64-
{
65-
"when": "never"
66-
}
67-
],
68-
"react/jsx-no-bind": [
69-
"error",
70-
{
71-
"allowArrowFunctions": true,
72-
"allowBind": false,
73-
"ignoreRefs": true
74-
}
75-
],
76-
"react/jsx-filename-extension": [
77-
1,
78-
{
79-
"extensions": [".js", ".jsx"]
80-
}
81-
],
82-
"no-multiple-empty-lines": [
83-
2,
84-
{
85-
"max": 1,
86-
"maxEOF": 0,
87-
"maxBOF": 0
88-
}
89-
],
90-
"no-use-before-define": [
91-
2,
92-
{
93-
"functions": false
94-
}
95-
]
96-
},
97-
"globals": {
98-
"window": true,
99-
"document": true,
100-
"localStorage": true,
101-
"FormData": true,
102-
"FileReader": true,
103-
"Blob": true,
104-
"navigator": true
105-
},
106-
"parser": "babel-eslint",
107-
"settings": {
108-
"import/resolver": "meteor"
109-
},
110-
"env": {
111-
"jest": true
112-
}
113-
}
2+
"extends": ["airbnb", "prettier"],
3+
"plugins": ["prettier", "react-hooks"],
4+
"rules": {
5+
"no-nested-ternary": [0],
6+
"react-hooks/exhaustive-deps": "off",
7+
"import/imports-first": ["error", "absolute-first"],
8+
"import/newline-after-import": "error",
9+
"react/no-did-update-set-state": "error",
10+
"react/no-unknown-property": "error",
11+
"react/no-unused-prop-types": "error",
12+
"react/react-in-jsx-scope": "error",
13+
"space-in-parens": [0, "never"],
14+
"template-curly-spacing": [2, "never"],
15+
"array-bracket-spacing": [2, "never"],
16+
"computed-property-spacing": [2, "never"],
17+
"quotes": [1, "single", "avoid-escape"],
18+
"semi": [0, "never"],
19+
"prefer-const": 1,
20+
"react/prefer-es6-class": 0,
21+
"react/prop-types": [1],
22+
"react/no-array-index-key": [1],
23+
"class-methods-use-this": [1],
24+
"no-undef": [1],
25+
"no-case-declarations": [1],
26+
"no-return-assign": [1],
27+
"no-param-reassign": [1],
28+
"import/prefer-default-export": "off",
29+
"no-shadow": [1],
30+
"camelcase": [1],
31+
"commentPattern": [0],
32+
"no-underscore-dangle": [0, "always"],
33+
"react/jsx-props-no-spreading": [0, {}],
34+
"jsx-a11y/label-has-associated-control": [
35+
0,
36+
{
37+
"labelComponents": [],
38+
"labelAttributes": [],
39+
"controlComponents": [],
40+
"assert": "both",
41+
"depth": 3
42+
}
43+
],
44+
"jsx-a11y/label-has-for": [
45+
2,
46+
{
47+
"required": {
48+
"every": ["id"]
49+
}
50+
}
51+
],
52+
"object-curly-spacing": [
53+
"error",
54+
"always",
55+
{
56+
"arraysInObjects": true,
57+
"objectsInObjects": true
58+
}
59+
],
60+
"jsx-a11y/anchor-is-valid": [
61+
"error",
62+
{
63+
"components": ["Link"],
64+
"specialLink": ["hrefLeft", "hrefRight", "to"],
65+
"aspects": ["noHref", "invalidHref", "preferButton"]
66+
}
67+
],
68+
"react/jsx-curly-spacing": [
69+
2,
70+
{
71+
"when": "never"
72+
}
73+
],
74+
"react/jsx-no-bind": [
75+
"error",
76+
{
77+
"allowArrowFunctions": true,
78+
"allowBind": false,
79+
"ignoreRefs": true
80+
}
81+
],
82+
"react/jsx-filename-extension": [
83+
1,
84+
{
85+
"extensions": [".js", ".jsx"]
86+
}
87+
],
88+
"no-multiple-empty-lines": [
89+
2,
90+
{
91+
"max": 1,
92+
"maxEOF": 0,
93+
"maxBOF": 0
94+
}
95+
],
96+
"no-use-before-define": [
97+
2,
98+
{
99+
"functions": false
100+
}
101+
]
102+
},
103+
"globals": {
104+
"window": true,
105+
"document": true,
106+
"localStorage": true,
107+
"FormData": true,
108+
"FileReader": true,
109+
"Blob": true,
110+
"navigator": true
111+
},
112+
"parser": "babel-eslint",
113+
"settings": {
114+
"import/resolver": "meteor"
115+
},
116+
"env": {
117+
"jest": true
118+
}
119+
}

.prettierrc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"arrowParens": "always",
3-
"bracketSpacing": true,
4-
"htmlWhitespaceSensitivity": "css",
5-
"insertPragma": false,
6-
"jsxBracketSameLine": false,
7-
"jsxSingleQuote": true,
8-
"proseWrap": "preserve",
9-
"quoteProps": "as-needed",
10-
"requirePragma": false,
11-
"semi": true,
12-
"singleQuote": true,
13-
"tabWidth": 2,
14-
"trailingComma": "all",
15-
"useTabs": true,
16-
"vueIndentScriptAndStyle": false,
17-
"printWidth": 80
18-
}
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"htmlWhitespaceSensitivity": "css",
5+
"insertPragma": false,
6+
"jsxBracketSameLine": false,
7+
"jsxSingleQuote": true,
8+
"proseWrap": "preserve",
9+
"quoteProps": "as-needed",
10+
"requirePragma": false,
11+
"semi": true,
12+
"singleQuote": true,
13+
"tabWidth": 2,
14+
"trailingComma": "all",
15+
"useTabs": true,
16+
"printWidth": 80
17+
}

0 commit comments

Comments
 (0)