Skip to content

Commit

Permalink
Convert some YAML config files to JSON (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Apr 30, 2024
1 parent fdc77e3 commit 8c4ea5b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 41 deletions.
4 changes: 4 additions & 0 deletions .markdownlint.json
@@ -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
@@ -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.

0 comments on commit 8c4ea5b

Please sign in to comment.