.eslintrc.js 833 B

1234567891011121314151617181920212223242526
  1. // At some point don't depend on @polkadot rules and use @joystream/eslint-config
  2. const base = require('@polkadot/dev-react/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. '@typescript-eslint/camelcase': 'off',
  16. 'react/prop-types': 'off',
  17. 'new-cap': 'off',
  18. '@typescript-eslint/interface-name-prefix': 'off',
  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. },
  23. // isolate pioneer from monorepo eslint rules
  24. root: true
  25. };