Skip to content

Commit

Permalink
Fix project eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Nov 11, 2022
1 parent 8d9d1ce commit c182a4c
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('./../../../');
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 c182a4c

Please sign in to comment.