chore: 🔧 linting config
This commit is contained in:
parent
5d06aa5f13
commit
34e2f7ada6
3 changed files with 4 additions and 3 deletions
|
@ -42,8 +42,8 @@
|
||||||
"test": "pnpm run cargo:test && pnpm run build:napi && ava",
|
"test": "pnpm run cargo:test && pnpm run build:napi && ava",
|
||||||
"universal": "napi universal",
|
"universal": "napi universal",
|
||||||
"version": "napi version",
|
"version": "napi version",
|
||||||
"format": "cargo fmt --all",
|
"format": "cargo fmt --all -- --check",
|
||||||
"lint": "cargo clippy --fix",
|
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all -- --check",
|
||||||
"cargo:test": "pnpm run cargo:unit && pnpm run cargo:integration",
|
"cargo:test": "pnpm run cargo:unit && pnpm run cargo:integration",
|
||||||
"cargo:unit": "cargo test unit_test && cargo test -F napi unit_test",
|
"cargo:unit": "cargo test unit_test && cargo test -F napi unit_test",
|
||||||
"cargo:integration": "cargo test -F noarray int_test -- --test-threads=1"
|
"cargo:integration": "cargo test -F noarray int_test -- --test-threads=1"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"build": "pnpm swc src -d built -D",
|
"build": "pnpm swc src -d built -D",
|
||||||
"build:debug": "pnpm swc src -d built -s -D",
|
"build:debug": "pnpm swc src -d built -s -D",
|
||||||
"watch": "pnpm swc src -d built -D -w",
|
"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",
|
"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",
|
"test": "pnpm run mocha",
|
||||||
"format": "pnpm rome format * --write"
|
"format": "pnpm rome format * --write"
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"packages/backend/built/",
|
"packages/backend/built/",
|
||||||
"*/model.json",
|
"*/model.json",
|
||||||
"*.md",
|
"*.md",
|
||||||
|
"*.spec.ts",
|
||||||
"**/tsconfig.json",
|
"**/tsconfig.json",
|
||||||
"*/.yml"
|
"*/.yml"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue