Skip to content

Commit

Permalink
Feat: replace deprecated eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbet committed Dec 16, 2024
1 parent b116f3b commit 04917c5
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"plugins": [
"@angular-eslint/eslint-plugin",
"@typescript-eslint"
"@typescript-eslint",
"@stylistic"
],
"rules": {
"@angular-eslint/component-class-suffix": "error",
Expand Down Expand Up @@ -49,7 +50,7 @@
"accessibility": "explicit"
}
],
"@typescript-eslint/member-delimiter-style": [
"@stylistic/member-delimiter-style": [
"error",
{
"multiline": {
Expand Down Expand Up @@ -88,18 +89,18 @@
],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": [
"@stylistic/quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"@typescript-eslint/semi": [
"@stylistic/semi": [
"error"
],
"@typescript-eslint/type-annotation-spacing": "error",
"@stylistic/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"brace-style": [
Expand Down
106 changes: 104 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arlas-hub",
"version": "25.1.0",
"version": "27.0.0",
"license": "Apache-2.0",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -44,6 +44,8 @@
"@angular/compiler-cli": "^18.2.13",
"@angular/language-service": "^18.2.13",
"@biesbjerg/ngx-translate-extract-marker": "1.0.0",
"@stylistic/eslint-plugin": "^2.12.1",
"@stylistic/eslint-plugin-ts": "^2.12.1",
"@types/jasmine": "~3.10.0",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^18.19.0",
Expand Down Expand Up @@ -80,4 +82,4 @@
"dompurify": "2.5.6",
"mermaid": "10.9.3"
}
}
}
6 changes: 4 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export class CustomTranslateLoader implements TranslateLoader {
}
}

@NgModule({ declarations: [
@NgModule({
declarations: [
AppComponent,
CardComponent,
DynamicHubComponent,
Expand Down Expand Up @@ -197,5 +198,6 @@ export class CustomTranslateLoader implements TranslateLoader {
deps: [ArlasSettingsService, AuthentificationService, ArlasIamService]
},
provideHttpClient(withInterceptorsFromDi())
] })
]
})
export class AppModule { }

0 comments on commit 04917c5

Please sign in to comment.