forked from theQRL/block-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
55 lines (47 loc) · 1.06 KB
/
.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
51
52
53
54
55
# root: true
# enable ES6
parserOptions:
ecmaVersion: 6
sourceType: "module"
ecmaFeatures:
jsx: true # enable React's JSX
# register plugins
plugins:
- meteor
# use the rules of eslint-config-airbnb
# and the recommended rules of eslint-plugin-meteor
extends:
- airbnb-base
- plugin:meteor/recommended
# registerenvironments
env:
meteor: true
browser: true
node: true
es6: true
rules:
# overwrite some rules (avoid semicolons)
semi: [2, 'never']
no-unexpected-multiline: 2
no-throw-literal: 0
import/no-extraneous-dependencies: 0
import/no-absolute-path: 0
# import/no-unresolved: 0
import/extensions:
- off
- never
# import/no-extraneous-dependencies: 0
# eslint-plugin-meteor
meteor/no-session: [0] # allow Session
# meteor/prefer-session-equals: [2] # prefer Session.equals instead
globals:
# collections
# Foo: false
# Bar: false
# packages
FlowRouter: false # kadira:flow-router
moment: false # momentjs:moment
BlazeLayout: false
settings:
import/core-modules: [ meteor ]
import/resolver: meteor