Skip to content

Instantly share code, notes, and snippets.

@agcty
Last active December 26, 2019 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agcty/d9a7468bbce8d32ef02eb5abcb75fa11 to your computer and use it in GitHub Desktop.
Save agcty/d9a7468bbce8d32ef02eb5abcb75fa11 to your computer and use it in GitHub Desktop.
ESLint config file
module.exports = {
root: true,
env: {
node: true,
browser: true
},
extends: [
"plugin:vue/recommended",
"eslint:recommended",
"prettier/vue",
"plugin:prettier/recommended"
],
rules: {
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
globals: {
$nuxt: true
},
parserOptions: {
parser: "babel-eslint"
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment