Browse Source

update eslint

Upgraded to fix errors. See https://github.com/babel/babel-eslint/issues/530
master
james hadfield 3 years ago
parent
commit
4a12316d87
  1. 6
      .eslintrc
  2. 12
      package.json

6
.eslintrc

@ -50,6 +50,12 @@ rules:
indent: ["error", 2, {"MemberExpression": "off", "SwitchCase": 1}]
react-hooks/rules-of-hooks: "error"
react-hooks/exhaustive-deps: "warn"
object-curly-newline: off
operator-linebreak: ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }]
react/destructuring-assignment: off
prefer-destructuring: off
implicit-arrow-linebreak: off
jsx-quotes: off
parserOptions:
ecmaVersion: 6
sourceType: module

12
package.json

@ -68,13 +68,11 @@
"es6-object-assign": "^1.1.0",
"es6-promise": "~1.0.0",
"es6-promise-polyfill": "^1.2.0",
"eslint": "^5.14.1",
"eslint-config-airbnb": "^15.1.0",
"eslint-config-defaults": "^7.0.1",
"eslint-plugin-filenames": "^0.1.2",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.2.1",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.6.0",
"express": "^4.16.3",
"express-naked-redirect": "^0.1.2",

Loading…
Cancel
Save