forked from KrozT/openai-discord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
74 lines (63 loc) · 2.01 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"root": true,
"extends": [
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
// ESLint typescript rules
"plugin:@typescript-eslint/recommended",
"airbnb-base"
],
"plugins": [
// required to apply rules which need type information
"@typescript-eslint"
],
"parserOptions": {
// required to parse typescript files
"parser": "@typescript-eslint/parser"
},
// add your custom rules here
"rules": {
"no-param-reassign": "off",
"no-void": "off",
"no-nested-ternary": "off",
"max-classes-per-file": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"import/first": "off",
"import/named": "error",
"import/namespace": "error",
"import/default": "error",
"import/export": "error",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"prefer-promise-reject-errors": "off",
"quotes": ["warn", "single", {
"avoidEscape": true
}
],
// this rule, if on, would require explicit return type on the `render` function
"@typescript-eslint/explicit-function-return-type": "off",
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
"@typescript-eslint/no-var-requires": "off",
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
// does not work with type definitions
"no-unused-vars": "off",
// allow console
"no-console": "off",
// allow underscore for privates
"no-underscore-dangle": "off",
// allow plusplus in coding style
"no-plusplus": "off",
// max-len not affect coding style effectivity
"max-len": ["error", {
"code": 100,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}