Skip to content

Commit 7555f40

Browse files
committed
style: Fixing linter issues
1 parent 8009121 commit 7555f40

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

.playground/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default defineAppConfig({
22
attributeContent: {
3-
name: "Nuxt Attribute Content (overwritten)",
3+
name: 'Nuxt Attribute Content (overwritten)',
44
},
5-
});
5+
})

.playground/nuxt.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineNuxtConfig({
66
eslint: {
77
config: {
88
// Use the generated ESLint config for lint root project as well
9-
rootDir: fileURLToPath(new URL('..', import.meta.url))
10-
}
11-
}
9+
rootDir: fileURLToPath(new URL('..', import.meta.url)),
10+
},
11+
},
1212
})

app.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export default defineAppConfig({
22
attributeContent: {
3-
name: "Nuxt Attribute Content",
3+
name: 'Nuxt Attribute Content',
44
},
5-
});
5+
})
66

7-
declare module "@nuxt/schema" {
7+
declare module '@nuxt/schema' {
88
interface AppConfigInput {
99
attributeContent?: {
1010
/** Project name */
11-
name?: string;
12-
};
11+
name?: string
12+
}
1313
}
1414
}

app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
</template>
44

55
<script setup lang="ts">
6-
const { attributeContent } = useAppConfig();
6+
const { attributeContent } = useAppConfig()
77
</script>

components/AttributeIcon.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
<template>
2-
<div class="icon" :class="classObject">
2+
<div
3+
class="icon"
4+
:class="classObject"
5+
>
36
<SpriteSymbol :name="name" />
47
</div>
58
</template>
69

710
<script setup lang="ts">
811
export interface Props {
9-
name: string;
10-
fill?: boolean;
11-
modifier?: string;
12+
name: string
13+
fill?: boolean
14+
modifier?: string
1215
}
1316
1417
const props = withDefaults(defineProps<Props>(), {
1518
fill: false,
16-
});
19+
})
1720
1821
const classObject = reactive({
1922
[`icon--${props.name}`]: true,
20-
"icon--fill": props.fill,
21-
});
23+
'icon--fill': props.fill,
24+
})
2225
2326
if (props.modifier) {
24-
classObject[`icon--${props.modifier}`] = true;
27+
classObject[`icon--${props.modifier}`] = true
2528
}
2629
</script>
2730

nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
modules: ['nuxt-svg-icon-sprite', '@nuxt/content'],
34
devtools: { enabled: true },
4-
modules: ["nuxt-svg-icon-sprite", "@nuxt/content"],
5-
})
5+
})

0 commit comments

Comments
 (0)