-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
43 lines (40 loc) · 1.28 KB
/
.eslintrc.js
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
/*! Copyright 2019 Ayogo Health Inc. */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
"sourceType": "module",
"project": "./tsconfig.json"
},
env: {
"es6": true
},
plugins: [
"header",
"@typescript-eslint"
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"brace-style": ["error", "1tbs"],
"curly": "error",
"eol-last": ["error", "always"],
"eqeqeq": "error",
"guard-for-in": "error",
"keyword-spacing": ["error", { "before": true, "after": true, "overrides": { "catch": { "after": false } } }],
"linebreak-style": ["error", "unix"],
"no-unused-labels": "error",
"no-caller": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-eval": "error",
"no-trailing-spaces": "error",
"prefer-const": "warn",
"radix": "error",
"semi": ["error", "always"],
"header/header": [2, "block", { "pattern": "Copyright \\d{4} Ayogo Health Inc." }],
"@typescript-eslint/naming-convention": ["warn", { selector: "class", format: ["PascalCase"] }],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-namespace": "error"
}
};