.eslintrc.js 898 B

123456789101112131415161718192021222324252627
  1. // At some point don't depend on @polkadot rules and use @joystream/eslint-config
  2. const base = require('@polkadot/dev/config/eslint');
  3. // add override for any (a metric ton of them, initial conversion)
  4. module.exports = {
  5. ...base,
  6. parserOptions: {
  7. ...base.parserOptions,
  8. project: [
  9. './tsconfig.json'
  10. ]
  11. },
  12. rules: {
  13. ...base.rules,
  14. '@typescript-eslint/no-explicit-any': 'off',
  15. 'react/prop-types': 'off',
  16. 'new-cap': 'off',
  17. '@typescript-eslint/interface-name-prefix': 'off',
  18. '@typescript-eslint/ban-ts-comment': 'error',
  19. // why only required in VSCode!?!? is eslint plugin not working like eslint commandline?
  20. // Or are we having to add this because of new versions of eslint-config-* ?
  21. 'no-console': 'off',
  22. 'header/header': 'off' // Temporary disable polkadot's rule
  23. },
  24. // isolate pioneer from monorepo eslint rules
  25. root: true
  26. };