forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eslint] restore custom rules for bin scripts (Azure#32305)
The custom rules to suppress errors/warnings for bin scripts were removed in previous commits. This PR restores them.
- Loading branch information
1 parent
2faafa9
commit a65d4ad
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
sdk/apimanagement/api-management-custom-widgets-scaffolder/eslint.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]); |
9 changes: 9 additions & 0 deletions
9
sdk/playwrighttesting/create-microsoft-playwright-testing/eslint.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]); |