From 47ba7a3debdcf32586a2a1959b4950e46ce19f8e Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Wed, 16 Nov 2022 00:14:15 +0200 Subject: [PATCH] test(estlint): Fix .project.eslintrc.js --- .project.eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.project.eslintrc.js b/.project.eslintrc.js index cfefd89..765070f 100644 --- a/.project.eslintrc.js +++ b/.project.eslintrc.js @@ -1,7 +1,9 @@ const fs = require('fs'); const path = require('path'); -const projectRootPath = fs.realpathSync('./project'); // __dirname +const projectRootPath = fs.existsSync('./project') + ? fs.realpathSync('./project') + : fs.realpathSync('./../../../'); const packageJson = require(path.join(projectRootPath, 'package.json')); const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;