Skip to content

Commit

Permalink
Added typescript eslint packages as peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chungweileong94 committed Oct 8, 2020
1 parent 4491e5e commit 29a794c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base/package.json
Expand Up @@ -43,4 +43,4 @@
"@typescript-eslint/parser": "^4.4.0",
"typescript": "^4.0.3"
}
}
}
4 changes: 1 addition & 3 deletions dependencies.js
Expand Up @@ -9,9 +9,7 @@ const PACKAGE_PATHS = [
path: './base/package.json'
},
{
path: './react/package.json',
// eslint-config-react-app came with another version
ignorePackages: ['@typescript-eslint/eslint-plugin', '@typescript-eslint/parser']
path: './react/package.json'
}
];

Expand Down
10 changes: 7 additions & 3 deletions react/package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-config-whiteroom-react",
"version": "1.0.2",
"version": "1.0.3",
"description": "White Room (React) Eslint Configuration",
"author": "Chung Wei <leongchungwei@hotmail.com>",
"repository": {
Expand Down Expand Up @@ -28,7 +28,9 @@
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.1.2",
"eslint-config-prettier": "^6.12.0",
"typescript": "^4.0.3"
"typescript": "^4.0.3",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0"
},
"peerDependencies": {
"eslint": "^5.16.0 || ^6.7.2",
Expand All @@ -43,6 +45,8 @@
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.1.2",
"eslint-config-prettier": "^6.12.0",
"typescript": "^4.0.3"
"typescript": "^4.0.3",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0"
}
}
1 change: 0 additions & 1 deletion react/rules/typescript.js
Expand Up @@ -7,7 +7,6 @@ module.exports = {
warnOnUnsupportedTypeScriptVersion: true
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'react/prop-types': 'off'
}
}
Expand Down

0 comments on commit 29a794c

Please sign in to comment.