Skip to content

Commit b7c3158

Browse files
chore: add lint:fix script for ESLint auto-fixes (#1510)
* chore: add lint:fix script for ESLint auto-fixes * chore: fix changelog PR link * fix whitespace --------- Co-authored-by: Brendan Kellam <brendan@sourcebot.dev>
1 parent 5824c1b commit b7c3158

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "cross-env SKIP_ENV_VALIDATION=1 yarn workspaces foreach --all --topological run build",
88
"test": "yarn workspaces foreach --all --topological run test",
99
"lint": "yarn workspaces foreach --all --topological run lint",
10+
"lint:fix": "yarn workspaces foreach --all --topological run lint:fix",
1011
"dev": "concurrently --kill-others --names \"zoekt,worker,web,schemas\" 'yarn dev:zoekt' 'yarn dev:backend' 'yarn dev:web' 'yarn watch:schemas'",
1112
"with-env": "cross-env PATH=\"$PWD/bin:$PATH\" dotenv -e .env.development -c --",
1213
"dev:zoekt": "yarn with-env zoekt-webserver -index .sourcebot/index -rpc",

packages/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "cross-env SKIP_ENV_VALIDATION=1 next build",
88
"start": "next start",
99
"lint": "cross-env SKIP_ENV_VALIDATION=1 eslint .",
10+
"lint:fix": "cross-env SKIP_ENV_VALIDATION=1 eslint . --fix",
1011
"test": "cross-env SKIP_ENV_VALIDATION=1 vitest",
1112
"openapi:generate": "tsx tools/generateOpenApi.ts",
1213
"generate:protos": "proto-loader-gen-types --includeComments --longs=Number --enums=String --defaults --oneofs --grpcLib=@grpc/grpc-js --keepCase --includeDirs=../../vendor/zoekt/grpc/protos --outDir=src/proto zoekt/webserver/v1/webserver.proto zoekt/webserver/v1/query.proto",

0 commit comments

Comments
 (0)