forked from axa-group/Parsr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
49 lines (49 loc) · 1.31 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
46
47
48
49
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["plugin:vue/essential", "eslint:recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"semi": [2, "always"],
"space-before-function-paren": [2, "never"],
"comma-style": [2, "last"],
"comma-dangle": [2, "always-multiline"],
"quotes": [2, "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
"no-unused-vars": [2, { "varsIgnorePattern": "^[A-Z]", "argsIgnorePattern": "^_" }],
"no-return-await": "error",
"no-constant-condition": "off",
"require-await": "error"
},
"overrides": [
{
"files": ["*.json"],
"rules": {
"key-spacing": [2, { "beforeColon": false }],
"comma-dangle": [2, { "objects": "never" }],
"semi": [2, "never"],
"quotes": [2, "double", { "avoidEscape": true }]
}
}
],
"ignorePatterns": [
"dist",
"api/dist",
"server/src/processing/HeadingDetectionDTModule/model.js",
"server/src/processing/MLHeadingDetectionModule/train_model/model.js",
"*.py",
"test/**/*.pdf",
"*.md"
]
}