-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.eslintrc
More file actions
58 lines (56 loc) · 1.81 KB
/
.eslintrc
File metadata and controls
58 lines (56 loc) · 1.81 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
58
{
"plugins": ["jest", "jsx-a11y"],
"extends": [
"@doist/eslint-config/recommended-type-checked",
"@doist/eslint-config/react",
"plugin:jest/recommended",
"@doist/eslint-config/simple-import-sort"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
},
"sourceType": "module",
"project": ["tsconfig.json", "stories/tsconfig.json"]
},
"ignorePatterns": [
"dist/**",
"docs/**",
"lib/**",
"postcss.config.js",
"scripts/**",
"rollup.config.mjs",
"webpack.config.*"
],
"rules": {
"func-style": "off",
"import/no-default-export": "off", // Legacy API.
"react/no-find-dom-node": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
// Resolving jsx-runtime mismatched versions of React (e.g. v17 vs v18)
// See https://github.com/Doist/reactist/pull/979
"no-restricted-imports": "off"
},
"overrides": [
{
// Some types are missing in legacy version of Storybook, revisit after update.
// jest mocks are hard to type, allow incomplete types in tests.
"files": ["stories/**/*", "*.test.*"],
"rules": {
"react/no-unescaped-entities": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off"
}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}