mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-08 08:44:27 +00:00
Enable the eslint react/no-unknown-property
rule (#28217)
This commit is contained in:
parent
42afd30324
commit
ee83d5c760
|
@ -120,7 +120,6 @@ module.exports = defineConfig({
|
||||||
'react/jsx-uses-react': 'off', // not needed with new JSX transform
|
'react/jsx-uses-react': 'off', // not needed with new JSX transform
|
||||||
'react/jsx-wrap-multilines': 'error',
|
'react/jsx-wrap-multilines': 'error',
|
||||||
'react/no-deprecated': 'off',
|
'react/no-deprecated': 'off',
|
||||||
'react/no-unknown-property': 'off',
|
|
||||||
'react/react-in-jsx-scope': 'off', // not needed with new JSX transform
|
'react/react-in-jsx-scope': 'off', // not needed with new JSX transform
|
||||||
'react/self-closing-comp': 'error',
|
'react/self-closing-comp': 'error',
|
||||||
|
|
||||||
|
|
|
@ -298,9 +298,9 @@ class LoginForm extends React.PureComponent {
|
||||||
onFocus={this.handleFocus}
|
onFocus={this.handleFocus}
|
||||||
onBlur={this.handleBlur}
|
onBlur={this.handleBlur}
|
||||||
onKeyDown={this.handleKeyDown}
|
onKeyDown={this.handleKeyDown}
|
||||||
autocomplete='off'
|
autoComplete='off'
|
||||||
autocapitalize='off'
|
autoCapitalize='off'
|
||||||
spellcheck='false'
|
spellCheck='false'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button onClick={this.handleSubmit} disabled={isSubmitting || error}><FormattedMessage id='interaction_modal.login.action' defaultMessage='Take me home' /></Button>
|
<Button onClick={this.handleSubmit} disabled={isSubmitting || error}><FormattedMessage id='interaction_modal.login.action' defaultMessage='Take me home' /></Button>
|
||||||
|
|
|
@ -82,7 +82,7 @@ class NavigationPanel extends Component {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{banner &&
|
{banner &&
|
||||||
<div class='navigation-panel__banner'>
|
<div className='navigation-panel__banner'>
|
||||||
{banner}
|
{banner}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -612,7 +612,6 @@ class Video extends PureComponent {
|
||||||
aria-label={alt}
|
aria-label={alt}
|
||||||
title={alt}
|
title={alt}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
volume={volume}
|
|
||||||
onClick={this.togglePlay}
|
onClick={this.togglePlay}
|
||||||
onKeyDown={this.handleVideoKeyDown}
|
onKeyDown={this.handleVideoKeyDown}
|
||||||
onPlay={this.handlePlay}
|
onPlay={this.handlePlay}
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
"eslint-plugin-jsx-a11y": "~6.8.0",
|
"eslint-plugin-jsx-a11y": "~6.8.0",
|
||||||
"eslint-plugin-prettier": "^5.0.0",
|
"eslint-plugin-prettier": "^5.0.0",
|
||||||
"eslint-plugin-promise": "~6.1.1",
|
"eslint-plugin-promise": "~6.1.1",
|
||||||
"eslint-plugin-react": "~7.33.0",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.5.0",
|
||||||
|
|
|
@ -2371,7 +2371,7 @@ __metadata:
|
||||||
eslint-plugin-jsx-a11y: "npm:~6.8.0"
|
eslint-plugin-jsx-a11y: "npm:~6.8.0"
|
||||||
eslint-plugin-prettier: "npm:^5.0.0"
|
eslint-plugin-prettier: "npm:^5.0.0"
|
||||||
eslint-plugin-promise: "npm:~6.1.1"
|
eslint-plugin-promise: "npm:~6.1.1"
|
||||||
eslint-plugin-react: "npm:~7.33.0"
|
eslint-plugin-react: "npm:^7.33.2"
|
||||||
eslint-plugin-react-hooks: "npm:^4.6.0"
|
eslint-plugin-react-hooks: "npm:^4.6.0"
|
||||||
file-loader: "npm:^6.2.0"
|
file-loader: "npm:^6.2.0"
|
||||||
font-awesome: "npm:^4.7.0"
|
font-awesome: "npm:^4.7.0"
|
||||||
|
@ -7501,7 +7501,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"eslint-plugin-react@npm:~7.33.0":
|
"eslint-plugin-react@npm:^7.33.2":
|
||||||
version: 7.33.2
|
version: 7.33.2
|
||||||
resolution: "eslint-plugin-react@npm:7.33.2"
|
resolution: "eslint-plugin-react@npm:7.33.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue