Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

feat!: add import-extensions rule #138

Merged
merged 2 commits into from
Jan 31, 2020
Merged

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 31, 2020

When I originally created the issue, I was thinking about ".soy.js" imports, but in the end we may as well apply it to all ".js" imports. See the documentation in this commit for details on why this is a reasonable approach for our codebases, and why I think we won't need any configurability at this time.

Closes: #137

When I originally created the issue, I was thinking about ".soy.js"
imports, but in the end we may as well apply it to all ".js" imports.
See the documentation in this commit for details on why this is a
reasonable approach for our codebases, and why I think we won't need any
configurability at this time.

Closes: #137
@wincent
Copy link
Contributor Author

wincent commented Jan 31, 2020

Output of test run in liferay-portal:

https://gist.github.com/wincent/0f98a543fb7b67b2d82666af8b144830

Corresponding autofixes:

https://gist.github.com/wincent/96671dc346caa79b4e8f956ddb1a7b89

Which is to say, all looks good and I think this can be merged once CI is green.

@wincent wincent merged commit e0452ed into master Jan 31, 2020
@wincent wincent deleted the wincent/import-extensions branch January 31, 2020 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enforce standard ".soy" import style
1 participant