Skip to content

Commit 03506a4

Browse files
committed
docs: add tsconfigRootDir to READMEs config examples
1 parent 9642771 commit 03506a4

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default tseslint.config({
6464
parser: tseslint.parser,
6565
parserOptions: {
6666
projectService: true,
67+
tsconfigRootDir: import.meta.dirname,
6768
},
6869
},
6970
rules: {

packages/plugins/eslint-plugin-react-debug/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default tseslint.config({
3030
parser: tseslint.parser,
3131
parserOptions: {
3232
projectService: true,
33+
tsconfigRootDir: import.meta.dirname,
3334
},
3435
},
3536
rules: {

packages/plugins/eslint-plugin-react-dom/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default tseslint.config({
3030
parser: tseslint.parser,
3131
parserOptions: {
3232
projectService: true,
33+
tsconfigRootDir: import.meta.dirname,
3334
},
3435
},
3536
rules: {

packages/plugins/eslint-plugin-react-hooks-extra/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default tseslint.config({
3030
parser: tseslint.parser,
3131
parserOptions: {
3232
projectService: true,
33+
tsconfigRootDir: import.meta.dirname,
3334
},
3435
},
3536
rules: {

packages/plugins/eslint-plugin-react-naming-convention/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default tseslint.config({
3232
parser: tseslint.parser,
3333
parserOptions: {
3434
projectService: true,
35+
tsconfigRootDir: import.meta.dirname,
3536
},
3637
},
3738
rules: {

packages/plugins/eslint-plugin-react-web-api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default tseslint.config({
3030
parser: tseslint.parser,
3131
parserOptions: {
3232
projectService: true,
33+
tsconfigRootDir: import.meta.dirname,
3334
},
3435
},
3536
rules: {

packages/plugins/eslint-plugin-react-x/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default tseslint.config({
3030
parser: tseslint.parser,
3131
parserOptions: {
3232
projectService: true,
33+
tsconfigRootDir: import.meta.dirname,
3334
},
3435
},
3536
rules: {

packages/plugins/eslint-plugin/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default tseslint.config({
6464
parser: tseslint.parser,
6565
parserOptions: {
6666
projectService: true,
67+
tsconfigRootDir: import.meta.dirname,
6768
},
6869
},
6970
rules: {

0 commit comments

Comments
 (0)