forked from rapi-doc/RapiDoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.04 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
{
"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,
"prefer-destructuring": 1,
"class-methods-use-this": 0,
"object-curly-newline": ["error", {
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 6 }
}]
}
}