eslint.config.mjs 1.2 KB

1234567891011121314151617181920212223242526272829
  1. import solanaConfig from '@solana/eslint-config-solana';
  2. import solanaJestConfig from '@solana/eslint-config-solana/jest';
  3. export default [
  4. ...solanaConfig,
  5. ...solanaJestConfig,
  6. {
  7. rules: {
  8. '@typescript-eslint/no-base-to-string': 'off',
  9. '@typescript-eslint/no-unsafe-argument': 'off',
  10. '@typescript-eslint/no-unsafe-assignment': 'off',
  11. '@typescript-eslint/no-unsafe-call': 'off',
  12. '@typescript-eslint/no-unsafe-enum-comparison': 'off',
  13. '@typescript-eslint/no-unsafe-member-access': 'off',
  14. '@typescript-eslint/no-unsafe-return': 'off',
  15. '@typescript-eslint/only-throw-error': 'off',
  16. '@typescript-eslint/prefer-promise-reject-errors': 'off',
  17. '@typescript-eslint/restrict-plus-operands': 'off',
  18. '@typescript-eslint/restrict-template-expressions': 'off',
  19. '@typescript-eslint/unbound-method': 'off',
  20. 'jest/expect-expect': [
  21. 'error',
  22. {
  23. assertFunctionNames: ['expect', 'expectNewPreOffset', 'expectNewPostOffset'],
  24. },
  25. ],
  26. },
  27. },
  28. ];