diff options
author | eug-vs <eug-vs@keemail.me> | 2020-03-21 14:42:20 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-03-21 14:42:20 +0300 |
commit | de2a49bf1bf0e4c2f09ddcd0f2a86dff7062d8ea (patch) | |
tree | 8877dd182e80cd671b15f5d5ed231a76197062e1 | |
parent | e32c8be0a4b7f135c01449c3603da347728819a8 (diff) | |
download | chrono-cube-ui-de2a49bf1bf0e4c2f09ddcd0f2a86dff7062d8ea.tar.gz |
chore: update eslint to use typescript rules
-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" |