forked from elpheria/rpc-websockets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.91 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
44
45
46
47
48
49
50
51
52
53
54
{
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"brace-style": [ "error", "allman", { "allowSingleLine": true } ],
"indent": [ "error", 4 ],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "double" ],
"semi": [ "error", "never" ],
"comma-spacing": [ "error" ],
"comma-style": [ "error" ],
"func-call-spacing": [ "error" ],
"key-spacing": [ "error" ],
"keyword-spacing": [ "error" ],
"lines-around-comment": [ "error", { "beforeBlockComment": false, "afterBlockComment": false } ],
"lines-around-directive": [ "error" ],
"max-len": [ "error", 100 ],
"new-cap": [ "error" ],
"no-console": 0,
"no-multiple-empty-lines": [ "error", { "max": 1 } ],
"no-tabs": [ "error" ],
"no-trailing-spaces": [ "error" ],
"no-whitespace-before-property": [ "error" ],
"operator-linebreak": [ "error" ],
"require-jsdoc": [ "error" ],
"valid-jsdoc": [ "error", { "requireReturnDescription": false } ],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"space-before-blocks": [ "error" ],
"space-in-parens": [ "error" ],
"space-infix-ops": [ "error" ],
"space-unary-ops": [ "error" ],
"spaced-comment": [ "error" ],
"arrow-parens": [ "error" ],
"arrow-spacing": [ "error" ],
"no-duplicate-imports": [ "error" ],
"prefer-const": [ "error" ],
"no-cond-assign": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}