Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d0dbe7

Browse files
chore: update dependency @types/eslint to v9 (#1940)
1 parent c5a70bb commit 2d0dbe7

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@swc/cli": "0.4.0",
6969
"@swc/core": "1.7.10",
7070
"@swc/helpers": "0.5.12",
71-
"@types/eslint": "8.56.11",
71+
"@types/eslint": "9.6.0",
7272
"@types/eslint-scope": "3.7.7",
7373
"@types/jest": "29.4.4",
7474
"@types/node": "20.14.15",

packages/schematics/src/migrations/update-12-0-0/update-12-0-0.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ function migrateToAccessibilityLabelHasAssociatedControlSchema(
2121
};
2222
}
2323

24-
function migrateFromAccessibilityLabelFor({ overrides, rules }: Linter.Config) {
24+
function migrateFromAccessibilityLabelFor({
25+
overrides,
26+
rules,
27+
}: Linter.LegacyConfig) {
2528
migrateToAccessibilityLabelHasAssociatedControlSchema(
2629
rules?.['@angular-eslint/template/accessibility-label-for'],
2730
);

packages/schematics/src/migrations/update-2-0-0/update-2-0-0.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ function updateRelevantDependencies(host: Tree, context: SchematicContext) {
6363
})(host, context);
6464
}
6565

66-
function removeRuleFromESLintConfig(ruleName: string, config: Linter.Config) {
66+
function removeRuleFromESLintConfig(
67+
ruleName: string,
68+
config: Linter.LegacyConfig,
69+
) {
6770
if (config.rules && config.rules[ruleName]) {
6871
delete config.rules[ruleName];
6972
}

packages/schematics/src/migrations/update-3-0-0/update-3-0-0.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ function updateRelevantDependencies(host: Tree, context: SchematicContext) {
4848
})(host, context);
4949
}
5050

51-
function addRecommendedExtraExtendsWhereApplicable(config: Linter.Config) {
51+
function addRecommendedExtraExtendsWhereApplicable(
52+
config: Linter.LegacyConfig,
53+
) {
5254
// Convert extends to array if applicable
5355
if (
5456
typeof config.extends === 'string' &&
@@ -110,7 +112,7 @@ function removeNegativeValuesFromComponentMaxInlineDeclarations(
110112
function updateComponentMaxInlineDeclarationsSchema({
111113
overrides,
112114
rules,
113-
}: Linter.Config) {
115+
}: Linter.LegacyConfig) {
114116
removeNegativeValuesFromComponentMaxInlineDeclarations(
115117
rules?.['@angular-eslint/component-max-inline-declarations'],
116118
);

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)