.eslintrc.js 1000 B

123456789101112131415161718192021222324252627282930313233343536
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. node: true,
  5. es6: true,
  6. jest: true,
  7. },
  8. extends: ['plugin:react-hooks/recommended', '@joystream/eslint-config'],
  9. plugins: ['@emotion'],
  10. rules: {
  11. 'react/prop-types': 'off',
  12. '@typescript-eslint/explicit-module-boundary-types': 'off',
  13. '@typescript-eslint/no-empty-function': 'warn',
  14. '@typescript-eslint/ban-ts-comment': [
  15. 'error',
  16. {
  17. 'ts-ignore': 'allow-with-description',
  18. },
  19. ],
  20. '@typescript-eslint/ban-types': [
  21. 'error',
  22. {
  23. types: {
  24. object: false,
  25. },
  26. },
  27. ],
  28. '@typescript-eslint/naming-convention': ['off'],
  29. // remove once @joystream/eslint-config does not enforce an older version of @typescript-eslint
  30. '@typescript-eslint/no-unused-vars': ['off'],
  31. // make sure we use the proper Emotion imports
  32. '@emotion/pkg-renaming': 'error',
  33. '@emotion/no-vanilla': 'error',
  34. '@emotion/syntax-preference': [2, 'string'],
  35. },
  36. }