Skip to content

Commit 90519cf

Browse files
jeremymengv-jiaodi
andauthored
use azsdkEslint.config helper in eslint.config.mjs (#2949)
* use `azsdkEslint.config` helper This is a follow-up of JS repo PR Azure/azure-sdk-for-js#32073 * update baselines * update baseline * remove excess files --------- Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
1 parent 9e1b744 commit 90519cf

50 files changed

Lines changed: 100 additions & 167 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
22

3-
export default [
4-
...azsdkEslint.configs.recommended,
3+
export default azsdkEslint.config([
54
{
65
rules: {
76
"@azure/azure-sdk/ts-modules-only-named": "warn",
@@ -11,4 +10,4 @@ export default [
1110
"tsdoc/syntax": "warn"
1211
}
1312
}
14-
];
13+
]);

0 commit comments

Comments
 (0)