.eslintrc.js 552 B

1234567891011121314151617181920212223242526
  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: [
  11. 'warn',
  12. {
  13. ignoreImports: true,
  14. },
  15. ],
  16. 'react/prop-types': 'off',
  17. '@typescript-eslint/explicit-module-boundary-types': 'off',
  18. '@typescript-eslint/no-empty-function': 'warn',
  19. '@typescript-eslint/ban-ts-comment': [
  20. 'error',
  21. {
  22. 'ts-ignore': 'allow-with-description',
  23. },
  24. ],
  25. },
  26. }