From c3311cbc2fd6c66288588206cb86f2d216b31fbf Mon Sep 17 00:00:00 2001 From: David Ichim Date: Tue, 26 Mar 2024 14:42:17 +0200 Subject: [PATCH] fixed(lint): projectRootPath path reference used by eslint --- .eslintrc.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0af5b3781..b48e68e1b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,12 +3,10 @@ const path = require('path'); 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; + : fs.realpathSync(__dirname + '/../../../'); +const jsConfig = require( + path.join(projectRootPath, 'jsconfig.json'), +).compilerOptions; const pathsConfig = jsConfig.paths;