-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
49 lines (49 loc) · 1.2 KB
/
.eslintrc
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
{
"root": true,
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "plugin:node/recommended"],
"plugin": ["prettier"],
"env": {
"es6": true,
"browser": true,
"jquery": true,
"node": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": "error",
"space-before-function-paren": ["error", "never"],
"indent": ["error", "tab"],
"semi": ["error", "always"],
"quotes": ["error", "single"],
"no-console": "warn",
"no-alert": "warn",
"func-names": "off",
"no-plusplus": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 5,
"maxBOF": 0,
"maxEOF": 1
}
],
"node/no-unpublished-require": 0,
"node/no-missing-require": 0,
"node/no-unsupported-features/es-syntax": 0,
"no-tabs": ["error", {"allowIndentationTabs": true }],
no-underscore-dangle: ["error", { "allow": ["_id"] }],
"arrow-parens": ["error", "always"],
"class-methods-use-this": "off",
"prefer-destructuring": ["error", {"object": true, "array": false}],
"no-unused-vars": ["error", { "argsIgnorePattern": "req|res|next|val" }],
"consistent-return": "off",
}
}