4cb83436294a41b12a4284933b360389d7be51c96ad929a0133d0f0ecb2aa22ccc6bc23ca0b88e7d2e4c53b590c11c657e3308af91eb142ddc7e2a74bd35e6 865 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const OFF = 0,
  2. WARN = 1,
  3. ERROR = 2;
  4. module.exports = {
  5. env: {
  6. browser: false,
  7. es6: true,
  8. },
  9. extends: ['prettier', 'plugin:jsx-a11y/recommended'],
  10. globals: {
  11. Atomics: 'readonly',
  12. SharedArrayBuffer: 'readonly',
  13. },
  14. parserOptions: {
  15. ecmaFeatures: {
  16. modules: true,
  17. },
  18. ecmaVersion: 2018,
  19. sourceType: 'module',
  20. },
  21. plugins: [
  22. 'prettier',
  23. 'import',
  24. 'jsx-a11y',
  25. ],
  26. rules: {
  27. 'prettier/prettier': ERROR,
  28. // ESLint rules
  29. 'no-useless-computed-key': ERROR,
  30. 'no-underscore-dangle': OFF,
  31. 'arrow-parens': [ERROR, 'as-needed'],
  32. 'no-nested-ternary': OFF,
  33. 'import/prefer-default-export': OFF,
  34. 'eol-last': [ERROR, 'always'],
  35. 'import/extensions': [ERROR, { json: 'always' }],
  36. 'import/no-unresolved': ERROR,
  37. 'no-console': ['warn', { allow: ['error', 'info'] }],
  38. },
  39. };