Skip to content

Commit

Permalink
Merge pull request rancher#11506 from rak-phillip/chore/update-vue3-s…
Browse files Browse the repository at this point in the history
…cript

Use `process.cwd()` for locating eslint files
  • Loading branch information
rak-phillip authored Jul 26, 2024
2 parents d232aae + 5ac0d9d commit 0b5cf09
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 0b5cf09

Please sign in to comment.