You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
668 B

8 years ago
8 years ago
  1. // http://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parser: 'babel-eslint',
  5. parserOptions: {
  6. sourceType: 'module'
  7. },
  8. env: {
  9. browser: true,
  10. },
  11. // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
  12. extends: [
  13. 'standard',
  14. 'prettier'
  15. ],
  16. // required to lint *.vue files
  17. plugins: [
  18. 'html'
  19. ],
  20. // add your custom rules here
  21. 'rules': {
  22. // allow paren-less arrow functions
  23. 'arrow-parens': 0,
  24. // allow async-await
  25. 'generator-star-spacing': 0,
  26. // allow debugger during development
  27. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  28. }
  29. }