Skip to content

Commit

Permalink
Use process.cwd() for locating eslint files
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Rak <[email protected]>
  • Loading branch information
rak-phillip committed Jul 22, 2024
1 parent ba26cf5 commit 5ac0d9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/scripts/vue-migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fs = require('fs');
const glob = require('glob');
const semver = require('semver');
const path = require('path');

/**
* Init logger
*/
Expand Down Expand Up @@ -524,7 +525,7 @@ const eslintUpdates = () => {
});

// Add the new rules if they don't exist
const eslintConfigPath = path.join(__dirname, `../${ file }`);
const eslintConfigPath = path.join(process.cwd(), `${ file }`);
const eslintConfig = require(eslintConfigPath);

Object.keys(newRules).forEach((rule) => {
Expand Down

0 comments on commit 5ac0d9d

Please sign in to comment.