.eslintrc.js 539 B

123456789101112131415161718192021
  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. '@typescript-eslint/ban-ts-comment': 'error'
  19. }
  20. };