mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* chore(utils): resolve all 135 ESLint warnings in utils package Replace explicit `any` with proper types in production code, relax the rule for test files, add varsIgnorePattern for underscore-prefixed unused vars, and fix remaining ban-ts-comment / namespace / type-constraint warnings. * fix(utils): restore @ts-ignore in gasLimitUtils for build compat The type errors in this file only manifest under certain TS configurations (Next.js build vs standalone type-check), so @ts-expect-error causes "unused directive" build failures. Restore @ts-ignore with eslint-disable for ban-ts-comment. --------- Co-authored-by: Hanzo Dev <[email protected]>
32 lines
621 B
JavaScript
32 lines
621 B
JavaScript
import baseConfig from '../../config/eslint/base.mjs'
|
|
|
|
export default [
|
|
...baseConfig,
|
|
{
|
|
rules: {
|
|
'react-hooks/exhaustive-deps': [
|
|
'warn',
|
|
{
|
|
additionalHooks: 'useAsync',
|
|
},
|
|
],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/__tests__/**', '**/*.test.ts', '**/*.test.tsx'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['**/node_modules/', '**/src/types/contracts/'],
|
|
},
|
|
]
|