Skip to content

Switch to ESLint#4085

Merged
lukastaegert merged 6 commits intomasterfrom
switch-to-eslint
May 25, 2021
Merged

Switch to ESLint#4085
lukastaegert merged 6 commits intomasterfrom
switch-to-eslint

Conversation

@lukastaegert
Copy link
Copy Markdown
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This will finally replace TSLint with ESLint. It also fixes the commit hook.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2021

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#switch-to-eslint

or load it into the REPL:
https://rollupjs.org/repl/?pr=4085

@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2021

Codecov Report

Merging #4085 (5ac6024) into master (551e34a) will increase coverage by 0.00%.
The diff coverage is 97.79%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4085   +/-   ##
=======================================
  Coverage   98.00%   98.01%           
=======================================
  Files         201      201           
  Lines        6981     6987    +6     
  Branches     2049     2051    +2     
=======================================
+ Hits         6842     6848    +6     
  Misses         66       66           
  Partials       73       73           
Impacted Files Coverage Δ
browser/path.ts 76.92% <ø> (ø)
cli/run/index.ts 100.00% <ø> (ø)
cli/run/loadConfigFromCommand.ts 100.00% <ø> (ø)
cli/run/resetScreen.ts 100.00% <ø> (ø)
cli/run/timings.ts 0.00% <ø> (ø)
cli/run/waitForInput.ts 100.00% <ø> (ø)
src/Bundle.ts 100.00% <ø> (ø)
src/ast/CallOptions.ts 100.00% <ø> (ø)
src/ast/keys.ts 100.00% <ø> (ø)
src/ast/nodes/ArrowFunctionExpression.ts 100.00% <ø> (ø)
... and 156 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 551e34a...5ac6024. Read the comment docs.

@shellscape
Copy link
Copy Markdown
Contributor

We've got this https://github.com/rollup/eslint-config-rollup which the plugins repo uses here https://github.com/rollup/plugins/blob/master/.eslintrc.js#L2. It needs some love and a few updates (it's on my todo list) but it's pretty solid.

@lukastaegert
Copy link
Copy Markdown
Member Author

Thanks for pointing that out! I think it would be good to align eventually (which should not be too difficult once this PR is merged), but there are a few things in this config I am not 100% sure about. Mostly also the fact that it does not extend any other "recommended" configs which on the one hand makes it more stable, but on the other hand drives up maintenance overhead.

@lukastaegert
Copy link
Copy Markdown
Member Author

Still, probably no hard arguments against adopting it. I would still stick with the given config for now as it is very close to what we had before. If you ping me once you update the other config, I will move over Rollup core to use it as well.

@lukastaegert lukastaegert merged commit ebb3ff6 into master May 25, 2021
@lukastaegert lukastaegert deleted the switch-to-eslint branch May 25, 2021 10:36
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