forked from xendit/xendit-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 1.01 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
{
"extends": ["prettier"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"prettier/prettier": "warn",
"no-console": "error",
"new-cap": "warn",
"max-len": ["warn", { "code": 80, "ignoreUrls": true }],
"curly": ["error", "multi-line"],
"no-unused-vars": "error"
},
"globals": {
"Promise": true,
"process": true
},
"overrides": [
{
"files": ["**/*.ts"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": { "modules": true }
},
"rules": {
"prettier/prettier": "warn",
"no-console": "error",
"new-cap": "warn",
"max-len": ["warn", { "code": 80, "ignoreUrls": true }],
"curly": ["error", "multi-line"],
"no-unused-vars": "error"
}
}
]
}