mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
ESLintify Part 1 (#837)
* ESLint-ify * Allow empty try/catch * Escape regexp
This commit is contained in:
parent
128dbfca0a
commit
e8e3f42685
44 changed files with 466 additions and 555 deletions
|
@ -39,14 +39,8 @@ class Site extends React.Component {
|
|||
docsVersion = latestVersion;
|
||||
}
|
||||
|
||||
// We do not want a lang attribute for the html tag if we don't have a language set
|
||||
const htmlElementProps = {};
|
||||
if (this.props.language) {
|
||||
htmlElementProps.lang = this.props.language;
|
||||
}
|
||||
|
||||
return (
|
||||
<html {...htmlElementProps}>
|
||||
<html lang={this.props.language}>
|
||||
<Head
|
||||
config={this.props.config}
|
||||
description={description}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue