-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: improve setup & CI config #6
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d53db78
chore: improve setup & CI config
JakobJingleheimer 40f5b5f
fixup!: wrap `NODE_OPTIONS` value in quotes within `ci.yml`
JakobJingleheimer 6136185
fixup!: update `CONTRIBUTING.md` with test info
JakobJingleheimer c6837b0
fixup!: prevent CI running on draft PRs
JakobJingleheimer bbcbb41
fixup!: `npm run` → `node --run`
JakobJingleheimer 56c0eef
fixup!: add `CODEOWNERS`
JakobJingleheimer 166c85a
fix(ci): move node_options to after npm command
JakobJingleheimer 34b57fe
chore(doc): update CONTRIBUTING per new pjson
JakobJingleheimer a8fbb4e
chore(ci): KISS `matrix.options` → `run: |`
JakobJingleheimer d47e11e
fix(ci): `if not draft`
JakobJingleheimer 73cafc3
fix(ci): add missing `setup-node` step
JakobJingleheimer 7890530
chore(ci): tidy indentation
JakobJingleheimer bd9dba7
fixup!: exclude `*.test.*` from type-check
JakobJingleheimer 84a9abd
chore(lint): adjust biome rules
JakobJingleheimer e531e8e
chore(ci): remove biome formatter
JakobJingleheimer 5e598af
fixup!: remove commented code
JakobJingleheimer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = tab | ||
insert_final_newline = true | ||
max_line_length = 100 | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_style = space | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space |
Validating CODEOWNERS rules …
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 @@ | ||
@nodejs/userland-migrations |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
"typescript.updateImportsOnFileMove.enabled": "always" | ||
} | ||
"typescript.updateImportsOnFileMove.enabled": "always", | ||
"editor.formatOnPaste": true, | ||
"editor.wordWrap": "wordWrapColumn", | ||
"editor.wordWrapColumn": 100, | ||
"[markdown]": { | ||
"editor.wordWrap": "off" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"rootDir": "./", | ||
|
||
"target": "ESNext", | ||
// "moduleDetection": "force", | ||
"lib": ["ESNext"], | ||
|
||
/* Modules */ | ||
"module": "NodeNext", | ||
|
@@ -24,7 +24,7 @@ | |
|
||
/* Interop Constraints */ | ||
"verbatimModuleSyntax": true, | ||
"allowSyntheticDefaultImports": false, | ||
"allowSyntheticDefaultImports": true, | ||
JakobJingleheimer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
|
||
|
@@ -40,5 +40,28 @@ | |
"include": [ | ||
"./build/", | ||
"./recipes/" | ||
] | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"**/build/**", | ||
"**/fixtures/**", | ||
"**/test/**", | ||
"**/*.fixture.mjs", | ||
"**/*.fixture.mts", | ||
"**/*.fixture.js", | ||
"**/*.fixture.ts", | ||
"**/*.mock.mjs", | ||
"**/*.e2e.mjs", | ||
"**/*.e2e.mts", | ||
"**/*.e2e.js", | ||
"**/*.e2e.ts", | ||
"**/*.spec.mjs", | ||
"**/*.spec.mts", | ||
"**/*.spec.js", | ||
"**/*.spec.ts", | ||
Comment on lines
+49
to
+61
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is super verbose, and the tsconfig docs specifically say they support full globs, but using |
||
"**/*.test.mjs", | ||
"**/*.test.mts", | ||
"**/*.test.js", | ||
"**/*.test.ts", | ||
], | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rules can be added:
Found nothing about #7 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we set options for use-block-statements? (I think we should use "multi")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's sad but I don't see support for an equivalent to
multi
. But I don't find it a problem personally, because I think it's fine to force the{...}
block whatever the condition.