Unverified Commit ef97a2df authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1247 from hypothesis/update-eslint-config

Update ESLint configuration
parents 9fff1d86 41063758
{
"extends": ["hypothesis", "plugin:react/recommended"],
"extends": ["hypothesis"],
"globals": {
"Set": false
},
"rules": {
"mocha/no-exclusive-tests": "error",
"no-var": "error",
"indent": "off",
"react/self-closing-comp": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
// Suppressed to make ESLint v6 migration easier.
"no-prototype-builtins": "off"
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["mocha", "react", "react-hooks"],
"settings": {
"react": {
"pragma": "createElement",
"version": "16.8"
}
}
}
......@@ -48,7 +48,7 @@
"escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5",
"eslint": "^6.0.1",
"eslint-config-hypothesis": "^1.0.0",
"eslint-config-hypothesis": "^2.0.0",
"eslint-plugin-mocha": "^5.2.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.6.0",
......
......@@ -3129,10 +3129,10 @@ escodegen@~1.1.0:
optionalDependencies:
source-map "~0.1.30"
eslint-config-hypothesis@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-hypothesis/-/eslint-config-hypothesis-1.0.0.tgz#21d47ddd6c0001e84bf6783a3d36c35a2c07d624"
integrity sha1-IdR93WwAAehL9ng6PTbDWiwH1iQ=
eslint-config-hypothesis@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-hypothesis/-/eslint-config-hypothesis-2.0.0.tgz#18c185401d2f9c49cc455861b6a8add7675a1a63"
integrity sha512-B1lR2AAmdMixKePtoXDnbOqsdsI+AtNprdsRkN3K82hZvi4vvdAhZMwMCUJlg5EZK64kQV71/TbdqhPd+0ieJw==
eslint-plugin-mocha@^5.2.1:
version "5.3.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment