.eslintrc.js 551 B

12345678910111213141516171819202122
  1. const base = require('@polkadot/dev-react/config/eslint');
  2. // add override for any (a metric ton of them, initial conversion)
  3. module.exports = {
  4. ...base,
  5. parserOptions: {
  6. ...base.parserOptions,
  7. project: [
  8. './tsconfig.json'
  9. ]
  10. },
  11. rules: {
  12. ...base.rules,
  13. '@typescript-eslint/no-explicit-any': 'off',
  14. '@typescript-eslint/camelcase': 'off',
  15. 'react/prop-types': 'off',
  16. 'new-cap': 'off',
  17. '@typescript-eslint/interface-name-prefix': 'off'
  18. },
  19. // isolate pioneer from monorepo eslint rules
  20. root: true
  21. };