mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 06:02:22 -05:00
Refactor linting and formatting commands in package.json and GitHub workflows to streamline processes and add quiet mode for linting
This commit is contained in:
4
.github/workflows/autofix.yml
vendored
4
.github/workflows/autofix.yml
vendored
@@ -20,8 +20,6 @@ jobs:
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
download-translations: 'false'
|
||||
- name: Lint code
|
||||
run: yarn lint:fix
|
||||
- name: Format code
|
||||
run: yarn format:fix
|
||||
run: yarn lint:fix
|
||||
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
|
||||
|
||||
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@@ -22,8 +22,6 @@ jobs:
|
||||
download-translations: 'false'
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
- name: Format
|
||||
run: yarn format
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -54,10 +54,8 @@
|
||||
"vrt:docker": "./bin/run-vrt",
|
||||
"rebuild-electron": "./node_modules/.bin/electron-rebuild -m ./packages/loot-core",
|
||||
"rebuild-node": "yarn workspace loot-core rebuild",
|
||||
"lint": "oxlint --type-aware --quiet",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"format": "oxfmt --check .",
|
||||
"format:fix": "oxfmt .",
|
||||
"lint": "oxfmt --check . && oxlint --type-aware --quiet",
|
||||
"lint:fix": "oxfmt . && oxlint --fix --type-aware --quiet",
|
||||
"install:server": "yarn workspaces focus @actual-app/sync-server --production",
|
||||
"typecheck": "tsc -p tsconfig.root.json --noEmit && lage typecheck",
|
||||
"jq": "./node_modules/node-jq/bin/jq",
|
||||
@@ -97,7 +95,7 @@
|
||||
"oxfmt --no-error-on-unmatched-pattern"
|
||||
],
|
||||
"*.{js,mjs,jsx,ts,tsx}": [
|
||||
"yarn lint:fix"
|
||||
"oxlint --fix --type-aware --quiet"
|
||||
]
|
||||
},
|
||||
"browserslist": [
|
||||
|
||||
@@ -3,4 +3,4 @@ category: Maintenance
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Separate lint & format into two separate commands
|
||||
Lint: add "--quiet" flag to stop reporting warnings
|
||||
|
||||
Reference in New Issue
Block a user