Skip to content

Commit 196a8c2

Browse files
Merge branch 'main' into w2p-108608_created-search-scope-selector_contribute-main
2 parents 8166c2e + b49e6fd commit 196a8c2

File tree

2,674 files changed

+96986
-50151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,674 files changed

+96986
-50151
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ npm-debug.log.*
2525

2626
# Webpack files
2727
webpack.records.json
28-
package-lock.json
28+
29+
# Yarn no longer used
30+
yarn.lock

.eslintrc.json

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
"eslint-plugin-jsonc",
1212
"eslint-plugin-rxjs",
1313
"eslint-plugin-simple-import-sort",
14-
"eslint-plugin-import-newlines"
14+
"eslint-plugin-import-newlines",
15+
"eslint-plugin-jsonc",
16+
"dspace-angular-ts",
17+
"dspace-angular-html"
18+
],
19+
"ignorePatterns": [
20+
"lint/test/fixture"
1521
],
1622
"overrides": [
1723
{
@@ -21,7 +27,8 @@
2127
"parserOptions": {
2228
"project": [
2329
"./tsconfig.json",
24-
"./cypress/tsconfig.json"
30+
"./cypress/tsconfig.json",
31+
"./lint/tsconfig.json"
2532
],
2633
"createDefaultProgram": true
2734
},
@@ -38,7 +45,10 @@
3845
"error",
3946
2,
4047
{
41-
"SwitchCase": 1
48+
"SwitchCase": 1,
49+
"ignoredNodes": [
50+
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
51+
]
4252
}
4353
],
4454
"max-classes-per-file": [
@@ -152,10 +162,10 @@
152162
}
153163
],
154164
"@angular-eslint/no-attribute-decorator": "error",
155-
"@angular-eslint/no-forward-ref": "error",
156165
"@angular-eslint/no-output-native": "warn",
157166
"@angular-eslint/no-output-on-prefix": "warn",
158167
"@angular-eslint/no-conflicting-lifecycle": "warn",
168+
"@angular-eslint/use-lifecycle-interface": "error",
159169

160170
"@typescript-eslint/no-inferrable-types":[
161171
"error",
@@ -213,6 +223,15 @@
213223
"@typescript-eslint/no-unsafe-return": "off",
214224
"@typescript-eslint/restrict-template-expressions": "off",
215225
"@typescript-eslint/require-await": "off",
226+
"@typescript-eslint/no-base-to-string": [
227+
"error",
228+
{
229+
"ignoredTypeNames": [
230+
"ResourceType",
231+
"Error"
232+
]
233+
}
234+
],
216235

217236
"deprecation/deprecation": "warn",
218237

@@ -239,7 +258,12 @@
239258
"method"
240259
],
241260

242-
"rxjs/no-nested-subscribe": "off" // todo: go over _all_ cases
261+
"rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases
262+
263+
// Custom DSpace Angular rules
264+
"dspace-angular-ts/themed-component-classes": "error",
265+
"dspace-angular-ts/themed-component-selectors": "error",
266+
"dspace-angular-ts/themed-component-usages": "error"
243267
}
244268
},
245269
{
@@ -254,7 +278,10 @@
254278
"createDefaultProgram": true
255279
},
256280
"rules": {
257-
"prefer-const": "off"
281+
"prefer-const": "off",
282+
283+
// Custom DSpace Angular rules
284+
"dspace-angular-ts/themed-component-usages": "error"
258285
}
259286
},
260287
{
@@ -263,7 +290,11 @@
263290
],
264291
"extends": [
265292
"plugin:@angular-eslint/template/recommended"
266-
]
293+
],
294+
"rules": {
295+
// Custom DSpace Angular rules
296+
"dspace-angular-html/themed-component-usages": "error"
297+
}
267298
},
268299
{
269300
"files": [

.gitattributes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
*.css eol=lf
1414
*.scss eol=lf
1515
*.html eol=lf
16-
*.svg eol=lf
16+
*.svg eol=lf
17+
18+
# Generated documentation should have LF line endings to reduce git noise
19+
docs/lint/**/*.md eol=lf

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ assignees: ''
77

88
---
99

10-
**Describe the bug**
10+
## Describe the bug
1111
A clear and concise description of what the bug is. Include the version(s) of DSpace where you've seen this problem & what *web browser* you were using. Link to examples if they are public.
1212

13-
**To Reproduce**
13+
## To Reproduce
1414
Steps to reproduce the behavior:
1515
1. Do this
1616
2. Then this...
1717

18-
**Expected behavior**
18+
## Expected behavior
1919
A clear and concise description of what you expected to happen.
2020

21-
**Related work**
21+
## Related work
2222
Link to any related tickets or PRs here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ assignees: ''
77

88
---
99

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
## Is your feature request related to a problem? Please describe.
11+
A clear and concise description of what the problem or use case is. For example, I'm always frustrated when [...]
1212

13-
**Describe the solution you'd like**
13+
## Describe the solution you'd like
1414
A clear and concise description of what you want to happen.
1515

16-
**Describe alternatives or workarounds you've considered**
16+
## Describe alternatives or workarounds you've considered
1717
A clear and concise description of any alternative solutions or features you've considered.
1818

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
19+
## Additional information
20+
Add any other information, related tickets or screenshots about the feature request here.

0 commit comments

Comments
 (0)