forked from sogebot/sogeBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.75 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"no-shadow": ["error", { "builtinGlobals": true }],
"indent": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-member-accessibility": "off",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/class-name-casing": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/no-namespace": 0,
"interface-over-type-literal": 0,
"@typescript-eslint/no-var-requires": 1,
"@typescript-eslint/no-inferrable-types": 2,
"semi": "off",
"@typescript-eslint/semi": ["error"],
"curly": ["error"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}],
"no-var": 2,
"prefer-spread": "error",
"comma-dangle": [2, "always-multiline"],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"dot-notation": 2,
"operator-linebreak": ["error", "before"],
"brace-style": "error",
"no-useless-call": "error"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"useJSXTextNode": true,
"project": [ "./tsconfig.json", "./src/bot/tsconfig.json" ],
"tsconfigRootDir": "./",
"extraFileExtensions": [".vue"]
}
}