Skip to content

Commit 1d027ba

Browse files
committed
ESlintのparsing errorとlint実行時のファイルパスエラー(...functions/functilns/tsconfig.json)を修正
functions内の.eslintrc.jsにて、parserOptionsのprojectパスを修正。相対パスじゃないとエラーになった。 parserOptions: { // これによってfunctions内のエラーは治った(プロジェクトルートを使う"tsconfig.json"のようにするとlint実行時にエラー) project: ["./tsconfig.json", "./functions/tsconfig.json"], sourceType: "module", },
1 parent da6ede1 commit 1d027ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module.exports = {
1414
],
1515
parser: "@typescript-eslint/parser",
1616
parserOptions: {
17-
// これによってfunctions内のエラーは治った
18-
project: ["./tsconfig.json"],
17+
// これによってfunctions内のエラーは治った(プロジェクトルートを使う"tsconfig.json"のようにするとlint実行時にエラー)
18+
project: ["./tsconfig.json", "./functions/tsconfig.json"],
1919
sourceType: "module",
2020
},
2121
ignorePatterns: ["/lib/**/*", "/generated/**/*"],

0 commit comments

Comments
 (0)