diff --git a/.eslintrc.json b/.eslintrc.cjs similarity index 97% rename from .eslintrc.json rename to .eslintrc.cjs index 17afd1b83..af0b9c9e4 100644 --- a/.eslintrc.json +++ b/.eslintrc.cjs @@ -1,4 +1,4 @@ -{ +module.exports = { "extends": "standard-with-typescript", "root": true, "rules": { @@ -146,6 +146,7 @@ "project": [ "./tsconfig.eslint.json" ], - "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true + "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true, + "tsconfigRootDir": __dirname } } diff --git a/client/.eslintrc.json b/client/.eslintrc.cjs similarity index 97% rename from client/.eslintrc.json rename to client/.eslintrc.cjs index d00e6e7ab..5c2e1ae32 100644 --- a/client/.eslintrc.json +++ b/client/.eslintrc.cjs @@ -1,4 +1,4 @@ -{ +module.exports = { "root": true, "ignorePatterns": [ "projects/**/*", @@ -15,10 +15,11 @@ "tsconfig.eslint.json" ], "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true, - "createDefaultProgram": false + "createDefaultProgram": false, + "tsconfigRootDir": __dirname, }, "extends": [ - "../.eslintrc.json", + "../.eslintrc.cjs", "plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates" ],