Skip to content

Commit 5a6a437

Browse files
authored
chore: add project field to eslint parser options (#2122)
The project field causes eslint to look up the closest tsconfig.json when linting ts files instead of always going to the root of the project to find it. Reverts #2109 Fixes #2095
1 parent c88de8e commit 5a6a437

File tree

40 files changed

+39
-6
lines changed

40 files changed

+39
-6
lines changed

doc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"eslintConfig": {
1616
"extends": "ipfs",
1717
"parserOptions": {
18+
"project": true,
1819
"sourceType": "module"
1920
}
2021
},

examples/auto-relay/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/chat/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/connection-encryption/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/discovery-mechanisms/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/echo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/libp2p-in-the-browser/websockets/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/peer-and-content-routing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/pnet/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

examples/protocol-and-stream-muxing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslintConfig": {
2222
"extends": "ipfs",
2323
"parserOptions": {
24+
"project": true,
2425
"sourceType": "module"
2526
}
2627
},

0 commit comments

Comments
 (0)