Skip to content

Commit 65d68f8

Browse files
committed
🤖 Add Copilot instructions
1 parent 97d189e commit 65d68f8

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config/*
2-
!config/rubocop/config.yml
2+
!config/copilot-instructions.md
33
!config/gh/config.yml
4+
!config/rubocop/config.yml
45

56
*-ghedr
67
*-local

‎.vscode/settings.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393
"github.copilot.advanced": {},
9494
"github.copilot.editor.enableAutoCompletions": true,
9595
"github.copilot.chat.edits.enabled": true,
96+
"github.copilot.chat.experimental.codeGeneration.instructions": [
97+
{
98+
"file": "/Users/stoe/code/private/.dotfiles/config/copilot-instructions.md"
99+
},
100+
{
101+
"file": ".github/copilot-instructions.md"
102+
}
103+
],
96104
"github.copilot.enable": {
97105
"*": true,
98106
"javascript": true,
@@ -306,10 +314,5 @@
306314
},
307315
"[yaml]": {
308316
"editor.defaultFormatter": "esbenp.prettier-vscode"
309-
},
310-
"github.copilot.chat.codeGeneration.instructions": [
311-
{
312-
"file": ".github/copilot-instructions.md"
313-
}
314-
]
317+
}
315318
}

‎config/copilot-instructions.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
For any code use `.editorconfig` within the workspace, or the global one at `/Users/stoe/code/private/.dotfiles/.editorconfig`.
2+
3+
For Ruby code, always use `/Users/stoe/code/private/.dotfiles/config/rubocop/config.yml` as the RuboCop configuration file.
4+
5+
For JavaScript/TypeScript/Node.js code, always use following config files inside of the workspace (if present):
6+
7+
- `eslint.config.js`
8+
- `prettier.config.js` and `.prettierignore`, or use the global one at `/Users/stoe/code/private/.dotfiles/prettier.config.js` and `/Users/stoe/code/private/.dotfiles/.prettierignore`.

0 commit comments

Comments
 (0)