Skip to content
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

Convert some YAML config files to JSON #550

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"line-length": false,
"no-inline-html": false
}
2 changes: 0 additions & 2 deletions .markdownlint.yaml

This file was deleted.

50 changes: 50 additions & 0 deletions lefthook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"pre-commit": {
"parallel": true,
"commands": {
"main-branch-check": {
"only": [{ "ref": "main" }],
"run": "exit 1",
"fail_text": "Please switch to another branch before committing. Use `git switch -c <branch-name>`."
},
"prettier": {
"run": "npx prettier {staged_files} --check --ignore-unknown",
"fail_text": "Please fix the formatting issues before committing. Use `npm run format`."
},
"eslint": {
"glob": "*.{mjs,ts}",
"run": "npx eslint {staged_files}",
"fail_text": "Please fix the ESLint issues before committing. Try `npx eslint --fix .`."
},
"markdownlint": {
"glob": "*.md",
"run": "npx markdownlint {staged_files}",
"fail_text": "Please fix the markdownlint issues before committing. Try `npx markdownlint --fix .`."
},
"build": {
"glob": "src/**",
"run": "npm run build",
"fail_text": "Please fix the build issues before committing. Try `npm run build`."
},
"test": {
"glob": "{src,tests}/**",
"run": "npm run test",
"fail_text": "Please fix the test issues before committing. Try `npm run test:watch`."
},
"type-test": {
"glob": "{src,type-tests}/**",
"run": "npm run type-test",
"fail_text": "Please fix the type test issues before committing. Try `npm run type-test`."
}
}
},
"output": [
"summary",
"success",
"failure",
"execution",
"execution_out",
"execution_info",
"skips"
]
}
39 changes: 0 additions & 39 deletions lefthook.yaml

This file was deleted.