From c1a8bfa68cd9e93bdee795ef292b1ddeb1f238c3 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Sat, 6 Jun 2020 19:57:15 +0300 Subject: style: configure eslint --- package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'package.json') 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" } } -- cgit v1.2.3