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.

Add scaffolding to the library

See original GitHub issue

Since lint-staged already a CLI tool, we could back in a setup functionality to it that would scaffold and add a config to package.json. Ideally, it would work out of the box or ask a few questions about the project (what presets to add: “JS”, “CSS”, “autofixing” etc.)

I’m open for more suggestions here. Ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sapegincommented, Jan 3, 2018

I think we could extend it to the point where it asks what typical linters/formatters you’d like to use

To do that we’ll need to extend Mrm to support async tasks. And I don’t think it’s really useful 😉

I dunno how much of this is feasible but would it be possible to detect the linters installed and auto configure it? Furthermore, would it be possible to guess the glob patterns based on file structure?

That’s exactly what the Mrm task is doing. But right now it supports only ESLint, Stylelint and Prettier.

0reactions
sudo-suhascommented, Jan 3, 2018

I dunno how much of this is feasible but would it be possible to detect the linters installed and auto configure it? Furthermore, would it be possible to guess the glob patterns based on file structure?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity Framework Core: Automated DB scaffolding into a class ...
Install EntityFrameWorkCore.Sqlserver and EntityFrameWorkCore.Tools from Nuget. In package Manager Console write: Scaffold-DbContext "Data ...
Read more >
Scaffold Identity in ASP.NET Core projects - Microsoft Learn
Run the Identity scaffolder: Visual Studio .NET Core CLI. From Solution Explorer, right-click on the project > Add > New Scaffolded Item ...
Read more >
Scaffold class - material library - Flutter - Dart API docs
Implements the basic Material Design visual layout structure. This class provides APIs for showing drawers and bottom sheets.
Read more >
Scaffolding a React Component Library with Storybook (Using ...
For this tutorial, we will be adding Storybook to this library and writing stories for its scatterplot component.
Read more >
6 Strategies to Add Scaffolding to Any Lesson / Moore English
First, brainstorming is such a good way to scaffold student writing. Brainstorming can be very formal like an organizer or can be less ......
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