diff --git a/packages/backend/native-utils/package.json b/packages/backend/native-utils/package.json index 98b4e6fec9..180c24cbe3 100644 --- a/packages/backend/native-utils/package.json +++ b/packages/backend/native-utils/package.json @@ -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" diff --git a/packages/backend/package.json b/packages/backend/package.json index db8050df71..d6b8133d5b 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -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" diff --git a/rome.json b/rome.json index 042cab0d7d..84866353c0 100644 --- a/rome.json +++ b/rome.json @@ -19,6 +19,7 @@ "packages/backend/built/", "*/model.json", "*.md", + "*.spec.ts", "**/tsconfig.json", "*/.yml" ]