Skip to content

Commit

Permalink
chore: upgrade @types/eslint to v9 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime authored Jul 29, 2024
1 parent 65eb4d3 commit 0f0fb92
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const eslintPluginJSDoc = eslintConfigESLint.find(

export default [
{
ignores: ["**/tests/fixtures/", "**/dist/"],
ignores: ["**/tests/fixtures/", "**/dist/", "**/coverage/"],
},

...eslintConfigESLint,
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": "^8.56.10",
"@types/eslint": "^9.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 @@ -9,7 +9,7 @@

/** @typedef {import("eslint").ESLint.Plugin} FixupPluginDefinition */
/** @typedef {import("eslint").Rule.RuleModule} FixupRuleDefinition */
/** @typedef {import("eslint").Rule.OldStyleRule} FixupLegacyRuleDefinition */
/** @typedef {FixupRuleDefinition["create"]} FixupLegacyRuleDefinition */
/** @typedef {import("eslint").Linter.FlatConfig} FixupConfig */
/** @typedef {Array<FixupConfig>} FixupConfigArray */

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"homepage": "https://github.com/eslint/rewrite#readme",
"devDependencies": {
"@types/eslint": "^8.56.10",
"@types/eslint": "^9.6.0",
"eslint": "^9.0.0",
"mocha": "^10.4.0",
"typescript": "^5.4.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"homepage": "https://github.com/eslint/rewrite#readme",
"devDependencies": {
"@types/eslint": "^8.56.10",
"@types/eslint": "^9.6.0",
"eslint": "^9.0.0",
"mocha": "^10.4.0",
"typescript": "^5.4.5"
Expand Down
16 changes: 8 additions & 8 deletions packages/migrate-config/src/migrate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { convertIgnorePatternToMinimatch } from "@eslint/compat";
//-----------------------------------------------------------------------------

/** @typedef {import("eslint").Linter.FlatConfig} FlatConfig */
/** @typedef {import("eslint").Linter.Config} Config */
/** @typedef {import("eslint").Linter.LegacyConfig} LegacyConfig */
/** @typedef {import("eslint").Linter.ConfigOverride} ConfigOverride */
/** @typedef {import("recast").types.namedTypes.ObjectExpression} ObjectExpression */
/** @typedef {import("recast").types.namedTypes.ArrayExpression} ArrayExpression */
Expand Down Expand Up @@ -51,7 +51,7 @@ const linterOptionsKeysToCopy = [
class Migration {
/**
* The config to migrate.
* @type {Config}
* @type {LegacyConfig}
*/
config;

Expand Down Expand Up @@ -81,7 +81,7 @@ class Migration {

/**
* Creates a new Migration object.
* @param {Config} config The config to migrate.
* @param {LegacyConfig} config The config to migrate.
*/
constructor(config) {
this.config = config;
Expand Down Expand Up @@ -266,7 +266,7 @@ function createGitignoreEntry(migration) {

/**
* Creates the globals object from the config.
* @param {Config} config The config to create globals from.
* @param {LegacyConfig} config The config to create globals from.
* @returns {ObjectExpression|undefined} The globals object or undefined if none.
*/
function createGlobals(config) {
Expand Down Expand Up @@ -380,7 +380,7 @@ function createGlobals(config) {

/**
* Creates the linter options object from the config.
* @param {Config} config The config to create linter options from.
* @param {LegacyConfig} config The config to create linter options from.
* @returns {ObjectExpression|undefined} The linter options object or undefined if none.
*/
function createLinterOptions(config) {
Expand Down Expand Up @@ -454,7 +454,7 @@ function createFilesArray(patterns) {
/**
* Creates an object expression for the language options.
* @param {Migration} migration The migration object.
* @param {Config} config The config to create language options from.
* @param {LegacyConfig} config The config to create language options from.
* @returns {ObjectExpression|undefined} The AST for the object expression or undefined if none.
*/
function createLanguageOptions(migration, config) {
Expand Down Expand Up @@ -623,7 +623,7 @@ function createPlugins(plugins, migration) {

/**
* Creates an object expression for the `ignorePatterns` property.
* @param {Config} config The config to create the object expression for.
* @param {LegacyConfig} config The config to create the object expression for.
* @returns {ObjectExpression} The AST for the object expression.
*/
function createGlobalIgnores(config) {
Expand Down Expand Up @@ -835,7 +835,7 @@ function migrateConfigObject(migration, config) {

/**
* Migrates an eslintrc config to flat config format.
* @param {Config} config The eslintrc config to migrate.
* @param {LegacyConfig} config The eslintrc config to migrate.
* @param {Object} [options] Options for the migration.
* @param {"module"|"commonjs"} [options.sourceType] The module type to use.
* @param {boolean} [options.gitignore] `true` to include contents of a .gitignore file.
Expand Down

0 comments on commit 0f0fb92

Please sign in to comment.