Skip to content

Instantly share code, notes, and snippets.

@riddla
Created February 27, 2019 07:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riddla/6e892375ff373cdc457bbf93da39ef58 to your computer and use it in GitHub Desktop.
Save riddla/6e892375ff373cdc457bbf93da39ef58 to your computer and use it in GitHub Desktop.
ESLint config for TypeScript and Vue
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'
}
};
@riddla
Copy link
Author

riddla commented Feb 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment