Skip to content

Commit

Permalink
117616: Added default options in .eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Oct 2, 2024
1 parent fa9a6dc commit fe4e103
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,42 @@
"rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases

// Custom DSpace Angular rules
"dspace-angular-ts/alias-imports": "error",
"dspace-angular-ts/alias-imports": [
"error",
{
"aliases": [
{
"package": "rxjs",
"imported": "of",
"local": "observableOf"
}
]
}
],
"dspace-angular-ts/themed-component-classes": "error",
"dspace-angular-ts/themed-component-selectors": "error",
"dspace-angular-ts/themed-component-usages": "error",
"dspace-angular-ts/themed-decorators": "error",
"dspace-angular-ts/themed-decorators": [
"error",
{
"decorators": {
"listableObjectComponent": 3,
"rendersSectionForMenu": 2
}
}
],
"dspace-angular-ts/themed-wrapper-no-input-defaults": "error",
"dspace-angular-ts/unique-decorators": "error"
"dspace-angular-ts/unique-decorators": [
"error",
{
"decorators": [
"listableObjectComponent",
"rendersSectionForMenu",
"rendersMenuItemForType",
"dataService"
]
}
]
}
},
{
Expand Down

0 comments on commit fe4e103

Please sign in to comment.