-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc
85 lines (85 loc) · 2.19 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"flowtype",
"react",
"jsx-a11y",
"import",
"promise",
"fp"
],
extends: [
"airbnb",
"plugin:flowtype/recommended",
"plugin:jsx-a11y/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"]
}
}
},
rules: {
"no-return-await": "off",
"import/extensions": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"comma-dangle": ["error", "never"],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: true }
],
indent: ["error", 4],
"no-confusing-arrow": "off",
"no-param-reassign": "off",
"quote-props": ["error", "as-needed", { numbers: true }],
quotes: [2, "double"],
"space-before-function-paren": ["off", "never"],
"fp/no-arguments": "error",
"fp/no-delete": "error",
"fp/no-mutating-methods": ["error", { allowedObjects: ["R", "EditorState"] }],
"function-paren-newline": ["off", "never"],
"object-curly-newline": ["off", "never"],
"prefer-destructuring": ["error", {
VariableDeclarator: {
array: false,
object: true
},
AssignmentExpression: {
array: false,
object: true
}
}, {
enforceForRenamedProperties: false
}],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"promise/catch-or-return": "error",
"react/jsx-boolean-value": "off",
"react/jsx-filename-extension": "off",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/no-unescaped-entities": "off",
"react/prefer-stateless-function": "off",
"react/require-default-props": "off"
},
env: {
browser: true,
commonjs: true,
mocha: true
},
globals: {
sinon: true,
suite: true,
benchmark: true,
i18n: true
}
}