Skip to content

Commit

Permalink
chore: linter and renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
Virenbar committed Feb 8, 2024
1 parent 4a0e9f3 commit c3fb752
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# More details are here: https://help.github.com/articles/about-codeowners/

# Global rule:
* @Virenbar
6 changes: 5 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
"^@nuxt/"
]
}
]
],
"schedule": [
"every weekend"
],
"assigneesFromCodeOwners": true
}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 18.x
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
cache: "yarn"

- name: Set variables
Expand Down
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.markdownlint": true,
"source.organizeImports": true
"source.fixAll.eslint": "explicit",
"source.fixAll.markdownlint": "explicit",
"source.organizeImports": "explicit"
},
"editor.tabSize": 2,
"typescript.tsdk": "node_modules/typescript/lib",
Expand Down
4 changes: 2 additions & 2 deletions components/Card/Emoji.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { APIEmoji } from "discord-api-types/v10";
const props = defineProps<{ emoji: APIEmoji }>();
import type { Emoji } from "~/types";
const props = defineProps<{ emoji: Emoji }>();
const Toast = useToast();
const { emojiID, emojiURL } = useDiscord();
Expand Down
2 changes: 1 addition & 1 deletion components/Card/Export.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { StickerFormatType } from "discord-api-types/v10";
import { ButtonStates } from "~/types";
import type { ButtonStates } from "~/types";
const buttons = useState<ButtonStates>();
Expand Down
5 changes: 3 additions & 2 deletions components/Card/Sticker.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { APISticker, StickerFormatType } from "discord-api-types/v10";
const props = defineProps<{ sticker: APISticker }>();
import { StickerFormatType } from "discord-api-types/v10";
import type { Sticker } from "~/types";
const props = defineProps<{ sticker: Sticker }>();
const Toast = useToast();
const { stickerURL } = useDiscord();
Expand Down
2 changes: 1 addition & 1 deletion composables/useSave.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FS from "file-saver";
import JSZip from "jszip";
import { Emoji, GuildData, Sticker } from "../types";
import type { Emoji, GuildData, Sticker } from "../types";

const $schema = "https://virenbar.github.io/discord-emoji-export/schemas/emojis.schema.json";

Expand Down
2 changes: 1 addition & 1 deletion composables/useStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Guild, GuildData, User } from "~/types";
import type { Guild, GuildData, User } from "~/types";

const Data: GuildData = { id: "", name: "", emojis: [], stickers: [] };

Expand Down

0 comments on commit c3fb752

Please sign in to comment.