-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (44 loc) · 1.15 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
44
45
46
47
48
49
module.exports = {
"env": {
"node": true,
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "typescript-eslint-parser", // We need this for the allowImportExportEverywhere option
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": true // We need this for Webpack code-splitting (dynamic import)
},
"plugins": [
"typescript",
"json",
"markdown",
"import"
],
"rules": {
/* TypeScript related setup */
// eslint typescript parser sees member definitions as undef vars
// this case is already covered by the Typescript compiler fortunately :)
"no-undef": 0,
// filling in for proper no-unused vars coverage
"typescript/no-unused-vars": "error",
"import/export": 0,
"no-use-before-define": 0,
"no-console": 0,
"camelcase": 1,
"no-use-before-define": 0,
/* custom rules */
"indent": [2, 2, {"SwitchCase": 1}],
"semi": [2, "never"],
"quotes": [2, "single"],
/* warnings */
"no-unused-vars": 1,
},
"globals": {
// Compile-time vars
"VERSION": false
}
};