-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
51 lines (50 loc) · 1.79 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
50
51
// Copyright 2019 Benbuck Nason
module.exports = {
env: {
node: true,
},
extends: ["eslint:all", "plugin:@typescript-eslint/all"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 6,
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
root: true,
rules: {
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-empty-function": ["error", { allow: ["arrowFunctions"] }],
"@typescript-eslint/no-extra-parens": ["error", "functions"],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-magic-numbers": ["error", { ignore: [0, 1] }],
"@typescript-eslint/object-curly-spacing": "off",
"@typescript-eslint/space-before-function-paren": "off",
"array-element-newline": ["error", "consistent"],
"comma-dangle": ["error", "always-multiline"],
"dot-location": "off",
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": "off",
"indent": "off",
"max-depth": ["error", { max: 5 }],
"max-len": "off",
"max-lines": ["error", { max: 512 }],
"max-params": ["error", { max: 5 }],
"max-statements": ["error", { max: 32 }],
"multiline-ternary": ["error", "always-multiline"],
"no-extra-parens": ["error", "functions"],
"no-magic-numbers": ["error", { ignore: [0, 1] }],
"no-tabs": ["error", { allowIndentationTabs: true }],
"no-ternary": "off",
"no-undefined": "off",
"object-curly-spacing": ["error", "always"],
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"prefer-destructuring": "off",
"quote-props": ["error", "consistent"],
"space-before-function-paren": "off",
"wrap-regex": "off",
},
};