Skip to content

Commit

Permalink
fixed(lint): projectRootPath path reference used by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Mar 26, 2024
1 parent 4052b3f commit c3311cb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c3311cb

Please sign in to comment.