forked from rapi-doc/RapiDoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (53 loc) · 1.24 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
50
51
52
53
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"ecmaVersion": 2020,
"babelOptions": {
"configFile": "./.babelrc.json"
}
},
"extends": "airbnb-base",
"settings": {
"import/resolver":{
"webpack":{
"config":"webpack.config.js"
}
}
},
"env": {
"browser": true,
"node": true
},
"globals": {
"globalThis": false // means it is not writeable
},
"rules": {
"max-len": [1, 300, 2, {"ignoreComments": true}],
"no-debugger": 0,
"no-plusplus": 0,
"no-param-reassign": 0,
"no-nested-ternary": 0,
"no-continue": 0,
"no-restricted-syntax" :0,
"guard-for-in": 0,
"consistent-return": 0,
"array-callback-return": 0,
"class-methods-use-this": 0,
"prefer-destructuring": [
"error", {"object": true, "array": false}
],
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"caughtErrors": "all",
"ignoreRestSiblings": false
}],
"object-curly-newline": ["error", {
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 6 }
}]
}
}