.eslintrc.js 816 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. root: true,
  3. globals: { wx: 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: 'standard',
  13. // required to lint *.wpy files
  14. plugins: [
  15. 'html'
  16. ],
  17. settings: {
  18. 'html/html-extensions': ['.html', '.wpy']
  19. },
  20. // add your custom rules here
  21. 'rules': {
  22. // allow paren-less arrow functions
  23. 'arrow-parens': 0,
  24. "no-console": "off",
  25. 'vue/require-v-for-key': 'off',
  26. 'vue/eslint-plugin-vue': 'off',
  27. // allow async-await
  28. 'generator-star-spacing': 0,
  29. // allow debugger during development
  30. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
  31. 'space-before-function-paren': 0
  32. }
  33. }