-
Notifications
You must be signed in to change notification settings - Fork 48
/
.eslintrc
139 lines (139 loc) · 4.11 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-native",
"prettier",
"jest"
],
"extends": [
"airbnb",
"prettier",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"browser": true,
"mocha": true,
"node": true,
"jest": true
},
"globals": {
"__DEV__": false
},
"overrides": [
{
"files": ["*.stories.tsx"],
"rules": {
"import/no-relative-packages": "off"
}
}
],
"settings": {
"import/resolver": {
"typescript": {}
},
"import/ignore": [
"node_modules",
".(json)$"
]
},
"ignorePatterns": [
"__generate.js"
],
"rules": {
"prettier/prettier": [0, {
"printWidth": 120,
"tabWidth": 4,
"parser": "flow",
"singleQuote": true,
"trailingComma": "all"
}],
"no-useless-constructor": 0,
"arrow-body-style": 0,
"max-len": [2, {"code": 120, "tabWidth": 4, "ignoreUrls": true, "ignoreTemplateLiterals": true }],
"quotes": ["error", "single"],
"semi": "off",
"@typescript-eslint/semi": "error",
"@typescript-eslint/member-delimiter-style": "error",
// "@typescript-eslint/no-explicit-any": "error",
"curly": [2, "multi-line"],
"comma-dangle": [2, "always-multiline"],
"class-methods-use-this": ["off", {"enforceForClassFields": false, "exceptMethods": ["startApp", "componentDidMount", "componentWillUnmount", "render"] }],
"global-require": 0,
"quote-props": 0,
"lines-between-class-members": "off",
"indent": "off",
"react/jsx-indent": [2, 4],
"camelcase": 0,
"arrow-parens": 0,
"no-confusing-arrow": 0,
"no-mixed-operators": 0,
"function-paren-newline": 0,
"object-curly-newline": 0,
"no-bitwise": 0,
"no-continue": 0,
"no-plusplus": 0,
"no-alert": 0,
"no-await-in-loop": 0,
"no-param-reassign": 0,
"no-nested-ternary": 0,
"no-restricted-syntax": 0,
"no-underscore-dangle": 0,
"no-unused-vars": "off",
"no-unused-expressions": ["error" , {"allowShortCircuit": true} ],
"@typescript-eslint/no-unused-vars": "error",
"new-cap": [2, {
"capIsNew": false
}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-undef": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"operator-linebreak": [
"error",
"after",
{
"overrides": {
":": "before",
"?": "before"
}
}
],
"react/prop-types": 0,
"react/sort-comp": 0,
"react/jsx-filename-extension": 0,
"react/no-unused-prop-types": 0,
"react/no-array-index-key": 0,
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/jsx-wrap-multilines": 0,
"react/jsx-closing-bracket-location": 0,
"react/default-props-match-prop-types": 0,
"react/jsx-indent-props": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-no-constructed-context-values": 1,
"react/static-property-placement": 0,
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"import/prefer-default-export": 0,
"import/no-unresolved": "error",
"import/extensions": ["error", "never", { "json": "always" }],
"import/no-extraneous-dependencies": 0,
"import/order": 0,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"react/no-unused-class-component-methods": 0
}
}