-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.06 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
{
"parser": "babel-eslint",
"extends": "airbnb-base",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false
},
"env": {
"mocha": true
},
"settings": {},
"rules": {
"camelcase": [0, { "properties": "never" }],
"no-restricted-imports": ["off", { "path": ["@/models"] }],
"import/no-unresolved": ["off", { "path": ["@/models"] }],
"import/no-named-as-default": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": ["off"],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": false
}
],
"no-new": "off",
"node/no-unpublished-import": ["off"],
"arrow-parens": [
"error",
"as-needed",
{
"requireForBlockBody": false
}
],
"no-param-reassign": "off",
"no-unused-vars": "off",
"no-restricted-syntax": 0,
"prefer-const": "warn",
"no-await-in-loop": "off",
"max-len": ["error", { "code": 150 }],
"operator-linebreak": "warn",
"no-continue": "warn",
"new-cap": "warn"
}
}