forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
50 lines (46 loc) · 965 Bytes
/
.eslintrc.yml
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
env:
browser: true
jquery: true
es6: true
extends:
- 'indico'
- 'indico/babel'
- 'indico/react'
settings:
# we don't use the webpack resolver because it is SLOW (~1s),
# but our custom resolver does the job just fine while still
# being fast.
import/resolver:
eslint-import-resolver-indico:
extensions: [.js, .jsx, .json]
rules:
func-style:
- warn
- declaration
- allowArrowFunctions: true
import/no-unresolved:
- error
- ignore: ['^indico-url:']
new-cap:
- error
- capIsNewExceptionPattern: '\$\.(Event|Deferred)$'
prefer-template: warn
react/forbid-component-props: off
globals:
_: false
$T: false
K: false
moment: false
Indico: false
IndicoUI: false
build_url: false
alertPopup: false
confirmPrompt: false
handleFlashes: false
handleAjaxError: false
ajaxDialog: false
cornerMessage: false
enableIfChecked: false
global: false
require: false
process: false