chore: 🔧 linting config

This commit is contained in:
ThatOneCalculator 2023-09-01 16:32:41 -07:00
parent 5d06aa5f13
commit 34e2f7ada6
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 4 additions and 3 deletions

View File

@ -42,8 +42,8 @@
"test": "pnpm run cargo:test && pnpm run build:napi && ava",
"universal": "napi universal",
"version": "napi version",
"format": "cargo fmt --all",
"lint": "cargo clippy --fix",
"format": "cargo fmt --all -- --check",
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all -- --check",
"cargo:test": "pnpm run cargo:unit && pnpm run cargo:integration",
"cargo:unit": "cargo test unit_test && cargo test -F napi unit_test",
"cargo:integration": "cargo test -F noarray int_test -- --test-threads=1"

View File

@ -16,7 +16,7 @@
"build": "pnpm swc src -d built -D",
"build:debug": "pnpm swc src -d built -s -D",
"watch": "pnpm swc src -d built -D -w",
"lint": "pnpm rome check --apply *",
"lint": "pnpm rome check --apply **/*.ts",
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
"test": "pnpm run mocha",
"format": "pnpm rome format * --write"

View File

@ -19,6 +19,7 @@
"packages/backend/built/",
"*/model.json",
"*.md",
"*.spec.ts",
"**/tsconfig.json",
"*/.yml"
]