-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.yml
63 lines (55 loc) · 1.2 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
56
57
58
59
60
61
62
63
# root: true
# enable ES6
parserOptions:
ecmaVersion: 2017
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
prefer-template: 0
dot-notation: 0
func-names: 0
comma-dangle: 0
prefer-arrow-callback: 0
arrow-parens: 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:
QRLLIB: true
LocalStore: true
# packages
FlowRouter: false # kadira:flow-router
moment: false # momentjs:moment
BlazeLayout: false
settings:
import/core-modules: [ meteor ]
import/resolver:
meteor:
extensions:
- .js