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: prevent weird behaviour of pre-commit hook #973

Merged
merged 10 commits into from
Jul 4, 2019

Conversation

jamesgeorge007
Copy link
Member

@jamesgeorge007 jamesgeorge007 commented Jun 23, 2019

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?
N/A

If relevant, did you update the documentation?
N/A

Summary
Fixed the weird behavior of pre-commit hook as mentioned in #956

Fixes #956

Does this PR introduce a breaking change?

Nope

Other information
N/A

Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

@jamesgeorge007
Copy link
Member Author

@ematipico Are these rules to be included within .eslintrc.js?

{
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "prettier",
    "prettier/@typescript-eslint"
  ]
}

Is this the required workaround 🤔

@ematipico
Copy link
Contributor

We have to include this in all the .eslintrc files we have inside the repository. It's not a workaround, it's correct integration between @typescript-eslint and prettier

@webpack-bot
Copy link

@jamesgeorge007 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ematipico Please review the new changes.

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

These changes should be applied to the libraries inside packages folder. You see, the change that you are applying are for TypeScript files but the configuration you are changing are for JavaScript files.

@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Copy link
Member

@rishabh3112 rishabh3112 left a comment

Choose a reason for hiding this comment

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

Looks great to me 👍
Although, why are there changes to the lock files when no new packages are neither added, updated or deleted?

@jamesgeorge007
Copy link
Member Author

@rishabh3112 CI was failing without those lock file changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞[infra]: weird behaviour by commit hook
6 participants