forked from mozilla-comm/jsmime
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
69 lines (67 loc) · 1.93 KB
/
.eslintrc.json
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
64
65
66
67
68
69
{
"extends": [
// "airbnb-base"
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"globals": {
"window": "readonly",
"btoa": "readonly",
"atob": "readonly"
},
"env": {
"es6": true,
"browser": true,
"mocha": true
},
"plugins": [
"import"
],
"rules": {
"no-unused-vars": ["error", {"args": "none"}],
"prefer-spread": "off",
"no-restricted-syntax": "off",
"consistent-return": "off",
"object-curly-newline": "off",
"prefer-template": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-bitwise": "off",
"no-await-in-loop": "off",
"no-sequences": "warn",
"no-param-reassign": "warn",
"no-return-assign": "warn",
"no-else-return": ["error", { "allowElseIf": true }],
"no-shadow": "off",
"no-undef": "error",
"arrow-body-style": "off",
"space-before-function-paren": "off",
"operator-linebreak": "off",
"implicit-arrow-linebreak": "off",
"no-underscore-dangle": "off",
"import/no-unresolved": ["error", {
"ignore": ["^react$", "ttag", ".data"]
}],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unassigned-import": "error",
"import/named": "error",
"import/extensions": "error",
"max-len": ["error", {
"ignoreComments": true,
"code": 120,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"],
"eol-last": ["error"],
"padded-blocks": "off",
"max-classes-per-file": "off",
"no-empty": "off"
}
}