question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove some formatters from the core

See original GitHub issue

The version of ESLint you are using.

v7.x

The problem you want to solve.

We ship a lot of formatters with the core, and some of them require dependencies that aren’t necessary elsewhere in ESLint. If we remove these formatters, we reduce the overall size of ESLint by removing these dependencies.

Spawned from https://github.com/eslint/eslint/issues/14098.

Your take on the correct solution to problem.

Remove these formatters:

  • codeframe - depends on @babel/code-frame
  • table - depends on table

Note that @fregante has already packaged all of the built-in formatters into separate packages on npm: https://github.com/fregante/eslint-formatters. So we would be able to tell people, for example, to install eslint-formatter-table if they are using the table formatter.

Are you willing to submit a pull request to implement this change?

Yes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Apr 12, 2021

@fregante Thanks! Keep in mind that it still may be several weeks before v8.0.0 is released so we may leave the PR open until we are ready.

1reaction
nzakascommented, Apr 1, 2021

I think that’s fine. Formatters don’t change a lot, so they might not even need maintenance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove formatter from core · Issue #7233 · elixir-lang ... - GitHub
Removing the formatter from the core signals that it's a tool to be used in certain circumstances, and not on every git push....
Read more >
how to remove JSON as a supported format? - Stack Overflow
I'm implementing a web service in ASP.NET Core 2.1 based on a specification that exclusively supports XML.
Read more >
Custom formatters in ASP.NET Core Web API - Microsoft Learn
Create a custom formatter · Derive the class from the appropriate base class. · Specify supported media types and encodings in the constructor....
Read more >
How to Remove Table Formatting in Excel (Easy Guide)
In the options that show up, click on Clear Formats. This would leave you with only the data and all the formatting would...
Read more >
Remove formatting - CKEditor 5 Documentation
The remove format feature allows you to quickly remove any text formatting applied using inline HTML elements and CSS styles, like basic text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found