-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.eslintrc.yml
42 lines (37 loc) · 1.37 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
# enable ES6
parser: "@babel/eslint-parser"
parserOptions:
ecmaVersion: 8
requireConfigFile: false
sourceType: "module"
allowImportExportEverywhere: true
# register plugins
plugins:
- meteor
- i18next
# 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
settings:
import/resolver: "meteor"
rules:
# overwrite some rules (avoid semicolons)
semi: [2, 'never']
no-unexpected-multiline: 2
no-underscore-dangle: ['error', { allow: ['_id', '_loginStyle','_redirectUri','_stateParam']}]
no-throw-literal: 0
new-cap: 1
object-shorthand: 1
import/no-extraneous-dependencies: 0
import/no-unresolved: [2, { ignore: ['^meteor'] }]
no-console: [2, { allow: ['warn', 'error'] }]
no-restricted-syntax: [2, 'DebuggerStatement', 'LabeledStatement', 'WithStatement']
i18next/no-literal-string: [1, { "ignoreCallee": ["*.$","$","get","set","add","added","changed","children","html","prop","call","on","is","tab","addClass","removeClass","toggle","querySelector","querySelectorAll","go","remove","getParam","getQueryParam","moment","format","subscribe","publish","setParams","setQueryParams","startOf","endOf","Collection","subtract","find","data","getGlobalSetting","getUserSetting"] }]
import/extensions: 0