Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignorePatterns": ["**/dist/**/*", "**/node_modules/**/*"],
Comment thread
msyyc marked this conversation as resolved.
Resolved
"rules": {
"unicorn/no-useless-spread": "off"
}
}
15 changes: 6 additions & 9 deletions packages/http-client-python/eng/scripts/ci/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ${pc.bold("Description:")}

${pc.bold("Options:")}
${pc.cyan("-e, --emitter")}
Run ESLint on TypeScript emitter code.
Run Oxlint on TypeScript emitter code.

${pc.cyan("-g, --generator")}
Run pylint on Python generator source code (pygen).
Expand Down Expand Up @@ -85,7 +85,7 @@ function runCommand(
const workingDir = cwd || root;
const name = displayName || command;

// Add node_modules/.bin directories to PATH so commands like eslint can be found
// Add node_modules/.bin directories to PATH so commands like oxlint can be found
// Also set NODE_PATH so that config files can resolve packages from monorepo's node_modules
const pathSep = process.platform === "win32" ? ";" : ":";
const binPaths = [
Expand Down Expand Up @@ -134,20 +134,17 @@ function runCommand(

async function lintEmitter(): Promise<boolean> {
console.log(`\n${pc.bold("=== Linting TypeScript ===")}\n`);
// Run eslint with local config to avoid dependency on monorepo's eslint.config.js
// This ensures the package can be linted in CI without full monorepo dependencies
// Lint both emitter/ and eng/scripts/ directories
return runCommand(
"eslint",
"oxlint",
[
"emitter/",
"eng/scripts/",
"--config",
"eng/scripts/ci/config/eslint-ci.config.mjs",
"--max-warnings=0",
"eng/scripts/ci/config/oxlint.json",
"--deny-warnings",
],
root,
"eslint emitter/ eng/scripts/ --max-warnings=0",
"oxlint emitter/ eng/scripts/ --deny-warnings",
);
Comment thread
msyyc marked this conversation as resolved.
Resolved
}

Expand Down
2 changes: 1 addition & 1 deletion packages/http-client-python/generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"Jinja2==3.1.6",
"PyYAML==6.0.1",
"tomli==2.0.1",
"setuptools==75.3.2",
"setuptools==83.0.0",
],
)
Loading
Loading