-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
55 lines (48 loc) · 1.41 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
53
54
55
/** @type {import('@types/eslint').Linter.Config} */
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
"plugin:no-array-reduce/recommended",
"plugin:jest-dom/recommended",
"plugin:storybook/recommended"
],
"plugins": ["@typescript-eslint", "testing-library", "jest-dom", "jest", "import"],
"rules": {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
// Import
"import/no-default-export": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"overrides": [
{
"files": ["stories/**/*"],
"rules": {
"import/no-default-export": "off"
}
}
],
// ESlint default behaviour ignores file/folders starting with "." - https://github.com/eslint/eslint/issues/10341
"ignorePatterns": ["!.*", "dist", "node_modules"],
"settings": {
"import/resolver": {
"typescript": {}
}
}
}