prefer-destructuring & react/prop-types

This commit is contained in:
Chris Waring 2021-02-17 16:05:30 +00:00
parent 83d49a7666
commit 8a7f41eb3a
No known key found for this signature in database
GPG Key ID: 4D2E767CC8B1C083
3 changed files with 1743 additions and 7 deletions

View File

@ -28,6 +28,7 @@ module.exports = {
rules: {
"prettier/prettier": ["error", {}, { usePrettierrc: true }],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
@ -36,5 +37,15 @@ module.exports = {
aspects: ["invalidHref", "preferButton"],
},
],
"prefer-destructuring": [
"error",
{
array: true,
object: true,
},
{
enforceForRenamedProperties: false,
},
],
},
};

1735
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@
"scripts": {
"dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 node . --unhandled-rejections=strict --max-old-space-size=8192",
"start": "NODE_ENV=production node . --unhandled-rejections=strict --max-old-space-size=8192",
"lint": "eslint **/*.js",
"lint": "eslint . --ext .js",
"lint:fix": "npm run lint -- --fix",
"build": "NODE_ENV=production next build",
"build-system": "rollup -c",
@ -81,7 +81,7 @@
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"eslint": "^7.19.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",