Comments (2)
I think we should all use prettier. It is what is required by react open source. This way we will not see formatting changes in pull requests and only see the real code. We will also need this for new open source developers.
Config
There are two config files needed:
Ignore file: https://github.com/facebook/react/blob/main/.prettierignore
Config file: https://github.com/facebook/react/blob/main/.prettierrc.js
Command
React supports two command: npm run prettier
and npm run prittier-all
. The first one only checks on your changes.
https://github.com/facebook/react/blob/main/package.json#L138
How it works
This file runs prittier with npm. https://github.com/facebook/react/blob/main/scripts/prettier/index.js
Packages Required
const prettier = require('prettier');
https://www.npmjs.com/package/prettier
Using with vs code or other editors
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
from incubator-devlake.
It looks like the ts-main branch does something very close to this already. We can stick with that :)
from incubator-devlake.
Related Issues (20)
- [Bug][Github Plugin] API call to remote-scopes returns a list of 1 and no github data HOT 1
- [Feature][jira] Jira changelog extractor and converter support Incremental Mode
- [Bug][Config UI] Unexpected Scope Names
- [Bug][framework] Pipelines page loads only first 50 pipelines
- [Bug][SonarQube] remote-scopes endpoint doesn't return a next page token
- [Bug][projects] Can't select different page sizes on projects page
- [Bug][Bitbucket_server] search-remote-scopes endpoint always returns the same result
- [Bug][GitHub] GraphQL API gets different data from REST API HOT 5
- [Bug][Grafana] Some KPIs show 0 or 100 if data is incomplete HOT 1
- [Bug][Grafana] Month filter in Engineering Overview Dashboard destroys User Experience HOT 4
- [Question][Jenkins] Most Jenkins Projects Not Selectable HOT 5
- [Question][devlake] Setting up a development environment on macOS Sonoma 14.2 HOT 5
- [Feature][Config UI] Simplify scope config configuration
- [Feature][Config UI] Support document title
- [Bug][Module Name] Migration to 1.0.0-beta6 fails -- file_path column too long HOT 6
- [Bug][Config UI] Error when trying to save an existing scope config HOT 1
- [Feature][Version Management] Track the distinct versions across customers and the lead time for the customers to upgrade to the latest version HOT 1
- [Bug][gitextractor] Azure devops repos fail to clone with 400 errors HOT 4
- [Question][Module Name] Configure mTLS with mysql HOT 1
- [Bug][PagerDuty] search-remote-scope response 500 error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake.