集成后台重构版本
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.

23 lines
627 B

3 years ago
  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. }