diff options
author | ilyayudovin <46264063+ilyayudovin@users.noreply.github.com> | 2020-06-06 20:06:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 20:06:16 +0300 |
commit | 7b932411d847a85f42015eb39d55b457675c714e (patch) | |
tree | 2a4e2bc89116105ae269e83b30c966fab0f0c19f /package.json | |
parent | bdf533b43a6b9fab5420c86716c9611ce857d761 (diff) | |
parent | c1a8bfa68cd9e93bdee795ef292b1ddeb1f238c3 (diff) | |
download | which-ui-7b932411d847a85f42015eb39d55b457675c714e.tar.gz |
Merge pull request #7 from ilyayudovin/eslint
Configure eslint
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/package.json b/package.json index 575783c..9c772eb 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "@types/node": "^12.12.44", "@types/react": "^16.9.35", "@types/react-dom": "^16.9.8", + "eslint-config-airbnb-typescript": "^8.0.2", "react": "^16.13.1", "react-dom": "^16.13.1", "react-scripts": "3.4.1", @@ -13,7 +14,8 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build" + "build": "react-scripts build", + "lint": "eslint . --ext ts,tsx --max-warnings 0" }, "browserslist": { "production": [ @@ -26,5 +28,15 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^3.1.0", + "@typescript-eslint/parser": "^3.1.0", + "eslint": "^6.8.0", + "eslint-config-airbnb": "^18.1.0", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-jsx-a11y": "^6.2.3", + "eslint-plugin-react": "^7.20.0", + "eslint-plugin-react-hooks": "^2.5.1" } } |