-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (67 loc) · 1.93 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
56
57
58
59
60
61
62
63
64
65
66
67
{
"extends": [
"airbnb",
"airbnb-base",
"airbnb-typescript/base",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off",
"import/no-extraneous-dependencies": "off"
}
}
],
"ignorePatterns": [
".eslintrc.js"
],
"rules": {
"max-len": "off",
"import/no-named-as-default": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-promise-executor-return": "off",
"func-names": "off",
"no-param-reassign": "off",
"no-restricted-exports": "off",
"import/prefer-default-export": "off",
"import/extensions": ["error", "ignorePackages", {"ts": "never", "tsx": "never"}],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unsafe-member-access": ["error"],
"react/jsx-no-useless-fragment": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-curly-brace-presence": ["error", { "props": "always", "children": "always" }],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-filename-extension": ["warn", {"extensions": [".tsx"]}],
"react/function-component-definition": [2, {"namedComponents": "arrow-function"}],
"react/jsx-sort-props": ["error", {
"callbacksLast": true,
"shorthandFirst": false,
"shorthandLast": false,
"ignoreCase": false,
"noSortAlphabetically": true,
"reservedFirst": true
}]
}
}