.eslintrc.js 665 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ['plugin:vue/recommended', '@vue/airbnb'],
  7. parserOptions: {
  8. parser: 'babel-eslint'
  9. },
  10. rules: {
  11. 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  12. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  13. semi: ['error', 'never'],
  14. 'max-len': 'off',
  15. 'linebreak-style': 'off',
  16. camelcase: [
  17. 'error',
  18. {
  19. properties: 'never',
  20. ignoreDestructuring: true,
  21. ignoreImports: true
  22. }
  23. ],
  24. 'arrow-parens': ['error', 'as-needed'],
  25. 'vue/multiline-html-element-content-newline': 'off'
  26. }
  27. }