Skip to content

Commit 314acfc

Browse files
committed
chore(eslint): split baseline for legacy and current frontend
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent befc68c commit 314acfc

File tree

4 files changed

+67
-60
lines changed

4 files changed

+67
-60
lines changed

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ SPDX-FileCopyrightText = "2019 Fabian Wiktor <https://www.pexels.com/photo/green
400400
SPDX-License-Identifier = "CC0-1.0"
401401

402402
[[annotations]]
403-
path = ["openapi.json", ".envrc", "flake.nix", "flake.lock", "build/eslint-baseline.json"]
403+
path = ["openapi.json", ".envrc", "flake.nix", "flake.lock", "build/eslint-baseline.json", "build/eslint-baseline-legacy.json"]
404404
precedence = "aggregate"
405405
SPDX-FileCopyrightText = "2025 Nextcloud GmbH and Nextcloud contributors"
406406
SPDX-License-Identifier = "AGPL-3.0-or-later"

build/eslint-baseline-legacy.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"apps/files/src/components/TransferOwnershipDialogue.vue": {
3+
"@nextcloud/vue/no-deprecated-props": {
4+
"count": 1
5+
}
6+
},
7+
"apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue": {
8+
"vue/no-mutating-props": {
9+
"count": 2
10+
}
11+
},
12+
"apps/files_sharing/src/components/SharingInput.vue": {
13+
"@nextcloud/vue/no-deprecated-props": {
14+
"count": 1
15+
}
16+
},
17+
"apps/files_sharing/src/views/SharingDetailsTab.vue": {
18+
"vue/no-mutating-props": {
19+
"count": 23
20+
}
21+
},
22+
"apps/files_sharing/src/views/SharingLinkList.vue": {
23+
"vue/no-mutating-props": {
24+
"count": 1
25+
}
26+
},
27+
"apps/settings/src/components/Users/NewUserDialog.vue": {
28+
"@nextcloud/vue/no-deprecated-props": {
29+
"count": 1
30+
},
31+
"vue/no-mutating-props": {
32+
"count": 17
33+
}
34+
},
35+
"apps/workflowengine/src/components/Check.vue": {
36+
"vue/no-mutating-props": {
37+
"count": 3
38+
}
39+
},
40+
"apps/workflowengine/src/components/Rule.vue": {
41+
"vue/no-mutating-props": {
42+
"count": 1
43+
}
44+
},
45+
"core/src/OC/dialogs.js": {
46+
"camelcase": {
47+
"count": 33
48+
},
49+
"no-undef": {
50+
"count": 1
51+
}
52+
},
53+
"core/src/views/Login.vue": {
54+
"vue/multi-word-component-names": {
55+
"count": 1
56+
}
57+
},
58+
"core/src/views/Setup.vue": {
59+
"vue/multi-word-component-names": {
60+
"count": 1
61+
}
62+
}
63+
}

build/eslint-baseline.json

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,7 @@
11
{
2-
"apps/files/src/components/TransferOwnershipDialogue.vue": {
2+
"apps/dav/src/components/AbsenceForm.vue": {
33
"@nextcloud/vue/no-deprecated-props": {
44
"count": 1
55
}
6-
},
7-
"apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue": {
8-
"vue/no-mutating-props": {
9-
"count": 2
10-
}
11-
},
12-
"apps/files_sharing/src/components/SharingInput.vue": {
13-
"@nextcloud/vue/no-deprecated-props": {
14-
"count": 1
15-
}
16-
},
17-
"apps/files_sharing/src/views/SharingDetailsTab.vue": {
18-
"vue/no-mutating-props": {
19-
"count": 23
20-
}
21-
},
22-
"apps/files_sharing/src/views/SharingLinkList.vue": {
23-
"vue/no-mutating-props": {
24-
"count": 1
25-
}
26-
},
27-
"apps/settings/src/components/Users/NewUserDialog.vue": {
28-
"@nextcloud/vue/no-deprecated-props": {
29-
"count": 1
30-
},
31-
"vue/no-mutating-props": {
32-
"count": 16
33-
}
34-
},
35-
"apps/workflowengine/src/components/Check.vue": {
36-
"vue/no-mutating-props": {
37-
"count": 3
38-
}
39-
},
40-
"apps/workflowengine/src/components/Rule.vue": {
41-
"vue/no-mutating-props": {
42-
"count": 1
43-
}
44-
},
45-
"core/src/OC/dialogs.js": {
46-
"camelcase": {
47-
"count": 33
48-
},
49-
"no-undef": {
50-
"count": 1
51-
}
52-
},
53-
"core/src/views/Login.vue": {
54-
"vue/multi-word-component-names": {
55-
"count": 1
56-
}
57-
},
58-
"core/src/views/Setup.vue": {
59-
"vue/multi-word-component-names": {
60-
"count": 1
61-
}
626
}
637
}

build/frontend-legacy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"scripts": {
99
"build": "webpack --node-env production --progress",
1010
"dev": "webpack --node-env development --progress",
11-
"lint": "eslint --suppressions-location ../eslint-baseline.json --no-error-on-unmatched-pattern ./apps/*/ ./core/",
12-
"lint:fix": "eslint --suppressions-location ../eslint-baseline.json --fix --no-error-on-unmatched-pattern ./apps/*/ ./core/",
11+
"lint": "eslint --suppressions-location ../eslint-baseline-legacy.json --no-error-on-unmatched-pattern ./apps/*/ ./core/",
12+
"lint:fix": "eslint --suppressions-location ../eslint-baseline-legacy.json --fix --no-error-on-unmatched-pattern ./apps/*/ ./core/",
1313
"test": "vitest run",
1414
"test:coverage": "vitest run --coverage --reporter=default",
1515
"test:update-snapshots": "vitest run --update",

0 commit comments

Comments
 (0)