From 365c9cfa9345effca1ea2ea56054319c57d80d2d Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 6 Feb 2020 17:19:25 +0300 Subject: feat: configure ESlint for Typescript --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index a70bd90..0ad0d02 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,10 @@ ], "scripts": { "start": "react-scripts start", - "test": "eslint . && tsc", + "lint": "eslint . --ext ts,tsx", + "test": "npm run lint && tsc", "build": "rm -rf dist && tsc --project ts-compile-config.json", - "deploy": "eslint src/lib && npm run build && npm publish --public" + "deploy": "npm run lint && npm run build && npm publish --public" }, "license": "MIT", "dependencies": { @@ -28,6 +29,8 @@ "@types/react-dom": "^16.9.5", "@types/react-virtualized-auto-sizer": "^1.0.0", "@types/react-window": "^1.8.1", + "@typescript-eslint/eslint-plugin": "^2.19.0", + "@typescript-eslint/parser": "^2.19.0", "eslint": "^6.8.0", "eslint-config-react-app": "^5.1.0", "react-scripts": "^3.3.1", -- cgit v1.2.3