Skip to content

Commit

Permalink
fix: update typescript-eslint packages to v8.0.0-alpha.37 (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jun 30, 2024
1 parent 9103be6 commit afd0f37
Show file tree
Hide file tree
Showing 15 changed files with 76 additions and 155 deletions.
2 changes: 1 addition & 1 deletion e2e/src/__snapshots__/inline-template-fixer.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ exports[`inline-template-fixer should generate the expected inline template fixe
\\"karma-jasmine\\": \\"~5.1.0\\",
\\"karma-jasmine-html-reporter\\": \\"~2.1.0\\",
\\"typescript\\": \\"~5.4.2\\",
\\"typescript-eslint\\": \\"8.0.0-alpha.20\\"
\\"typescript-eslint\\": \\"8.0.0-alpha.37\\"
}"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`new-workspace-create-application-false-ng-add-then-project should pass
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.X.X",
"typescript-eslint": "8.0.0-alpha.20"
"typescript-eslint": "8.0.0-alpha.37"
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`new-workspace-create-application-false-project-then-ng-add should pass
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.X.X",
"typescript-eslint": "8.0.0-alpha.20"
"typescript-eslint": "8.0.0-alpha.37"
}
`;

Expand Down
2 changes: 1 addition & 1 deletion e2e/src/__snapshots__/new-workspace.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`new-workspace should pass linting after creating a new workspace from s
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^18.X.X",
"typescript": "~5.X.X",
"typescript-eslint": "8.0.0-alpha.20"
"typescript-eslint": "8.0.0-alpha.37"
}
`;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@types/node": "20.14.9",
"@types/prettier": "2.7.3",
"@types/semver": "^7.5.8",
"@typescript-eslint/rule-tester": "8.0.0-alpha.20",
"@typescript-eslint/rule-tester": "8.0.0-alpha.37",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"env-cmd": "10.1.0",
Expand All @@ -104,7 +104,7 @@
"tslib": "^2.4.1",
"tsx": "^4.7.3",
"typescript": "5.4.5",
"typescript-eslint": "8.0.0-alpha.20",
"typescript-eslint": "8.0.0-alpha.37",
"verdaccio": "5.31.1"
},
"nx": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/aria-query": "5.0.4"
},
"peerDependencies": {
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20",
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.37",
"eslint": "^8.57.0 || ^9.0.0",
"typescript": "*"
},
Expand Down
29 changes: 0 additions & 29 deletions packages/eslint-plugin/docs/rules/contextual-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -1343,35 +1343,6 @@ class Test {

#### ✅ Valid Code

```ts
@Injectable()
class Test {
ngOnDestroy() { console.log('OnDestroy'); }
}
```

<br>

---

<br>

#### Default Config

```json
{
"rules": {
"@angular-eslint/contextual-lifecycle": [
"error"
]
}
}
```

<br>

#### ✅ Valid Code

```ts
@NgModule()
class Test {
Expand Down
34 changes: 0 additions & 34 deletions packages/eslint-plugin/docs/rules/sort-lifecycle-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,40 +273,6 @@ class Test {

#### ✅ Valid Code

```ts
@Component()
class Test {
ngOnChanges(): void {}
ngOnInit(): void {}
ngAfterContentInit(): void {}
ngAfterContentChecked(): void {}
ngAfterViewChecked(): void {}
ngOnDestroy(): void {}
}
```

<br>

---

<br>

#### Default Config

```json
{
"rules": {
"@angular-eslint/sort-lifecycle-methods": [
"error"
]
}
}
```

<br>

#### ✅ Valid Code

```ts
@Component()
class Test {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@angular-eslint/test-utils": "18.0.1"
},
"peerDependencies": {
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20",
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.37",
"eslint": "^8.57.0 || ^9.0.0",
"typescript": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@ export const valid = [
ngOnInit() { console.log('OnInit'); }
}
`,
`
@Injectable()
class Test {
ngOnDestroy() { console.log('OnDestroy'); }
}
`,
`
@NgModule()
class Test {
Expand Down
11 changes: 0 additions & 11 deletions packages/eslint-plugin/tests/rules/sort-lifecycle-methods/cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ export const valid = [
ngOnDestroy(): void {}
}
`,
`
@Component()
class Test {
ngOnChanges(): void {}
ngOnInit(): void {}
ngAfterContentInit(): void {}
ngAfterContentChecked(): void {}
ngAfterViewChecked(): void {}
ngOnDestroy(): void {}
}
`,
`
@Component()
class Test {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"strip-json-comments": "3.1.1"
},
"devDependencies": {
"@typescript-eslint/utils": "8.0.0-alpha.20",
"@typescript-eslint/utils": "8.0.0-alpha.37",
"eslint": "9.6.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"LICENSE"
],
"peerDependencies": {
"@typescript-eslint/rule-tester": "^7.11.0 || ^8.0.0-alpha.20",
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20",
"@typescript-eslint/rule-tester": "^7.11.0 || ^8.0.0-alpha.37",
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.37",
"eslint": "^8.57.0 || ^9.0.0",
"typescript": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"LICENSE"
],
"peerDependencies": {
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20",
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.37",
"eslint": "^8.57.0 || ^9.0.0",
"typescript": "*"
},
Expand Down
Loading

0 comments on commit afd0f37

Please sign in to comment.