Skip to content

Commit 2e1d016

Browse files
authored
Add ESLint as peer dependency
It is required by ESLint documentation (https://eslint.org/docs/developer-guide/working-with-plugins#peer-dependency), and causes a warning with Yarn: ``` eslint-plugin-fp-ts@npm:0.3.0 doesn't provide eslint ```
1 parent 419166b commit 2e1d016

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

package.json

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"name": "eslint-plugin-fp-ts",
33
"version": "0.3.0",
44
"description": "fp-ts ESLint rules",
5-
"keywords": [
6-
"eslint",
7-
"eslintplugin",
8-
"eslint-plugin",
9-
"fp-ts"
10-
],
5+
"keywords": ["eslint", "eslintplugin", "eslint-plugin", "fp-ts"],
116
"author": "buildo",
127
"main": "lib/index.js",
138
"repository": {
@@ -22,9 +17,7 @@
2217
"test": "jest",
2318
"lint": "eslint src/**/*.ts"
2419
},
25-
"files": [
26-
"lib"
27-
],
20+
"files": ["lib"],
2821
"dependencies": {
2922
"@typescript-eslint/experimental-utils": "^5.0.0",
3023
"estraverse": "^5.2.0",
@@ -46,6 +39,9 @@
4639
"ts-jest": "^26.4.4",
4740
"typescript": "^4.1.3"
4841
},
42+
"peerDependencies": {
43+
"eslint": "^8.0.0"
44+
},
4945
"engines": {
5046
"node": ">=0.10.0"
5147
},

0 commit comments

Comments
 (0)