forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
47 lines (42 loc) · 953 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
env:
browser: true
jquery: true
es6: true
plugins:
- react-hooks
- prettier
extends:
- 'indico'
- 'indico/babel'
- 'indico/react'
- 'indico/react-hooks'
- 'indico/prettier'
- 'prettier/babel'
- 'prettier/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:
alias:
map:
- ['indico/modules/core', './indico/modules/core/client/js']
- ['indico/modules/rb', './indico/modules/rb/client/js']
- ['indico', './indico/web/client/js']
extensions: [.js, .jsx, .json]
react:
version: '16.6.3'
rules:
import/no-unresolved:
- error
- ignore: ['^indico-url:']
new-cap:
- error
- capIsNewExceptionPattern: '\$\.(Event|Deferred)$'
prefer-template: warn
globals:
Indico: false
IndicoUI: false
global: false
require: false
process: false