diff --git a/app/client/.lintstagedrc b/app/client/.lintstagedrc index 023cdcb7dd..b1c5210b30 100644 --- a/app/client/.lintstagedrc +++ b/app/client/.lintstagedrc @@ -1,3 +1,3 @@ { - "src/**/*.tsx": ["eslint --fix", "prettier --write", "git add"] + "src/**/*.tsx": ["./node_modules/eslint/bin/eslint.js --fix", "prettier --write", "git add"] } diff --git a/app/client/package.json b/app/client/package.json index af85464eb6..1f5123649a 100644 --- a/app/client/package.json +++ b/app/client/package.json @@ -28,8 +28,8 @@ "axios": "^0.18.0", "flow-bin": "^0.91.0", "fontfaceobserver": "^2.1.0", - "jsonpath-plus": "^1.0.0", "husky": "^3.0.5", + "jsonpath-plus": "^1.0.0", "lint-staged": "^9.2.5", "lodash": "^4.17.11", "nanoid": "^2.0.4", @@ -75,9 +75,11 @@ "@typescript-eslint/eslint-plugin": "^2.0.0", "@typescript-eslint/parser": "^2.0.0", "dotenv": "^8.1.0", + "eslint": "^6.4.0", "eslint-config-prettier": "^6.1.0", "eslint-config-react": "^1.1.7", "eslint-plugin-prettier": "^3.1.0", + "eslint-plugin-react": "^7.14.3", "redux-devtools": "^3.5.0" }, "husky": { diff --git a/app/client/yarn.lock b/app/client/yarn.lock index fc7be7c600..4591892181 100644 --- a/app/client/yarn.lock +++ b/app/client/yarn.lock @@ -4298,7 +4298,7 @@ eslint-plugin-react-hooks@^1.6.1: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04" integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA== -eslint-plugin-react@7.14.3: +eslint-plugin-react@7.14.3, eslint-plugin-react@^7.14.3: version "7.14.3" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.14.3.tgz#911030dd7e98ba49e1b2208599571846a66bdf13" integrity sha512-EzdyyBWC4Uz2hPYBiEJrKCUi2Fn+BJ9B/pJQcjw5X+x/H2Nm59S4MJIvL4O5NEE0+WbnQwEBxWY03oUk+Bc3FA== @@ -4392,6 +4392,49 @@ eslint@^6.1.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" +eslint@^6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.4.0.tgz#5aa9227c3fbe921982b2eda94ba0d7fae858611a" + integrity sha512-WTVEzK3lSFoXUovDHEbkJqCVPEPwbhCq4trDktNI6ygs7aO41d4cDT0JFAT5MivzZeVLWlg7vHL+bgrQv/t3vA== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.10.0" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^5.0.0" + eslint-utils "^1.4.2" + eslint-visitor-keys "^1.1.0" + espree "^6.1.1" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^11.7.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^6.4.1" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.14" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.2" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^6.1.2" + strip-ansi "^5.2.0" + strip-json-comments "^3.0.1" + table "^5.2.3" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + espree@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/espree/-/espree-6.1.1.tgz#7f80e5f7257fc47db450022d723e356daeb1e5de"