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.

29 lines
687 B

пре 3 година
  1. // https://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/standard/standard/blob/master/docs/RULES-en.md
  12. extends: 'standard',
  13. // required to lint *.vue files
  14. plugins: [
  15. 'html'
  16. ],
  17. // add your custom rules here
  18. rules: {
  19. // allow async-await
  20. 'generator-star-spacing': 'off',
  21. // allow debugger during development
  22. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  23. 'space-before-function-paren': 'off',
  24. 'no-undef': 'off',
  25. 'eqeqeq': 'off',
  26. 'camelcase': 'off',
  27. }
  28. }