.eslintrc.js 622 B

1234567891011121314151617181920212223242526272829
  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. camelcase: ['off'],
  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. },
  29. }