Skip to content

Commit 8bf1a70

Browse files
fix local linting with linked dev dependency
hacky solution... ref. https://stevenpetryk.com/blog/custom-eslint-rules/
1 parent 2c9c287 commit 8bf1a70

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"plugins": ["./lib"],
3+
"plugins": ["fp-ts"],
44
"extends": "plugin:fp-ts/all",
55
"rules": {
66
"fp-ts/no-module-imports": [

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@typescript-eslint/parser": "^5.0.0",
4141
"common-tags": "^1.8.0",
4242
"eslint": "^8.0.0",
43+
"eslint-plugin-fp-ts": "link:./lib",
4344
"jest": "^26.6.3",
4445
"rimraf": "^3.0.2",
4546
"ts-jest": "^26.4.4",

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ escodegen@^1.14.1:
14331433
optionalDependencies:
14341434
source-map "~0.6.1"
14351435

1436+
"eslint-plugin-fp-ts@link:./lib":
1437+
version "0.0.0"
1438+
uid ""
1439+
14361440
eslint-scope@^5.1.1:
14371441
version "5.1.1"
14381442
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"

0 commit comments

Comments
 (0)