Created
February 27, 2019 07:28
-
-
Save riddla/6e892375ff373cdc457bbf93da39ef58 to your computer and use it in GitHub Desktop.
ESLint config for TypeScript and Vue
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
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: [ | |
'prettier', | |
'plugin:@typescript-eslint/recommended', | |
'prettier/@typescript-eslint', | |
'plugin:prettier/recommended', | |
'plugin:vue/recommended', | |
'@vue/prettier', | |
'@vue/typescript' | |
], | |
rules: { | |
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also vuejs/eslint-plugin-vue#811.