Skip to content

Commit

Permalink
test(estlint): Fix .project.eslintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Nov 15, 2022
1 parent 629f0f6 commit 18e06c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .project.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 18e06c3

Please sign in to comment.