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

feat(eslint-plugin): add space-before-function-paren [extension] #924

Merged
merged 10 commits into from Nov 14, 2019
Merged

Conversation

Austaras
Copy link
Contributor

@Austaras Austaras commented Aug 30, 2019

"Half fixes" #707

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @Austaras!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint

@codecov
Copy link

codecov bot commented Aug 30, 2019

Codecov Report

Merging #924 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #924      +/-   ##
=========================================
+ Coverage   94.05%   94.1%   +0.04%     
=========================================
  Files         123     124       +1     
  Lines        5286    5325      +39     
  Branches     1470    1487      +17     
=========================================
+ Hits         4972    5011      +39     
  Misses        179     179              
  Partials      135     135
Impacted Files Coverage Δ
packages/eslint-plugin/src/rules/index.ts 100% <100%> (ø) ⬆️
...nt-plugin/src/rules/space-before-function-paren.ts 100% <100%> (ø)

@bradzacher bradzacher added the enhancement: new base rule extension New base rule extension required to handle a TS specific case label Aug 30, 2019
@Austaras
Copy link
Contributor Author

Austaras commented Oct 8, 2019

@bradzacher may you or other member take some time review this and get it merged?

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

two nits, otherwise LGTM - thanks for this.

Comment on lines +11 to +13
export type Options = [

| Option
Copy link
Member

Choose a reason for hiding this comment

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

nit formatting - this was a bug in prettier that's since been fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe you should update prettier in yarn.lock first or test for format will fail

packages/eslint-plugin/src/configs/all.json Show resolved Hide resolved
@bradzacher bradzacher added 1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready awaiting response Issues waiting for a reply from the OP or another party labels Nov 13, 2019
@bradzacher
Copy link
Member

still formatting errors in the file - if you can run prettier on the file to get the CI passing, we can look to merge this.

@Austaras
Copy link
Contributor Author

It should. If I guess correctly, CI is using prettier 1.18.2 in yarn.lock but your requested change could only satisfy format for prettier 1.19

@bradzacher
Copy link
Member

oh wow. I'm sorry - I didn't realise we hadn't updated the prettier version.
My mistake. Thanks for this.

@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Nov 14, 2019
@bradzacher bradzacher merged commit d8b07a7 into typescript-eslint:master Nov 14, 2019
lydell pushed a commit to prettier/eslint-config-prettier that referenced this pull request Nov 19, 2019
The new rule `@typescript-eslint/space-before-function-paren` has been added since `@typescript-eslint/eslint-plugin@2.8.0`.

- https://github.com/typescript-eslint/typescript-eslint/blob/v2.8.0/packages/eslint-plugin/docs/rules/space-before-function-paren.md
- https://github.com/typescript-eslint/typescript-eslint/releases/tag/v2.8.0
- typescript-eslint/typescript-eslint#924

This rule is an extension of the ESLint core rule `space-before-function-paren`,
and `eslint-config-prettier` has disabled the rule already.

- https://github.com/prettier/eslint-config-prettier/blob/ed97c2f4cb77b5cc8cb941900b81304b5cd6eb1d/index.js#L77
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready enhancement: new base rule extension New base rule extension required to handle a TS specific case
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants