Skip to content

Commit

Permalink
Added eslint-config-prettier to disable code formatting related rules
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Mar 25, 2019
1 parent 69dc21c commit 3200630
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.js
Expand Up @@ -5,7 +5,11 @@ module.exports = {
project: "./tsconfig.json"
},
plugins: ["@typescript-eslint"],
extends: ["plugin:@typescript-eslint/recommended"],
extends: [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
rules: {
"@typescript-eslint/no-unused-vars": "off"
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -43,6 +43,7 @@
"@types/react-dom": "^16.8.2",
"@typescript-eslint/eslint-plugin": "^1.5.0",
"@typescript-eslint/parser": "^1.5.0",
"eslint-config-prettier": "4.1.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"prettier": "1.16.4",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Expand Up @@ -3431,6 +3431,13 @@ escodegen@^1.9.1:
optionalDependencies:
source-map "~0.6.1"

eslint-config-prettier@4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-4.1.0.tgz#181364895899fff9fd3605fecb5c4f20e7d5f395"
integrity sha512-zILwX9/Ocz4SV2vX7ox85AsrAgXV3f2o2gpIicdMIOra48WYqgUnWNH/cR/iHtmD2Vb3dLSC3LiEJnS05Gkw7w==
dependencies:
get-stdin "^6.0.0"

eslint-config-react-app@^3.0.8:
version "3.0.8"
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-3.0.8.tgz#6f606828ba30bafee7d744c41cd07a3fea8f3035"
Expand Down

0 comments on commit 3200630

Please sign in to comment.