diff options
-rw-r--r-- | .eslintrc.json | 7 | ||||
-rw-r--r-- | package.json | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 8c9d6d9..ac05a7f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,10 @@ { - "extends": "react-app", + "parser": "@typescript-eslint/parser", + "extends": [ + "react-app", + "plugin:@typescript-eslint/recommended" + ], + "ignorePatterns": "dist/", "rules": { "jsx-quotes": ["error", "prefer-double"], "quotes": ["error", "single"] diff --git a/package.json b/package.json index 33a67f5..80fb870 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "scripts": { "start": "react-scripts start", + "lint": "eslint . --ext ts,tsx --max-warnings 0", "build": "react-scripts build", "predeploy": "npm run build", "deploy": "gh-pages -d build" |