.eslintrc.js 918 B

123456789101112131415161718192021222324252627282930313233343536
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. plugins:["jsdoc"],
  7. extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier',"plugin:jsdoc/recommended"],
  8. parserOptions: {
  9. parser: 'babel-eslint'
  10. },
  11. rules: {
  12. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  13. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  14. "jsdoc/require-jsdoc" : 0,
  15. // allow async-await
  16. 'generator-star-spacing': 'off',
  17. 'no-new': 0,
  18. 'no-unused-vars': 'warn',
  19. 'jsdoc/check-tag-names': ['error', { 'definedTags': ['getter'] }],
  20. 'prettier/prettier': [
  21. 'error',
  22. { singleQuote: true, arrowParens: 'avoid', jsxBracketSameLine: true }
  23. ]
  24. },
  25. overrides: [
  26. {
  27. files: [
  28. '**/__tests__/*.{j,t}s?(x)',
  29. '**/tests/unit/**/*.spec.{j,t}s?(x)'
  30. ],
  31. env: {
  32. mocha: true
  33. }
  34. }
  35. ]
  36. };