Skip to content

Commit f43b289

Browse files
authored
Merge pull request #11519 from owncloud/chore/bump-eslint-to-v9
chore: bump eslint to v9
2 parents a3efbb1 + bf5d2e2 commit f43b289

File tree

40 files changed

+464
-596
lines changed

40 files changed

+464
-596
lines changed

.eslintrc.json

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

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import owncloudersConfig from '@ownclouders/eslint-config'
2+
3+
export default [...owncloudersConfig]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"core-js": "3.30.2",
6262
"cucumber-html-reporter": "7.1.1",
6363
"ejs": "3.1.10",
64-
"eslint": "8.56.0",
64+
"eslint": "9.9.1",
6565
"git-repo-info": "2.1.1",
6666
"glob": "11.0.0",
6767
"happy-dom": "13.3.1",

packages/design-system/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"style-loader": "^4.0.0",
9090
"style-value-types": "^5.0.0",
9191
"stylelint": "16.2.1",
92-
"stylelint-config-sass-guidelines": "^11.0.0",
92+
"stylelint-config-sass-guidelines": "^12.0.0",
9393
"stylelint-config-standard": "^36.0.0",
9494
"tinycolor2": "^1.6.0",
9595
"ts-loader": "^9.5.1",

packages/design-system/src/components/OcApplicationIcon/OcApplicationIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default defineComponent({
5858
return !!props.colorSecondary
5959
})
6060
const generatedHashedPrimaryColor = computed((): string => {
61-
let hashedColor = generateHashedColorForString(props.icon)
61+
const hashedColor = generateHashedColorForString(props.icon)
6262
return rgbToHex(setDesiredContrastRatio(hexToRgb(hashedColor), hexToRgb('#ffffff'), 4))
6363
})
6464
const iconStyle = computed(() => {

packages/design-system/src/components/OcCheckbox/OcCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default defineComponent({
5050
*
5151
* Can be any type, but most common is boolean for singular checkbox use, or array when used in a group of checkboxes.
5252
**/
53-
// eslint-disable-next-line vue/require-prop-types
53+
5454
modelValue: {
5555
type: [Boolean, Array] as PropType<boolean | unknown[]>,
5656
required: false,

packages/design-system/src/components/OcGrid/OcGrid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineComponent({
3535
},
3636
computed: {
3737
classes() {
38-
let c = []
38+
const c = []
3939
4040
c.push('oc-grid-' + this.gutter)
4141

packages/design-system/src/components/OcRadio/OcRadio.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default defineComponent({
5050
*
5151
* Can be any type.
5252
**/
53-
// eslint-disable-next-line vue/require-prop-types
53+
5454
modelValue: {
5555
type: [String, Number, Boolean, Object],
5656
required: false,

packages/design-system/src/components/OcTextInput/OcTextInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export default defineComponent({
288288
additionalAttrs['has-error'] = !!this.errorMessage
289289
}
290290
// Exclude listeners for events which are handled via methods in this component
291-
// eslint-disable-next-line no-unused-vars
291+
292292
const { change, input, focus, class: classes, ...attrs } = this.$attrs
293293
294294
return { ...attrs, ...additionalAttrs }

packages/design-system/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('Depending on what gets passed into the theming options', () => {
5050
)
5151
expect(document.documentElement.style.getPropertyValue('--oc-space-small')).toMatch('20px')
5252
})
53-
// eslint-disable-next-line
53+
5454
// it('Defaults to ODS colors where none are passed in theming options', () => {
5555
// expect(document.documentElement.style.getPropertyValue('--oc-color')).toMatch("green")
5656
// expect(document.documentElement.style.getPropertyValue('--oc-brand-primary-hover')).toMatch('#223959')

0 commit comments

Comments
 (0)