Skip to content

Commit d70a58a

Browse files
Copilotharupy
andauthored
Enforce zero ESLint warnings in CI across all package.json files (#20332)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: harupy <17039389+harupy@users.noreply.github.com> Co-authored-by: Harutaka Kawamura <hkawamura0130@gmail.com>
1 parent 51f86d6 commit d70a58a

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"prettier:check": "prettier '**/*.{js,jsx,ts,tsx,md,mdx,css}' --check",
2525
"check-links": "tsx scripts/check-links.mts",
2626
"sitemap": "tsx scripts/compare-sitemaps.ts",
27-
"eslint": "eslint docs"
27+
"eslint": "eslint docs --max-warnings 0"
2828
},
2929
"dependencies": {
3030
"@docusaurus/core": "^3.6.3",

libs/typescript/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"scripts": {
3030
"build": "tsc",
3131
"test": "jest",
32-
"lint": "eslint . --ext .ts",
32+
"lint": "eslint . --ext .ts --max-warnings 0",
3333
"lint:fix": "eslint . --ext .ts --fix",
3434
"format": "prettier --write .",
3535
"format:check": "prettier --check ."

libs/typescript/integrations/anthropic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"build": "tsc",
3333
"test": "jest",
34-
"lint": "eslint . --ext .ts",
34+
"lint": "eslint . --ext .ts --max-warnings 0",
3535
"lint:fix": "eslint . --ext .ts --fix",
3636
"format": "prettier --write .",
3737
"format:check": "prettier --check ."

libs/typescript/integrations/gemini/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"build": "tsc",
3333
"test": "jest",
34-
"lint": "eslint . --ext .ts",
34+
"lint": "eslint . --ext .ts --max-warnings 0",
3535
"lint:fix": "eslint . --ext .ts --fix",
3636
"format": "prettier --write .",
3737
"format:check": "prettier --check ."

libs/typescript/integrations/openai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"scripts": {
3131
"build": "tsc",
3232
"test": "jest",
33-
"lint": "eslint . --ext .ts",
33+
"lint": "eslint . --ext .ts --max-warnings 0",
3434
"lint:fix": "eslint . --ext .ts --fix",
3535
"format": "prettier --write .",
3636
"format:check": "prettier --check ."

libs/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test:openai": "npm run -C integrations/openai test",
1818
"test:anthropic": "npm run -C integrations/anthropic test",
1919
"test:gemini": "npm run -C integrations/gemini test",
20-
"lint": "eslint . --ext .ts",
20+
"lint": "eslint . --ext .ts --max-warnings 0",
2121
"lint:fix": "eslint . --ext .ts --fix",
2222
"format": "prettier --write .",
2323
"format:check": "prettier --check .",

mlflow/server/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "craco --max_old_space_size=8192 test --env=jsdom --colors --watchAll=false",
99
"test:watch": "yarn test --watch",
1010
"test:ci": "CI=true craco test --env=jsdom --colors --forceExit --ci --coverage",
11-
"lint": "eslint --ext js,jsx,ts,tsx src",
11+
"lint": "eslint --ext js,jsx,ts,tsx src --max-warnings 0",
1212
"lint:fix": "eslint --ext js,jsx,ts,tsx src --fix",
1313
"type-check": "tsc --noEmit && tsc --noEmit -p src/shared/web-shared/tsconfig.json",
1414
"prettier:fix": "prettier . --write --ignore-unknown",

mlflow/server/js/src/assistant/hooks/useAssistantConfigQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { AssistantConfig } from '../types';
99

1010
type AssistantConfigQueryKey = ['assistant_config'];
1111

12-
const queryFn = async ({}: QueryFunctionContext<AssistantConfigQueryKey>) => {
12+
const queryFn = async (_context: QueryFunctionContext<AssistantConfigQueryKey>) => {
1313
return getConfig();
1414
};
1515

0 commit comments

Comments
 (0)