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.

Investigate style enforcement tools

See original GitHub issue

I don’t think style enforcement should be part of our linting process. It’s too annoying to see formatting messages in console and browser warnings as you write code.

Nevertheless I think it’s a good idea to enforce style automatically. For example, before pushing your changes.

We don’t want to enforce any particular style in CRA projects but I want to either document or integrate with popular automatic code formatting tools.

I don’t plan to look into this personally but I’d love somebody to help us out and investigate what’s out there in the ecosystem, and how we could use that in CRA.

Constraints:

  • Should offer different styles (at least semi / no-semi)
  • Fixing violations should be automatic and as easy as npm run format which could be like react-scripts format semi
  • The tool should understand all of the syntax we use (ES6, JSX, class properties, async await)

Desired outcomes:

  • We know which style enforcement tools exist and how they differ from each other
  • If there is one fitting our workflow, we have documentation on integrating it into CRA project
  • If it’s really good we might even include it into CRA

If you’d like to help, please write in this issue! I think it’s fine if several people look into this at the same time so this task is open to everyone.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
gaearoncommented, Jan 10, 2017

This is more or less what I wanted (from @jlongster). I’d like to investigate integrating it by default.

http://jlongster.com/A-Prettier-Formatter

0reactions
gaearoncommented, Jul 31, 2017

Yep.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Surveillance Equipment and Spy Gear for Investigations
Article on spy gear, surveillance equipment, gadgets, and electronics used by private investigators, police officers, and security experts.
Read more >
13 tools to improve online law enforcement investigations
13 tools to improve online law enforcement investigations · Online data tracking aggregators to jumpstart your research · Exif Viewer Chrome ...
Read more >
Equipment Needed for Crime Scene Investigation
This list accompanies NIJ's Crime Scene Investigation: Guides for Law Enforcement. First responding officers; Crime scene personnel. Optional ...
Read more >
50+ Free (or Cheap) Tools for Investigators - i-Sight
Start off on the right foot with free (or cheap) investigation tools that help you conduct effective research. Open source intelligence (OSINT).
Read more >
SEVENTH BASIC INVESTIGATIVE TECHNIQUE
Institute of Law Enforcement and Criminal Justice. It is our sincere hope that this latest investigative tool, added to the arsenal of other...
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