Skip to content

Instantly share code, notes, and snippets.

@ElpixZero
Last active July 17, 2021 10:34
Show Gist options
  • Save ElpixZero/b193f2d0aacd60253c587386f67fe612 to your computer and use it in GitHub Desktop.
Save ElpixZero/b193f2d0aacd60253c587386f67fe612 to your computer and use it in GitHub Desktop.
//package.json
{
"devDependencies": {
"@intlify/vue-i18n-loader": "^1.0.0",
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-plugin-router": "~4.2.0",
"@vue/cli-plugin-vuex": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"@vue/test-utils": "^1.0.5",
"babel-eslint": "^10.0.3",
"babel-jest": "^26.3.0",
"babel-plugin-component": "^1.1.1",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"husky": "^4.2.3",
"jest": "^26.4.2",
"prettier": "^2.0.2",
"pretty-quick": "^2.0.1",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
"style-resources-loader": "^1.3.3",
"vue-cli-plugin-element": "^1.0.1",
"vue-cli-plugin-i18n": "~1.0.1",
"vue-cli-plugin-svg": "~0.1.3",
"vue-jest": "^3.0.6",
"vue-template-compiler": "^2.6.11"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
//________________________________________________________________________________________________
//eslint config
module.exports = {
root: true,
plugins: ["prettier"],
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
],
parserOptions: {
parser: "babel-eslint",
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"vue/order-in-components": [
"warn",
{
order: [
"el",
"name",
"key",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"extends",
"mixins",
["provide", "inject"],
"ROUTER_GUARDS",
"layout",
"middleware",
"validate",
"scrollToTop",
"transition",
"loading",
"inheritAttrs",
"model",
["props", "propsData"],
"emits",
"setup",
"asyncData",
"data",
"fetch",
"head",
"computed",
"watch",
"watchQuery",
"LIFECYCLE_HOOKS",
"methods",
["template", "render"],
"renderError",
],
},
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment