mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-13 05:11:09 +01:00
Make ESLint's TS Root dir relative to .eslintrc.js (#31411)
* Make ESLint's TS Root dir relative to .eslintrc.js As per https://github.com/typescript-eslint/typescript-eslint/issues/251 seems like this is the answer for having vscode not getting confused about multiple projects in a monorepo with different tsconfigs. * Add it here too for good measure
This commit is contained in:
parent
a352a3838e
commit
81b3ec9df2
@ -10,6 +10,7 @@ module.exports = {
|
|||||||
extends: ["plugin:matrix-org/babel", "plugin:matrix-org/react", "plugin:matrix-org/a11y"],
|
extends: ["plugin:matrix-org/babel", "plugin:matrix-org/react", "plugin:matrix-org/a11y"],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ["./tsconfig.json"],
|
project: ["./tsconfig.json"],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
|
|||||||
@ -16,6 +16,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ["./tsconfig.json"],
|
project: ["./tsconfig.json"],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user