Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #734
Closed
Open
Issue created Sep 24, 2016 by Administrator@rootContributor

Investigate style enforcement tools

Created by: gaearon

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.

Assignee
Assign to
Time tracking