diff --git a/.eslintrc.js b/.eslintrc.js index a38644f..88b3b71 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,6 +17,7 @@ module.exports = { 'comma-dangle': ['warn', 'always-multiline'], 'vue/multi-word-component-names': 'off', 'vue/max-attributes-per-line': 'off', + 'vue/no-v-html': 'off', 'vue/require-default-prop': 'off', 'vue/singleline-html-element-content-newline': 'off', 'vue/html-self-closing': [ diff --git a/package.json b/package.json index c5479b6..41fe9de 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "scripts": { "dev": "npm run development", "development": "mix", + "fix:eslint": "eslint --ext .js,.vue resources/js/ --fix", + "fix:prettier": "prettier --write --loglevel warn 'resources/js/**/*.vue'", + "fix-code-style": "npm run fix:prettier && npm run fix:eslint", "watch": "mix watch", "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", @@ -23,6 +26,8 @@ "postcss": "^8.4.4", "postcss-import": "^12.0.1", "postcss-nesting": "^7.0.1", + "prettier": "^2.5.1", + "prettier-plugin-tailwind": "^2.2.12", "tailwindcss": "^2.0.3", "uuid": "^8.3.2", "vue": "^3.2.24", diff --git a/resources/js/Pages/Auth/Login.vue b/resources/js/Pages/Auth/Login.vue index fbb877d..57e9e31 100644 --- a/resources/js/Pages/Auth/Login.vue +++ b/resources/js/Pages/Auth/Login.vue @@ -1,21 +1,21 @@ -