Skip to content

Commit 6ee6ee5

Browse files
author
Jannik Stehle
committed
style: run linter
1 parent a88be7b commit 6ee6ee5

File tree

31 files changed

+33
-40
lines changed

31 files changed

+33
-40
lines changed

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')

packages/design-system/src/utils/webFontLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Web Font Loader takes care of ownCloud Design System’s font loading.
33
* For full documentation, see: https://github.com/typekit/webfontloader
44
*/
5-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
5+
66
// @ts-ignore
77
import WebFont from 'webfontloader'
88

packages/web-app-epub-reader/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export default defineComponent({
140140
const localStorageData = useLocalStorage<{ fontSizePercentage?: number }>(`oc_epubReader`, {})
141141
const currentFontSizePercentage = ref(unref(localStorageData).fontSizePercentage || 100)
142142
const themeStore = useThemeStore()
143-
let book = ref<Book>()
144-
let rendition = ref<Rendition>()
143+
const book = ref<Book>()
144+
const rendition = ref<Rendition>()
145145
146146
const navigateLeft = () => {
147147
unref(rendition).prev()

packages/web-app-files/src/helpers/textUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function naturalSortCompare(a: string, b: string) {
3939
aNum = Number(aa[x])
4040
bNum = Number(bb[x])
4141
// note: == is correct here
42-
// eslint-disable-next-line eqeqeq
42+
4343
if (aNum == aa[x] && bNum == bb[x]) {
4444
return aNum - bNum
4545
} else {

packages/web-app-files/src/views/spaces/DriveResolver.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default defineComponent({
155155
* find an easy way to do that.
156156
**/
157157
if (space.fileId === space.id) {
158-
let publicSpace = (await getSpaceResource()) as PublicSpaceResource
158+
const publicSpace = (await getSpaceResource()) as PublicSpaceResource
159159
160160
// FIXME: check for type once https://github.com/owncloud/ocis/issues/8740 is resolved
161161
if (publicSpace.publicLinkPermission === SharePermissionBit.Create) {

0 commit comments

Comments
 (0)