-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
28 lines (28 loc) · 1.25 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
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint/eslint-plugin"],
"env": { "browser": true },
"parser": "@typescript-eslint/parser",
"root": true,
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", { "properties": "never", "ignoreDestructuring": false, "ignoreImports": false, "ignoreGlobals": false }],
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "last"],
"func-call-spacing": ["error", "never"],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"eol-last": ["error", "always"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"object-curly-newline": ["error", { "consistent": true }],
"object-curly-spacing": ["error", "always"],
"function-paren-newline": ["error", "multiline-arguments"],
"padded-blocks": ["error", "never", { "allowSingleLineBlocks": true }],
"no-shadow": "error",
"no-trailing-spaces": "error",
"nonblock-statement-body-position": ["error"]
}
}