-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
57 lines (55 loc) · 1.92 KB
/
Copy patheslint.config.js
File metadata and controls
57 lines (55 loc) · 1.92 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import eslint from "@eslint/js";
import { globalIgnores } from "eslint/config";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
},
},
{
files: ["**/*.js", "**/*.cjs"],
...tseslint.configs.disableTypeChecked,
rules: { semi: "error", "no-unused-vars": "error" },
},
{
// Unmigrated Slice 2–4 components are excluded from tsc during the migration window.
// Type-checked lint rules are disabled here to match — remove each entry as the component is migrated.
// Keep in sync with the exclude list in tsconfig.json and the testPathIgnorePatterns list in jest.config.cjs.
files: [
"src/components/Accordion/**",
"src/components/Autocomplete/**",
"src/components/Cell/**",
"src/components/Chip/**",
"src/components/Dialog/**",
"src/components/Environment/**",
"src/components/Menu/**",
"src/components/OfflineBanner/**",
"src/components/Popover/**",
"src/components/Progress/**",
"src/components/ProgressIndicator/**",
"src/components/Select/**",
"src/components/Spacer/**",
"src/components/Tabs/**",
],
...tseslint.configs.disableTypeChecked,
},
globalIgnores([
"**/build/**",
"**/dist/**",
"**/__mocks__/**",
"**/__tests__/**",
"**/tsup.config.ts",
"eslint.config.js",
"jest.config.cjs",
])
);