Skip to content

Commit

Permalink
fix(linter): add @eslint/js with correct package version (#19077)
Browse files Browse the repository at this point in the history
Co-authored-by: Nacho Vazquez <nacho.vazquez.dev@gmail.com>
  • Loading branch information
meeroslav and NachoVazquez authored Sep 8, 2023
1 parent 018d997 commit 86594bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { join } from 'path';
import { ESLint } from 'eslint';
import * as ts from 'typescript';
import { eslintrcVersion } from '../../../utils/versions';
import { eslintVersion, eslintrcVersion } from '../../../utils/versions';
import {
createNodeList,
generateAst,
Expand Down Expand Up @@ -255,7 +255,7 @@ function addExtends(
tree,
{},
{
'@eslint/js': eslintrcVersion,
'@eslint/js': eslintVersion,
}
);

Expand All @@ -279,7 +279,7 @@ function addExtends(
tree,
{},
{
'@eslint/js': eslintrcVersion,
'@eslint/js': eslintVersion,
}
);

Expand Down
4 changes: 2 additions & 2 deletions packages/linter/src/generators/init/init-migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
getGlobalFlatEslintConfiguration,
} from './global-eslint-config';
import { useFlatConfig } from '../../utils/flat-config';
import { eslintrcVersion } from '../../utils/versions';
import { eslintVersion } from '../../utils/versions';
import {
addBlockToFlatConfigExport,
addImportToFlatConfig,
Expand All @@ -35,7 +35,7 @@ export function migrateConfigToMonorepoStyle(
tree,
{},
{
'@eslint/js': eslintrcVersion,
'@eslint/js': eslintVersion,
}
);
tree.write(
Expand Down

0 comments on commit 86594bd

Please sign in to comment.