Skip to content

Add eslint-plugin-import to validate imports. - #16657

Merged
rwjblue merged 1 commit into
emberjs:masterfrom
rwjblue:lint-imports
May 18, 2018
Merged

rwjblue merged 1 commit into
emberjs:masterfrom
rwjblue:lint-imports

Conversation

@rwjblue

@rwjblue rwjblue commented May 18, 2018

Copy link
Copy Markdown
Member

This ensures that all imports are resolvable and valid.

Future changes should enable more rules from eslint-plugin-import (such as ensuring that a given imported module is only specified once or preventing module cycles).

This ensures that all imports are resolvable and valid.

Future changes should enable more rules from eslint-plugin-import (such
as ensuring that a given imported module is only specified once or
preventing module cycles).
@rwjblue
rwjblue requested a review from krisselden May 18, 2018 20:01
Comment thread packages/ember/index.js
isSerializationFirstNode,
} from 'ember-glimmer';
// eslint-disable-next-line import/no-unresolved
import VERSION from './version';

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.

We could always have a placeholder file for this and clobber it with the generated one

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, I am planning to add a file for the new "public modules api" for it instead though. I just wanted to land this first, as it massively helps to have lint failures on invalid module imports (as opposed to running the tests and hoping that there are failures...).

@rwjblue
rwjblue merged commit 64a3387 into emberjs:master May 18, 2018
@rwjblue
rwjblue deleted the lint-imports branch May 18, 2018 20:42
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.

2 participants