Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Nov 20, 2022
1 parent 5705a15 commit 9e7cb7f
Show file tree
Hide file tree
Showing 31 changed files with 533 additions and 185 deletions.
2 changes: 1 addition & 1 deletion frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
"plugin:import/recommended",
"plugin:import/typescript",
"@vue/typescript/recommended",
'@nuxtjs/eslint-config-typescript',
"@nuxtjs/eslint-config-typescript",
"plugin:eslint-comments/recommended",
"prettier",
],
Expand Down
6 changes: 6 additions & 0 deletions frontend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd frontend
pnpm prettier --write src/types/generated/**.*
pnpm lint-staged
5 changes: 4 additions & 1 deletion frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineNuxtConfig } from "nuxt";
import path from "node:path";
import { defineNuxtConfig } from "nuxt";
import VueI18n from "@intlify/vite-plugin-vue-i18n";
import IconsResolver from "unplugin-icons/resolver";
import Icons from "unplugin-icons/vite";
Expand All @@ -15,6 +15,9 @@ const signupDisabled = process.env.signupDisabled || false;

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
imports: {
autoImport: false,
},
srcDir: "src",
runtimeConfig: {
kratos,
Expand Down
20 changes: 17 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@
"generate": "nuxt generate",
"preview": "nuxt preview",
"previewBuild": "nuxt build && nuxt preview",
"lint:eslint": "eslint --ext \".js,.vue,.ts,.json,.html\" --ignore-path .gitignore --fix .",
"lint:prettier": "prettier -w ."
"lint:eslint": "eslint --ext \".js,.vue,.ts,.html\" --ignore-path .gitignore --fix .",
"lint:prettier": "prettier -w .",
"prepare": "cd .. && husky install frontend/.husky"
},
"lint-staged": {
"*.{ts,js,vue,html}": [
"prettier -c",
"eslint"
]
},
"devDependencies": {
"@iconify-json/mdi": "1.1.34",
"@intlify/vite-plugin-vue-i18n": "6.0.3",
"@nuxtjs-alt/proxy": "2.0.4",
"@nuxtjs/eslint-config-typescript": "11.0.0",
"@nuxtjs/eslint-config-typescript": "12.0.0",
"@types/debug": "4.1.7",
"@types/nprogress": "0.2.0",
"@types/prettier": "2.7.1",
Expand All @@ -28,6 +35,8 @@
"eslint-plugin-import": "2.26.0",
"eslint-plugin-unicorn": "44.0.2",
"eslint-plugin-vue": "9.7.0",
"husky": "8.0.2",
"lint-staged": "13.0.3",
"nuxt": "3.0.0-rc.13",
"nuxt-windicss": "2.5.3",
"pnpm": "7.14.2",
Expand Down Expand Up @@ -63,5 +72,10 @@
"vue-advanced-cropper": "2.8.6",
"vue-i18n": "9.2.2",
"vue3-popper": "1.5.0"
},
"pnpm": {
"overrides": {
"axios": "0.27.2"
}
}
}
Loading

0 comments on commit 9e7cb7f

Please sign in to comment.