Created
March 31, 2018 16:50
-
-
Save ratul0/36382165d5c8c18889fafacf51e81c52 to your computer and use it in GitHub Desktop.
eslintrc
This file contains 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
// https://eslint.org/docs/user-guide/configuring | |
module.exports = { | |
root: true, | |
parser: 'vue-eslint-parser', | |
parserOptions: { | |
parser: 'babel-eslint', | |
ecmaVersion: 2017, | |
sourceType: 'module' | |
}, | |
env: { | |
browser: true, | |
}, | |
extends: ['eslint:recommended','prettier','prettier/standard','plugin:vue/recommended'], | |
// required to lint *.vue files | |
plugins: [ | |
'vue', | |
'prettier', | |
], | |
// add your custom rules here | |
'rules': { | |
"prettier/prettier": [ | |
"error", | |
{ | |
semi: false, | |
singleQuote: true | |
} | |
], | |
"no-console": 0, | |
"vue/html-self-closing": "off", | |
// allow paren-less arrow functions | |
'arrow-parens': 0, | |
// allow async-await | |
'generator-star-spacing': 0, | |
// allow debugger during development | |
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment