Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Use @mapbox/eslint-config-docs - #196

Merged
katydecorah merged 3 commits into
masterfrom
eslint-config-docs
Dec 4, 2019
Merged

katydecorah merged 3 commits into
masterfrom
eslint-config-docs

Conversation

@katydecorah

Copy link
Copy Markdown
Contributor
  • npm install @mapbox/eslint-config-docs --save-dev && npx install-peerdeps --dev @mapbox/eslint-config-docs
  • remove (now) redundant fields in conf/eslint-config-browser.json
  • add "@mapbox/eslint-config-docs" to extends while removing an extended modules already present in eslint-config-docs
  • fix eslint errors

Ref https://github.com/mapbox/documentation/issues/272

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@katydecorah looks good! I am curious about a couple of the changes (mostly so I can avoid mistakes in the future).

const doc = getWindow().document;
this.styleTag = doc.createElement('style');
this.styleTag.innerHTML = theme;
this.styleTag.innerHTML = `${theme}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious about the reason for this rule. 🤓

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return class Redirect extends React.Component {
componentDidMount() {
window.location.href = target;
window.location.href = escape(target);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this!

@katydecorah katydecorah Dec 4, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@katydecorah
katydecorah merged commit c3326ba into master Dec 4, 2019
@katydecorah
katydecorah deleted the eslint-config-docs branch December 4, 2019 21:16
katydecorah pushed a commit that referenced this pull request Dec 5, 2019
* master:
  Use @mapbox/eslint-config-docs (#196)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants