From 76e3a6e4000f9aa3db208d057227c0ceea7ad38d Mon Sep 17 00:00:00 2001 From: kreafox Date: Mon, 14 Nov 2022 14:54:18 +0200 Subject: [PATCH] Fix project eslintrc --- .project.eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.project.eslintrc.js b/.project.eslintrc.js index 3c58adea0..9565afeb3 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('./../../../'); +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;