Skip to content

Commit 62fcd32

Browse files
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs into typespec-next
2 parents d3a549a + 9909c84 commit 62fcd32

File tree

323 files changed

+21208
-3981
lines changed

Some content is hidden

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

323 files changed

+21208
-3981
lines changed

.github/eslint.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ import tseslint from "typescript-eslint";
88
/** @type {import('eslint').Linter.Config[]} */
99
export default defineConfig(
1010
eslint.configs.recommended,
11-
tseslint.configs.recommended,
11+
tseslint.configs.recommendedTypeChecked,
1212
{
13-
languageOptions: { globals: globals.node },
13+
languageOptions: {
14+
// we only run in node, not browser
15+
globals: globals.node,
16+
// required to use tseslint.configs.recommendedTypeChecked
17+
parserOptions: {
18+
projectService: true,
19+
// ensures the tsconfig path resolves relative to this file
20+
// default is process.cwd() when running eslint, which may be incorrect
21+
tsconfigRootDir: import.meta.dirname,
22+
},
23+
},
1424
},
1525
{
1626
ignores: ["coverage/**", "shared/coverage/**"],

.github/package-lock.json

Lines changed: 79 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/shared/eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export default defineConfig(
1414
// we only run in node, not browser
1515
globals: globals.node,
1616
// required to use tseslint.configs.recommendedTypeChecked
17-
parserOptions: { projectService: true },
17+
parserOptions: {
18+
projectService: true,
19+
// ensures the tsconfig path resolves relative to this file
20+
// default is process.cwd() when running eslint, which may be incorrect
21+
tsconfigRootDir: import.meta.dirname,
22+
},
1823
},
1924
},
2025
{

0 commit comments

Comments
 (0)