-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.29 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
{
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true,
"jquery": true,
"mocha": true,
"mongo": false
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"extends": "airbnb-base",
"rules": {
// require trailing commas in multiline object literals
"comma-dangle": ["warn",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
// to force 'use strict'
"strict": [ "error", "safe" ],
// enforce newline at the end of file, with no multiple empty lines
"eol-last": [ "warn", "always" ],
// disallow mixed 'LF' and 'CRLF' as linebreaks
// http://eslint.org/docs/rules/linebreak-style
"linebreak-style": [ "warn", "unix" ],
// Forbid the use of extraneous packages
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
// paths are treated both as absolute paths, and relative to process.cwd()
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"no-param-reassign": "warn"
}
}