-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc
52 lines (52 loc) · 1.59 KB
/
.eslintrc
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
{
"plugins": ["jest", "jsx-a11y"],
"extends": [
"@doist/eslint-config/recommended-requiring-type-checking",
"@doist/eslint-config/react",
"plugin:jest/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
},
"sourceType": "module",
"project": ["tsconfig.json", "tsconfig.stories.json"]
},
"ignorePatterns": [
"dist/**",
"docs/**",
"lib/**",
"postcss.config.js",
"scripts/**",
"tsdx.config.js",
"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"
},
"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"
}
}
}