voting-app/frontend/.eslintrc.cjs
2026-05-15 15:16:18 -05:00

23 lines
551 B
JavaScript

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['react-refresh', '@typescript-eslint', 'react-hooks'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
settings: {
react: {
version: 'detect',
},
},
};