Last active
December 26, 2019 12:06
-
-
Save agcty/d9a7468bbce8d32ef02eb5abcb75fa11 to your computer and use it in GitHub Desktop.
ESLint config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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