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

chore: unify and enforce import style to no extensions #3022

Conversation

bobylito
Copy link
Contributor

@bobylito bobylito commented Jul 2, 2018

Following up on @samouss comment, this PR activates import/extensions and configures to not accepts extensions for JS files.

@bobylito bobylito requested a review from a team July 2, 2018 17:23
@algobot
Copy link
Contributor

algobot commented Jul 2, 2018

Deploy preview for algolia-instantsearch ready!

Built with commit 20ad063

https://deploy-preview-3022--algolia-instantsearch.netlify.com

@@ -3,6 +3,7 @@ module.exports = {
rules: {
"no-param-reassign": 0,
"import/no-extraneous-dependencies": 0,
"react/no-string-refs": 1
"react/no-string-refs": 1,
"import/extensions": [2, "always", {js: "never"}]
Copy link
Member

Choose a reason for hiding this comment

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

What about having this rule part of eslint-config-algolia?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a first step :) But sure it's gonna end up there if we're happy about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

algolia/eslint-config-algolia#92 we'll remove the rule when it's merged and the config updated.

@bobylito bobylito merged commit 4f7599f into feat/3.0-is.css-clearRefinements Jul 4, 2018
@bobylito bobylito deleted the feat/3.0-is.css-clearRefinements-import-no-extension branch July 4, 2018 07:30
bobylito added a commit that referenced this pull request Jul 4, 2018
* refactor(clearAll): rename clear all to clear refinements
* feat(clear-refinements): update markup
* feat(panel): upate dev-novel and misc. fixes
* chore(clear-refinements): remove panel
* chore: peer review
* chore: unify and enforce import style to no extensions (#3022)
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

4 participants