Skip to content

Commit

Permalink
[eslint] restore custom rules for bin scripts (Azure#32305)
Browse files Browse the repository at this point in the history
The custom rules to suppress errors/warnings for bin scripts were
removed in
previous commits. This PR restores them.
  • Loading branch information
jeremymeng authored Dec 19, 2024
1 parent 2faafa9 commit a65d4ad
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
files: ["src/bin/execute.ts"],
rules: {
"n/no-process-exit": "off",
"n/hashbang": "off",
// shebang needs to come first
"@azure/azure-sdk/github-source-headers": "off",
},
},
]);
13 changes: 13 additions & 0 deletions sdk/formrecognizer/ai-form-recognizer/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
files: ["src/bin/gen-model.ts"],
rules: {
"n/no-process-exit": "off",
"n/hashbang": "off",
// shebang needs to come first
"@azure/azure-sdk/github-source-headers": "off",
},
},
]);
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
// shebang needs to come first
files: ["src/index.ts"],
rules: {
"n/no-process-exit": "off",
"n/hashbang": "off",
"@azure/azure-sdk/github-source-headers": "off",
},
},
]);

0 comments on commit a65d4ad

Please sign in to comment.