fix: lint error by adding node env in eslint config

This commit is contained in:
RcleydsonR 2022-10-24 21:34:18 -03:00
parent a09a031e61
commit 63c5669026
3 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,9 @@ require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",

View File

@ -2,13 +2,14 @@
"name": "p2pix-front-end",
"version": "0.0.0",
"scripts": {
"start": "vite",
"start": "vite --host=0.0.0.0 --port 3000",
"build": "run-p type-check build-only",
"preview": "vite preview",
"serve": "vue-cli-service serve",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --fix"
},
"dependencies": {
"@headlessui/vue": "^1.7.3",

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import TheWelcome from '../components/TheWelcome.vue'
import TheWelcome from "../components/TheWelcome.vue";
</script>
<template>