mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-17 17:27:52 +03:00
prefer-destructuring & react/prop-types
This commit is contained in:
parent
83d49a7666
commit
8a7f41eb3a
11
.eslintrc.js
11
.eslintrc.js
@ -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
1735
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user