Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the no-undef rule #1397

Merged
merged 1 commit into from
Nov 26, 2018
Merged

Enable the no-undef rule #1397

merged 1 commit into from
Nov 26, 2018

Conversation

amanmahajan7
Copy link
Contributor

No description provided.

Copy link
Contributor

@nstepien nstepien left a comment

Choose a reason for hiding this comment

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

Looks good overall, just a minor comment.

@@ -1,5 +1,7 @@
const React = require('react');
import PropTypes from 'prop-types';
import moment from 'moment';

const ReactDOM = require('react-dom');
const Moment = require('moment');
Copy link
Contributor

Choose a reason for hiding this comment

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

Should avoid importing it twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file should be deleted as it is not used and maintained. I am going to create a separate PR to removed unused files once this is merged

@nstepien
Copy link
Contributor

You should also double check that the environments are set up properly in eslint, so we don't allow describe outside of tests for example.

@amanmahajan7
Copy link
Contributor Author

I will cleanup cleanup eslint file in a separate PR as well :)

@amanmahajan7 amanmahajan7 merged commit cb4fdc4 into master Nov 26, 2018
@amanmahajan7 amanmahajan7 deleted the am-eslint-rules branch November 26, 2018 18:52
rossjp pushed a commit to rossjp/react-data-grid that referenced this pull request Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants