Skip to content

Commit dbd9bf6

Browse files
author
Jens Vannerum
committed
Merge remote-tracking branch 'dspaceMain/main' into w2p-111326_fix-status-code-object-not-found-7.4
2 parents ab90c7a + a2531e5 commit dbd9bf6

3,521 files changed

Lines changed: 203816 additions & 85664 deletions

File tree

Some content is hidden

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

.browserslistrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ trim_trailing_whitespace = false
1515

1616
[*.ts]
1717
quote_type = single
18+
19+
[*.json5]
20+
ij_json_keep_blank_lines_in_code = 3

.eslintrc.json

Lines changed: 96 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"eslint-plugin-import",
77
"eslint-plugin-jsdoc",
88
"eslint-plugin-deprecation",
9-
"eslint-plugin-unused-imports"
9+
"unused-imports",
10+
"eslint-plugin-lodash",
11+
"eslint-plugin-jsonc",
12+
"eslint-plugin-rxjs",
13+
"eslint-plugin-simple-import-sort",
14+
"eslint-plugin-import-newlines"
1015
],
1116
"overrides": [
1217
{
@@ -25,17 +30,29 @@
2530
"plugin:@typescript-eslint/recommended",
2631
"plugin:@typescript-eslint/recommended-requiring-type-checking",
2732
"plugin:@angular-eslint/recommended",
28-
"plugin:@angular-eslint/template/process-inline-templates"
33+
"plugin:@angular-eslint/template/process-inline-templates",
34+
"plugin:rxjs/recommended"
2935
],
3036
"rules": {
37+
"indent": [
38+
"error",
39+
2,
40+
{
41+
"SwitchCase": 1
42+
}
43+
],
3144
"max-classes-per-file": [
3245
"error",
3346
1
3447
],
3548
"comma-dangle": [
36-
"off",
49+
"error",
3750
"always-multiline"
3851
],
52+
"object-curly-spacing": [
53+
"error",
54+
"always"
55+
],
3956
"eol-last": [
4057
"error",
4158
"always"
@@ -102,15 +119,13 @@
102119
"allowTernary": true
103120
}
104121
],
105-
"prefer-const": "off", // todo: re-enable & fix errors (more strict than it used to be in TSLint)
122+
"prefer-const": "error",
123+
"no-case-declarations": "error",
124+
"no-extra-boolean-cast": "error",
106125
"prefer-spread": "off",
107126
"no-underscore-dangle": "off",
108-
109-
// todo: disabled rules from eslint:recommended, consider re-enabling & fixing
110127
"no-prototype-builtins": "off",
111128
"no-useless-escape": "off",
112-
"no-case-declarations": "off",
113-
"no-extra-boolean-cast": "off",
114129

115130
"@angular-eslint/directive-selector": [
116131
"error",
@@ -181,7 +196,7 @@
181196
],
182197
"@typescript-eslint/type-annotation-spacing": "error",
183198
"@typescript-eslint/unified-signatures": "error",
184-
"@typescript-eslint/ban-types": "warn", // todo: deal with {} type issues & re-enable
199+
"@typescript-eslint/ban-types": "error",
185200
"@typescript-eslint/no-floating-promises": "warn",
186201
"@typescript-eslint/no-misused-promises": "warn",
187202
"@typescript-eslint/restrict-plus-operands": "warn",
@@ -201,8 +216,45 @@
201216

202217
"deprecation/deprecation": "warn",
203218

219+
"simple-import-sort/imports": "error",
220+
"simple-import-sort/exports": "error",
204221
"import/order": "off",
205-
"import/no-deprecated": "warn"
222+
"import/first": "error",
223+
"import/newline-after-import": "error",
224+
"import/no-duplicates": "error",
225+
"import/no-deprecated": "warn",
226+
"import/no-namespace": "error",
227+
"import-newlines/enforce": [
228+
"error",
229+
{
230+
"items": 1,
231+
"semi": true,
232+
"forceSingleLine": true
233+
}
234+
],
235+
236+
"unused-imports/no-unused-imports": "error",
237+
"lodash/import-scope": [
238+
"error",
239+
"method"
240+
],
241+
242+
"rxjs/no-nested-subscribe": "off" // todo: go over _all_ cases
243+
}
244+
},
245+
{
246+
"files": [
247+
"*.spec.ts"
248+
],
249+
"parserOptions": {
250+
"project": [
251+
"./tsconfig.json",
252+
"./cypress/tsconfig.json"
253+
],
254+
"createDefaultProgram": true
255+
},
256+
"rules": {
257+
"prefer-const": "off"
206258
}
207259
},
208260
{
@@ -211,11 +263,42 @@
211263
],
212264
"extends": [
213265
"plugin:@angular-eslint/template/recommended"
266+
]
267+
},
268+
{
269+
"files": [
270+
"*.json5"
271+
],
272+
"extends": [
273+
"plugin:jsonc/recommended-with-jsonc"
214274
],
215275
"rules": {
216-
// todo: re-enable & fix errors
217-
"@angular-eslint/template/no-negated-async": "off",
218-
"@angular-eslint/template/eqeqeq": "off"
276+
"no-irregular-whitespace": "error",
277+
"no-trailing-spaces": "error",
278+
"jsonc/comma-dangle": [
279+
"error",
280+
"always-multiline"
281+
],
282+
"jsonc/indent": [
283+
"error",
284+
2
285+
],
286+
"jsonc/key-spacing": [
287+
"error",
288+
{
289+
"beforeColon": false,
290+
"afterColon": true,
291+
"mode": "strict"
292+
}
293+
],
294+
"jsonc/no-dupe-keys": "off",
295+
"jsonc/quotes": [
296+
"error",
297+
"double",
298+
{
299+
"avoidEscape": false
300+
}
301+
]
219302
}
220303
}
221304
]

.github/disabled-workflows/pull_request_opened.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## References
22
_Add references/links to any related issues or PRs. These may include:_
3-
* Fixes #[issue-number]
4-
* Requires DSpace/DSpace#[pr-number] (if a REST API PR is required to test this)
3+
* Fixes #`issue-number` (if this fixes an issue ticket)
4+
* Requires DSpace/DSpace#`pr-number` (if a REST API PR is required to test this)
55

66
## Description
77
Short summary of changes (1-2 sentences).
@@ -19,8 +19,10 @@ List of changes in this PR:
1919
_This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!_
2020

2121
- [ ] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
22-
- [ ] My PR passes [TSLint](https://palantir.github.io/tslint/) validation using `yarn run lint`
23-
- [ ] My PR doesn't introduce circular dependencies
22+
- [ ] My PR passes [ESLint](https://eslint.org/) validation using `yarn lint`
23+
- [ ] My PR doesn't introduce circular dependencies (verified via `yarn check-circ-deps`)
2424
- [ ] My PR includes [TypeDoc](https://typedoc.org/) comments for _all new (or modified) public methods and classes_. It also includes TypeDoc for large or complex private methods.
2525
- [ ] My PR passes all specs/tests and includes new/updated specs or tests based on the [Code Testing Guide](https://wiki.lyrasis.org/display/DSPACE/Code+Testing+Guide).
26-
- [ ] If my PR includes new, third-party dependencies (in `package.json`), I've made sure their licenses align with the [DSpace BSD License](https://github.com/DSpace/DSpace/blob/main/LICENSE) based on the [Licensing of Contributions](https://wiki.lyrasis.org/display/DSPACE/Code+Contribution+Guidelines#CodeContributionGuidelines-LicensingofContributions) documentation.
26+
- [ ] If my PR includes new libraries/dependencies (in `package.json`), I've made sure their licenses align with the [DSpace BSD License](https://github.com/DSpace/DSpace/blob/main/LICENSE) based on the [Licensing of Contributions](https://wiki.lyrasis.org/display/DSPACE/Code+Contribution+Guidelines#CodeContributionGuidelines-LicensingofContributions) documentation.
27+
- [ ] If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
28+
- [ ] If my PR fixes an issue ticket, I've [linked them together](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).

0 commit comments

Comments
 (0)