From 2c308eed0ae73dc280181254b863cc290eec7abf Mon Sep 17 00:00:00 2001 From: Tiberiu Ichim Date: Wed, 9 Nov 2022 10:36:43 +0200 Subject: [PATCH] Fix project eslintrc --- .project.eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.project.eslintrc.js b/.project.eslintrc.js index cfefd890..fcea1195 100644 --- a/.project.eslintrc.js +++ b/.project.eslintrc.js @@ -1,7 +1,7 @@ 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;