.eslintrc.js 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module.exports = {
  2. parserOptions: {
  3. parser: 'babel-eslint'
  4. },
  5. extends: [
  6. 'eslint:recommended',
  7. 'plugin:vue/vue3-recommended',
  8. 'plugin:vue-a11y/base',
  9. 'standard',
  10. // 'plugin:prettier/recommended'
  11. ],
  12. plugins: [
  13. 'vue',
  14. 'vue-a11y',
  15. 'no-autofix'
  16. ],
  17. rules: {
  18. 'no-unused-vars': ["warn"],
  19. 'camelcase': 'warn',
  20. 'eqeqeq': 'warn',
  21. 'no-redeclare': 'warn'
  22. },
  23. ignorePatterns: [
  24. "vendor/**",
  25. "web/core/**"
  26. ],
  27. globals: {
  28. "Drupal": true,
  29. "drupalSettings": true,
  30. "drupalTranslations": true,
  31. "domready": true,
  32. "jQuery": true,
  33. "_": true,
  34. "matchMedia": true,
  35. "Cookies": true,
  36. "Backbone": true,
  37. "Modernizr": true,
  38. "Popper": true,
  39. "Sortable": true,
  40. "CKEDITOR": true,
  41. "drupalDecoupled": true
  42. }
  43. }