Skip to content

Commit 60abcd6

Browse files
MichaelDeBoeyCompuIves
authored andcommitted
Simplify prettier usage (codesandbox#1894)
* Use pretty-quick instead of lint-staged * Run Prettier over codebase * Update @MichaelDeBoey as a contributor
1 parent b5419ed commit 60abcd6

File tree

211 files changed

+1342
-1619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+1342
-1619
lines changed

.all-contributorsrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,11 @@
11831183
"avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4",
11841184
"profile": "https://michaeldeboey.be",
11851185
"contributions": [
1186+
"bug",
11861187
"code",
1187-
"doc"
1188+
"doc",
1189+
"infra",
1190+
"tool"
11881191
]
11891192
},
11901193
{

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
* text=auto
2-
*.js text eol=lf
1+
* text=auto eol=lf

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ about: Did something not work?
66
# 🐛 bug report
77

88
## Description of the problem
9+
910
## How has this issue affected you? What are you trying to accomplish?
1011

11-
### Link to sandbox: [link]() (optional)
12+
### Link to sandbox: [link]() (optional)
13+
1214
### Your Environment
13-
| Software | Name/Version|
14-
| ---------------- | ---------- |
15-
| Сodesandbox |
16-
| Browser |
17-
| Operating System |
15+
16+
| Software | Name/Version |
17+
| ---------------- | ------------ |
18+
| Сodesandbox |
19+
| Browser |
20+
| Operating System |

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ about: What cool thing would you like to add?
77

88
<!-- What is this feature? -->
99
<!-- How the feature should work? -->
10-
<!-- You have examples or an idea how it can be implemented? -->
10+
<!-- You have examples or an idea how it can be implemented? -->

.github/ISSUE_TEMPLATE/QUESTION.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ about: Have any questions?
77

88
<!--- Provide your question, code sample Or other information that will help in solving here -->
99

10-
### Link to sandbox: [link]() (optional)
10+
### Link to sandbox: [link]() (optional)
11+
1112
### Your Environment
12-
| Software | Name/Version|
13-
| ---------------- | ---------- |
14-
| Сodesandbox |
15-
| Browser |
16-
| Operating System |
13+
14+
| Software | Name/Version |
15+
| ---------------- | ------------ |
16+
| Сodesandbox |
17+
| Browser |
18+
| Operating System |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,24 @@ merge of your pull request!
77
-->
88

99
<!-- Is it a Bug fix, feature, docs update, ... -->
10+
1011
**What kind of change does this PR introduce?**
1112

1213
<!-- You can also link to an open issue here -->
14+
1315
**What is the current behavior?**
1416

1517
<!-- if this is a feature change -->
16-
**What is the new behavior?**
1718

19+
**What is the new behavior?**
1820

1921
<!-- Have you done all of these things? -->
22+
2023
**Checklist**:
24+
2125
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
2226
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
27+
2328
- [ ] Documentation
2429
- [ ] Tests
2530
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->

.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "pretty-quick --staged"
4+
}
5+
}

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
!/standalone-packages/vscode/src/vs/codesandbox/**/*.ts
44
!/standalone-packages/vscode/src/vs/codesandbox/**/*.*
55

6+
lib/
67
static/
7-
/package.json
88
/standalone-packages/*
99

1010
# Our server side code changes html, we don't want to unintentionally break this by formatting

.prettierrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2-
"trailingComma": "es5",
3-
"singleQuote": true
2+
"endOfLine": "lf",
3+
"singleQuote": true,
4+
"trailingComma": "es5"
45
}

README.md

Lines changed: 20 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)