-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
166 lines (166 loc) · 6.08 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"extends": [
"react-app",
"react-app/jest",
"prettier"
],
"parser": "@babel/eslint-parser",
"globals": {
"__DEV__": "readonly",
"APP_VERSION": "readonly",
"APP_SHORT_TITLE": "readonly",
"LOCALHOST_PORT": "readonly",
"FCM_SENDER_ID": "readonly",
"SOURCE_FILES": "readonly",
"CUSTOM_INDICATOR_SOURCES": "readonly",
"INDICATOR_ISOLATED_CORE": "readonly",
"LOCALIZATION_DICTIONARY": "readonly",
"APP_ID": "readonly",
"APP_NAME": "readonly",
"APP_CODE_NAME": "readonly",
"ELECTRON_VERSION": "readonly",
"CATEGORY_WORKSPACE": "readonly",
"BETA_ITUNES_ID": "readonly",
"BETA_ANDROID_NAMESPACE": "readonly",
"ace": "readonly",
"techan": "readonly",
"d3": "readonly",
"grecaptcha": "readonly",
"Bugsnag": "readonly",
"FB": "readonly",
"facebookConnectPlugin": "readonly",
"gapi": "readonly",
"Bloodhound": "readonly",
"cordova": "readonly",
"i18next": "readonly",
"Media": "readonly",
"PushNotification": "readonly",
"device": "readonly",
"tradovateEnvironment": "readonly",
"isMobile": "readonly",
"isPhone": "readonly",
"isMac": "readonly",
"isDesktop": "readonly",
"isElectron": "readonly",
"isTablet": "readonly",
"isTouchOnlyDevice": "readonly",
"isTouchDevice": "readonly",
"ChooseDeviceVersion": "readonly",
"device_reexport": "readonly",
"platform_reexport": "readonly",
"showElevationIfNeeded": "readonly",
"showDialog": "readonly",
"openExternalAction": "readonly",
"openModal": "readonly",
"saveAs": "readonly",
"currentWorkspaceAsync": "readonly",
"sessionStorageAsync": "readonly",
"hostBaseAddress": "readonly",
"alertLocale": "readonly",
"confirmLocale": "readonly",
"showTryItWarning": "readonly",
"WalkMePlayerAPI": "readonly",
"PDFJS": "readonly",
"Flutter": "readonly",
"FileError": "readonly"
},
"env": {
"browser": true,
"jquery": true
},
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "double"],
"no-use-before-define": ["error", { "functions": false }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": "off",
"max-len": ["error", { "code": 180, "ignoreStrings": true }],
"no-mixed-operators": "off",
"no-plusplus": "off",
"import/no-unresolved": ["warn", { "ignore": ["^@.*"] }],
"import/no-anonymous-default-export": "off",
"react/jsx-filename-extension": "off",
"react/jsx-quotes": "off",
"react/prefer-es6-class": "off",
"react/prefer-stateless-function": "off",
"react/require-render-return": "off",
"react/jsx-first-prop-new-line": "off",
"no-unused-vars": "off",
"no-console": "off",
"no-alert": "off",
"default-case": "off",
"eqeqeq": "off",
"no-restricted-globals": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/alt-text": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-jsdoc"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-shadow": ["error", { "hoist": "all" }],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"brace-style": ["error", "1tbs"],
"constructor-super": "error",
"curly": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"max-len": ["error", { "code": 140 }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"no-new-wrappers": "error",
"no-restricted-imports": ["error", "rxjs/Rx"],
"no-unused-labels": "error",
"no-var": "error",
"prefer-const": "error",
"radix": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}
]
}