-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.eslintrc.json
More file actions
111 lines (111 loc) · 3.24 KB
/
Copy path.eslintrc.json
File metadata and controls
111 lines (111 loc) · 3.24 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": [
"./packages/core/tsconfig.json",
"./packages/docs/tsconfig.json",
"./packages/icons/tsconfig.json",
"./packages/lab/tsconfig.json",
"./packages/native/tsconfig.json",
"./packages/system/tsconfig.json",
"./packages/testbed/tsconfig.json"
]
},
"env": {
"node": true,
"es6": true,
"browser": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint",
"react-hooks",
"prettier",
"no-function-declare-after-return",
"no-for-of-loops",
"unused-imports"
],
"rules": {
"import/extensions": "off",
"class-methods-use-this": "off",
"no-plusplus": "off",
"max-classes-per-file": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-empty-interface": "off",
"import/prefer-default-export": "off",
"import/no-cycle": "warn",
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"import/no-extraneous-dependencies": "off",
"react/function-component-definition": "off",
"react/prop-types": "off",
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"consistent-return": "off",
"no-param-reassign": "warn",
"no-underscore-dangle": "error",
"no-restricted-syntax": "error",
"curly": "error",
"react/no-children-prop": "error",
"react/jsx-boolean-value": "warn",
"react/no-array-index-key": "warn",
"react/require-default-props": "off",
"react/no-multi-comp": "error",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/jsx-no-bind": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/alt-text": "off",
"react-hooks/exhaustive-deps": "off",
"no-for-of-loops/no-for-of-loops": "warn",
"no-function-declare-after-return/no-function-declare-after-return": "error",
"import/order": [
"error",
{
"groups": [
"index",
"builtin",
"external",
"internal",
"parent",
"sibling",
"object",
"type"
],
"newlines-between": "always-and-inside-groups",
"pathGroups": [
{
"pattern": "react",
"group": "index",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"]
}
],
"prettier/prettier": ["error"]
}
}