.eslintrc.js 783 B

12345678910111213141516171819202122232425262728
  1. const base = require('@polkadot/dev-react/config/eslint');
  2. console.log('Using eslintrc from pioneer folder')
  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. },
  20. extends: base.extends.concat([
  21. // disable formatting rules - incase we decide to apply code style rules
  22. // to our linter settings.
  23. 'prettier',
  24. 'prettier/@typescript-eslint',
  25. 'prettier/react',
  26. 'prettier/standard',
  27. ])
  28. };