Skip to content

Commit

Permalink
fix: Upgrade ESLint to fix type errors (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored Sep 25, 2024
1 parent 5cb3dad commit d0c879e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"common-tags": "^1.8.2",
"eslint": "^9.4.0",
"eslint": "^9.11.1",
"eslint-config-eslint": "^11.0.0",
"got": "^14.4.1",
"lint-staged": "^15.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"homepage": "https://github.com/eslint/rewrite#readme",
"devDependencies": {
"@types/eslint": "^9.6.0",
"@eslint/core": "^0.6.0",
"c8": "^9.1.0",
"eslint": "^9.0.0",
"mocha": "^10.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/src/fixup-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** @typedef {import("eslint").ESLint.Plugin} FixupPluginDefinition */
/** @typedef {import("eslint").Rule.RuleModule} FixupRuleDefinition */
/** @typedef {FixupRuleDefinition["create"]} FixupLegacyRuleDefinition */
/** @typedef {import("eslint").Linter.FlatConfig} FixupConfig */
/** @typedef {import("eslint").Linter.Config} FixupConfig */
/** @typedef {Array<FixupConfig>} FixupConfigArray */

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/src/ignore-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import path from "node:path";
// Types
//-----------------------------------------------------------------------------

/** @typedef {import("eslint").Linter.FlatConfig} FlatConfig */
/** @typedef {import("eslint").Linter.Config} FlatConfig */

//-----------------------------------------------------------------------------
// Exports
Expand Down
6 changes: 6 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ async function calculatePackageDependencies(packageDirs) {
}
}

if (pkg.devDependencies) {
for (const dep of Object.keys(pkg.devDependencies)) {
dependencies.add(dep);
}
}

return [
pkg.name,
{ name: pkg.name, dir: packageDir, dependencies },
Expand Down

0 comments on commit d0c879e

Please sign in to comment.