Skip to content

Commit

Permalink
fix(deps): add downstream peer dependencies
Browse files Browse the repository at this point in the history
Fixes iamturns#6 by adding downstream peer dependencies to this package (we add
the React specific dependencies as optional).

This also enables Yarn v2 support (which requires upstream packages to
include their dependency's peer dependencies).
  • Loading branch information
nicholaschiang committed Jul 31, 2020
1 parent 34df9bb commit a822a80
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
"eslint-config-airbnb-base": "^14.2.0"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^3.6.1"
"@typescript-eslint/eslint-plugin": "^3.6.1",
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.3.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "3.6.1",
Expand All @@ -55,5 +60,16 @@
"javascript",
"styleguide",
"typescript"
]
],
"peerDependenciesMeta": {
"eslint-plugin-jsx-a11y": {
"optional": true
},
"eslint-plugin-react": {
"optional": true
},
"eslint-plugin-react-hooks": {
"optional": true
}
}
}

0 comments on commit a822a80

Please sign in to comment.