Skip to content

Commit

Permalink
chore: upgrade to eslint9 (#4462)
Browse files Browse the repository at this point in the history
Upgrade to eslint v9 flat config. Custom eslint rules have been tested
and work in the new config file. Removed unused vars in try catch blocks
due to[ breaking change in eslint
v9](eslint/eslint#17932). Use
[globals](https://www.npmjs.com/package/globals) to include [globals
env](https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables)
  • Loading branch information
michael-siek authored May 17, 2024
1 parent 518b345 commit f584e8e
Show file tree
Hide file tree
Showing 31 changed files with 474 additions and 465 deletions.
11 changes: 0 additions & 11 deletions .eslintignore

This file was deleted.

181 changes: 0 additions & 181 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion build/cherry-pick.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ commitsToCherryPick.forEach(({ hash, type, scope, subject }) => {

try {
execSync(`git cherry-pick ${hash} -X theirs`);
} catch (e) {
} catch {
console.error(
chalk.red.bold('\nAborting cherry-pick and reseting to master')
);
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function fileExists(v, o) {
var exists;
try {
exists = fs.existsSync(file);
} catch (e) {
} catch {
return false;
}
return exists;
Expand Down
Loading

0 comments on commit f584e8e

Please sign in to comment.