.eslintrc.js 627 B

123456789101112131415161718192021222324
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parserOptions: {
  5. parser: 'babel-eslint'
  6. },
  7. env: {
  8. browser: true,
  9. },
  10. // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
  11. // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
  12. extends: ['plugin:vue/essential'],
  13. // required to lint *.vue files
  14. plugins: [
  15. 'vue'
  16. ],
  17. // add your custom rules here
  18. rules: {
  19. // allow debugger during development
  20. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
  21. }
  22. }