Add new ESLint rule requiring explicit button types (#36738)

This commit is contained in:
Echo
2025-11-05 16:11:04 +01:00
committed by GitHub
parent 1a31c412ca
commit 6337e036f3
37 changed files with 101 additions and 26 deletions

View File

@@ -180,6 +180,7 @@ export default tseslint.config([
'vendor/**/*',
'streaming/**/*',
'.bundle/**/*',
'storybook-static/**/*',
]),
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
@@ -290,6 +291,7 @@ export default tseslint.config([
'react/jsx-tag-spacing': 'error',
'react/jsx-wrap-multilines': 'error',
'react/self-closing-comp': 'error',
'react/button-has-type': 'error',
},
},
{