Skip to content

Commit 4ab6590

Browse files
committed
Apply automated migration to eslint flat config
1 parent 1764824 commit 4ab6590

File tree

246 files changed

+1044
-921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+1044
-921
lines changed

sdk/agrifood/agrifood-farming-rest/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
];

sdk/agrifood/agrifood-farming-rest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"integration-test:browser": "karma start --single-run",
7070
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/{,!(browser)/**/}*.spec.js\"",
7171
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
72-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
73-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
72+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
73+
"lint": "eslint package.json api-extractor.json src test",
7474
"pack": "npm pack 2>&1",
7575
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
7676
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",

sdk/ai/ai-inference-rest/.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
"@azure/azure-sdk/ts-package-json-module": "off",
13+
"@azure/azure-sdk/ts-package-json-files-required": "off",
14+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
15+
},
16+
},
17+
];

sdk/anomalydetector/ai-anomaly-detector-rest/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
];

sdk/anomalydetector/ai-anomaly-detector-rest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"integration-test:browser": "dev-tool run test:browser",
4848
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
4949
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
50-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
51-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
50+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
51+
"lint": "eslint package.json api-extractor.json src test",
5252
"pack": "npm pack 2>&1",
5353
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
5454
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",

sdk/apimanagement/api-management-custom-widgets-scaffolder/.eslintrc.json

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/github-source-headers": "off",
8+
},
9+
},
10+
];

sdk/apimanagement/api-management-custom-widgets-scaffolder/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"integration-test:browser": "echo skipped",
4444
"integration-test:node": "dev-tool run test:vitest --no-test-proxy -- -coverage",
4545
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
46-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion] --ignore-pattern templates",
47-
"lint": "eslint package.json api-extractor.json src test --ext .ts --ignore-pattern templates",
46+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion] --ignore-pattern templates",
47+
"lint": "eslint package.json api-extractor.json src test --ignore-pattern templates",
4848
"pack": "npm pack 2>&1",
4949
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
5050
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",

sdk/apimanagement/api-management-custom-widgets-tools/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

sdk/apimanagement/api-management-custom-widgets-tools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"integration-test:browser": "npm run build:test && dev-tool run test:vitest --no-test-proxy --browser -- --coverage",
3939
"integration-test:node": "dev-tool run test:vitest --no-test-proxy -- -coverage",
4040
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
41-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
42-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
41+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
42+
"lint": "eslint package.json api-extractor.json src test",
4343
"pack": "npm pack 2>&1",
4444
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
4545
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",

sdk/appcontainers/arm-appcontainers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@
115115
"disableDocsMs": true,
116116
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appcontainers?view=azure-node-preview"
117117
}
118-
}
118+
}

sdk/appservice/arm-appservice-rest/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
];

sdk/appservice/arm-appservice-rest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"integration-test:browser": "dev-tool run test:browser",
5757
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
5858
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
59-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
60-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
59+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
60+
"lint": "eslint package.json api-extractor.json src test",
6161
"pack": "npm pack 2>&1",
6262
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
6363
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",

sdk/attestation/attestation/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"integration-test:browser": "dev-tool run test:browser",
4545
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'",
4646
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
47-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
48-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
47+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
48+
"lint": "eslint package.json api-extractor.json src test",
4949
"pack": "npm pack 2>&1",
5050
"test:browser": "npm run build:test && npm run integration-test:browser",
5151
"test:node": "npm run build:test && npm run integration-test:node",

sdk/batch/batch-rest/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
];

sdk/batch/batch-rest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
"integration-test:node": "echo skipped",
106106
"generate:client": "echo skipped",
107107
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
108-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]",
109-
"lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts",
108+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
109+
"lint": "eslint package.json api-extractor.json src test",
110110
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
111111
"build:test": "npm run clean && tshy && dev-tool run build-test",
112112
"build": "npm run clean && tshy && mkdirp ./review && api-extractor run --local",

sdk/cognitivelanguage/ai-language-conversations/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
"integration-test:browser": "dev-tool run test:browser",
106106
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
107107
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
108-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
109-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
108+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
109+
"lint": "eslint package.json api-extractor.json src test",
110110
"pack": "npm pack 2>&1",
111111
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
112112
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",

sdk/cognitivelanguage/ai-language-text/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"integration-test:browser": "dev-tool run test:browser",
7676
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
7777
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
78-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
79-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
78+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
79+
"lint": "eslint package.json api-extractor.json src test",
8080
"pack": "npm pack 2>&1",
8181
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
8282
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",

sdk/cognitivelanguage/ai-language-textauthoring/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
"@azure/azure-sdk/ts-modules-only-named": "warn",
8+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-types": "warn",
10+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
];

sdk/cognitivelanguage/ai-language-textauthoring/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"integration-test:browser": "echo skipped",
4848
"integration-test:node": "echo skipped",
4949
"integration-test": "echo skipped",
50-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
51-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
50+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
51+
"lint": "eslint package.json api-extractor.json src test",
5252
"pack": "npm pack 2>&1",
5353
"test:browser": "echo skipped",
5454
"test:node": "echo skipped",

sdk/communication/communication-alpha-ids/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"integration-test:browser": "dev-tool run test:browser",
2424
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 300000 'dist-esm/test/**/*.spec.js'",
2525
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
26-
"lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]",
27-
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
26+
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
27+
"lint": "eslint package.json api-extractor.json README.md src test",
2828
"pack": "npm pack 2>&1",
2929
"test": "rimraf --glob dist-test && npm run build:test && npm run unit-test && npm run integration-test",
3030
"test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser",

sdk/communication/communication-call-automation/.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
// Removing `src` would be a breaking change so leaving it for the package owners to address
8+
"@azure/azure-sdk/ts-package-json-files-required": "warn",
9+
},
10+
},
11+
];

sdk/communication/communication-call-automation/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"integration-test:browser": "echo skipped",
2727
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
2828
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
29-
"lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]",
30-
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
29+
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
30+
"lint": "eslint package.json api-extractor.json README.md src test",
3131
"pack": "npm pack 2>&1",
3232
"test:browser": "npm run build:test && npm run unit-test:browser",
3333
"test:node": "npm run build:test && npm run unit-test:node",

sdk/communication/communication-chat/.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default [
4+
...azsdkEslint.configs.recommended,
5+
{
6+
rules: {
7+
// Removing `src` would be a breaking change so leaving it for the package owners to address
8+
"@azure/azure-sdk/ts-package-json-files-required": "warn",
9+
},
10+
},
11+
];

sdk/communication/communication-chat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"integration-test:browser": "dev-tool run test:browser",
2323
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
2424
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
25-
"lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]",
26-
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
25+
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
26+
"lint": "eslint package.json api-extractor.json README.md src test",
2727
"pack": "npm pack 2>&1",
2828
"test:browser": "npm run build:test && npm run unit-test:browser",
2929
"test:node": "npm run build:test && npm run unit-test:node",

0 commit comments

Comments
 (0)