mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Add new ESLint rule requiring explicit button types (#36738)
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user