.eslintrc.js 801 B

12345678910111213141516171819202122232425262728293031
  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. rules: {
  10. 'react/prop-types': 'off',
  11. '@typescript-eslint/explicit-module-boundary-types': 'off',
  12. '@typescript-eslint/no-empty-function': 'warn',
  13. '@typescript-eslint/ban-ts-comment': [
  14. 'error',
  15. {
  16. 'ts-ignore': 'allow-with-description',
  17. },
  18. ],
  19. '@typescript-eslint/ban-types': [
  20. 'error',
  21. {
  22. types: {
  23. object: false,
  24. },
  25. },
  26. ],
  27. '@typescript-eslint/naming-convention': ['off'],
  28. // remove once @joystream/eslint-config does not enforce an older version of @typescript-eslint
  29. '@typescript-eslint/no-unused-vars': ['off'],
  30. },
  31. }