mattermost-mobile/eslint.precommit.config.mjs
Rahim Rahman 881342cb5f
chore: error on react-hooks/exhaustive-deps during pre-commit (#9105)
* chore: exhaustive-deps error
* faster precommit using tsc --incremental
* don't exit until both check has ran
2025-09-05 06:08:01 -06:00

15 lines
395 B
JavaScript

// Pre-commit ESLint config with stricter rules
import baseConfig from './eslint.config.mjs';
export default [
...baseConfig,
{
rules: {
// Override rules to be stricter for pre-commit
'react-hooks/exhaustive-deps': 'error',
// Add other strict rules here if needed
// 'no-console': 'error',
// '@typescript-eslint/no-unused-vars': 'error',
},
},
];