Skip to content

Commit e938e87

Browse files
chore: upgrade package dependencies
1 parent ff2464a commit e938e87

File tree

5 files changed

+23217
-25094
lines changed

5 files changed

+23217
-25094
lines changed

.eslintrc.json

Lines changed: 11 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"es2020": true,
66
"jest": true
77
},
8-
"extends": ["plugin:react/recommended", "airbnb"],
8+
"extends": ["plugin:react/recommended"],
99
"parserOptions": {
1010
"ecmaFeatures": {
1111
"jsx": true
@@ -14,21 +14,11 @@
1414
},
1515
"plugins": ["react", "react-hooks"],
1616
"rules": {
17-
"linebreak-style": ["error", "unix"],
18-
"import/no-named-as-default": 1,
19-
"quotes": ["error", "single"],
20-
"semi": ["error", "always"],
21-
"class-methods-use-this": ["off"],
17+
"arrow-parens": ["error", "as-needed"],
2218
"complexity": ["off", 11],
23-
"no-magic-numbers": [
24-
"error",
25-
{
26-
"ignore": [1],
27-
"ignoreArrayIndexes": true,
28-
"enforceConst": true,
29-
"detectObjects": false
30-
}
31-
],
19+
"no-unused-vars": "warn",
20+
"no-console": "warn",
21+
"quotes": ["error", "single"],
3222
"react/button-has-type": [
3323
"error",
3424
{
@@ -37,64 +27,11 @@
3727
"reset": true
3828
}
3929
],
40-
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
41-
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": false }],
42-
"react/destructuring-assignment": ["error", "always"],
43-
"react/forbid-component-props": ["error"],
44-
"react/forbid-prop-types": ["error"],
45-
"react/no-did-mount-set-state": ["error"],
46-
"react/no-did-update-set-state": ["error"],
47-
"react/no-multi-comp": ["error", { "ignoreStateless": false }],
48-
"react/no-access-state-in-setstate": ["error"],
49-
"react/no-redundant-should-component-update": ["error"],
50-
"react/no-this-in-sfc": ["error"],
51-
"react/no-typos": ["error"],
52-
"react/no-unsafe": ["error"],
53-
"react/no-unused-state": ["error"],
54-
"react/no-will-update-set-state": ["error"],
55-
"react/prefer-es6-class": ["error", "always"],
56-
"react/self-closing-comp": ["error"],
57-
"react/state-in-constructor": ["error", "always"],
58-
"react/void-dom-elements-no-children": ["error"],
59-
"react/jsx-closing-bracket-location": ["error"],
60-
"react/jsx-closing-tag-location": ["error"],
61-
"react/jsx-curly-newline": ["error"],
62-
"react/jsx-fragments": ["error"],
63-
"react/jsx-max-depth": ["error", { "max": 8 }],
64-
"react/jsx-no-useless-fragment": ["error"],
65-
"react/jsx-curly-spacing": ["error", { "when": "always" }],
66-
"react/jsx-equals-spacing": ["error", "never"],
67-
"react/jsx-first-prop-new-line": ["error", "multiline"],
68-
"react/jsx-indent": [
69-
"error",
70-
2,
71-
{ "checkAttributes": true, "indentLogicalExpressions": true }
72-
],
73-
"react/jsx-indent-props": ["error", 2],
74-
"react/jsx-key": ["error"],
75-
"react/jsx-max-props-per-line": ["error", { "maximum": 1, "when": "multiline" }],
76-
"react/jsx-tag-spacing": [
77-
"error",
78-
{
79-
"closingSlash": "never",
80-
"beforeSelfClosing": "always",
81-
"afterOpening": "never",
82-
"beforeClosing": "never"
83-
}
84-
],
85-
"react/jsx-wrap-multilines": [
86-
"error",
87-
{
88-
"declaration": "parens",
89-
"assignment": "parens",
90-
"return": "parens",
91-
"arrow": "parens",
92-
"condition": "ignore",
93-
"logical": "ignore",
94-
"prop": "ignore"
95-
}
96-
],
97-
"react-hooks/rules-of-hooks": "error",
98-
"react-hooks/exhaustive-deps": "error"
30+
"react/jsx-closing-bracket-location": "error",
31+
"react/jsx-equals-spacing": "error",
32+
"react/jsx-props-no-multi-spaces": "error",
33+
"react/jsx-curly-brace-presence": "error",
34+
"react-hooks/rules-of-hooks": "error",
35+
"react-hooks/exhaustive-deps": "error"
9936
}
10037
}

0 commit comments

Comments
 (0)