0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-12-22 00:10:21 +00:00

linter setup

This commit is contained in:
Nikita Krupin 2022-03-21 19:25:16 -04:00
parent 22b0793fb8
commit 794a035aa0
3 changed files with 44 additions and 2 deletions

10
NUXT/.eslintignore Normal file
View file

@ -0,0 +1,10 @@
# js vendor file with import/require
assets/vendor/**
# static vendor file . use with nuxt.config.js script
static/**
# dependencies
node_modules
# Nuxt build
.nuxt
# Nuxt generate
dist

24
NUXT/.eslintrc.js Normal file
View file

@ -0,0 +1,24 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
parserOptions: {
parser: "babel-eslint",
},
extends: [
"prettier",
"eslint:recommended",
"plugin:vue/recommended",
"plugin:prettier/recommended",
],
plugins: ["vue"],
rules: {
"vue/multi-word-component-names": 0,
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
// 'prettier/prettier': ['error', { semi: false }],
// semi: [2, 'never'],
},
};

View file

@ -6,7 +6,8 @@
"dev": "nuxt",
"start": "nuxt generate",
"build": "nuxt generate",
"generate": "nuxt generate"
"generate": "nuxt generate",
"lint": "eslint --fix --ext .js,.vue --ignore-path .eslintignore ."
},
"dependencies": {
"@capacitor/splash-screen": "^1.2.2",
@ -20,6 +21,13 @@
"webpack": "^4.46.0"
},
"devDependencies": {
"@nuxtjs/vuetify": "^1.12.3"
"@nuxtjs/vuetify": "^1.12.3",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"prettier": "^2.5.1"
}
}