55 строки
1.0 KiB
YAML
55 строки
1.0 KiB
YAML
actions:
|
|
eslint:
|
|
description: eslint
|
|
run: ./node_modules/.bin/eslint --color {files}
|
|
fix: ./node_modules/.bin/eslint --color --fix {files}
|
|
include:
|
|
- "*.js"
|
|
- "*.jsx"
|
|
- "*.ts"
|
|
- "*.tsx"
|
|
|
|
typescript:
|
|
description: tsc-type-checking
|
|
run: ./node_modules/.bin/tsc --noEmit --project tsconfig.json
|
|
include:
|
|
- "*.ts"
|
|
- "*.tsx"
|
|
|
|
prettier:
|
|
description: Prettier code formatting
|
|
run: ./node_modules/.bin/prettier --check {files}
|
|
fix: ./node_modules/.bin/prettier --write {files}
|
|
include:
|
|
- "*.js"
|
|
- "*.jsx"
|
|
- "*.ts"
|
|
- "*.tsx"
|
|
- "*.css"
|
|
- "*.scss"
|
|
|
|
black:
|
|
description: Black code formatting
|
|
run: ./bin/format-python.sh --check {files}
|
|
fix: ./bin/format-python.sh {files}
|
|
include:
|
|
- "*.py"
|
|
|
|
shortcuts:
|
|
lint:
|
|
flags:
|
|
- include-unstaged
|
|
- include-untracked
|
|
|
|
"lint:all":
|
|
extends: lint
|
|
flags: use-tracked-files
|
|
|
|
fix:
|
|
extends: lint
|
|
flags: fix
|
|
|
|
"fix:all":
|
|
extends: fix
|
|
flags: use-tracked-files
|