-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speculation rules update, copilot instructions added, yield awaits ad…
…ded, Workbox update
- Loading branch information
1 parent
5867144
commit 5e5a8f5
Showing
34 changed files
with
1,099 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copilot Instructions | ||
|
||
## Code Formatting Guidelines | ||
|
||
1. **Conditionals**: | ||
- Always add spaces inside the parentheses of conditionals. | ||
``` | ||
//Correct | ||
if ( condition ){ | ||
// code | ||
} | ||
|
||
//Incorrect | ||
if(condition){ | ||
// code | ||
} | ||
``` | ||
|
||
2. **Indentation**: | ||
- Always use tabs instead of spaces for indentation. | ||
``` | ||
//Correct | ||
function example() { | ||
↹let x = 1; | ||
} | ||
|
||
//Incorrect | ||
function example() { | ||
let x = 1; | ||
} | ||
``` | ||
|
||
3. **Comments**: | ||
- Never put a space between the `//` and the first character of the comment. | ||
``` | ||
//Correct | ||
//This is a comment | ||
|
||
// Incorrect | ||
// This is a comment | ||
``` | ||
|
||
4. **CSS and SASS**: | ||
- Write CSS and SASS rules in a single line, but nesting is allowed. | ||
``` | ||
//Correct | ||
.container {display: flex; gap: 5px; | ||
.item {margin: 10px;} | ||
} | ||
|
||
//Incorrect | ||
.container { | ||
display: flex; | ||
.item { | ||
margin: 10px; | ||
} | ||
} | ||
``` | ||
|
||
Please follow these guidelines to ensure consistency and readability in the codebase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.