-
Notifications
You must be signed in to change notification settings - Fork 41
/
eslint.config.js
30 lines (29 loc) · 1 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// @ts-check
import { dirname } from "path";
import tsEslint from "typescript-eslint";
import { fileURLToPath } from "url";
import { TypeSpecCommonEslintConfigs, getTypeScriptProjectRules } from "./core/eslint.config.js";
export default tsEslint.config(
{
ignores: [
"**/dist/**/*",
"**/.temp/**/*",
"**/temp/**/*",
"**/generated-defs/*",
"**/website/build/**/*",
"**/.docusaurus/**/*",
"core/packages/compiler/templates/**/*", // Ignore the templates which might have invalid code and not follow exactly our rules.
"**/venv/**/*", // Ignore python virtual env
"**/.vscode-test-web/**/*", // Ignore VSCode test web project
// TODO: enable
"**/.scripts/**/*",
"eng/scripts/**/*",
"core/eng/common/scripts/**/*",
"core/eng/tsp-core/scripts/**/*",
"packages/*/scripts/**/*",
"core/packages/*/scripts/**/*",
],
},
...TypeSpecCommonEslintConfigs,
...getTypeScriptProjectRules(dirname(fileURLToPath(import.meta.url))),
);