-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.json
59 lines (59 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"brace-rules"
],
"globals": {
"Phaser": "readonly"
},
"rules": {
"space-before-function-paren": ["error", "always"],
"no-trailing-spaces": "error",
"semi": "off",
"quotes": ["error", "single"],
"key-spacing": "error",
"indent": ["error", 4, {
"VariableDeclarator": 1,
"SwitchCase": 1
}],
"lines-between-class-members": ["error",
"always", {"exceptAfterSingleLine": true}
],
"keyword-spacing": ["error", { "overrides": {
"this": { "before": false }
} }],
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}],
"@typescript-eslint/semi": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-import-type-side-effects": "error",
"brace-rules/brace-on-same-line": ["error", "allman", { "allowSingleLine": true }]
}
}