-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
48 lines (48 loc) · 1.35 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
{
"plugins": ["@typescript-eslint", "eslint-comments", "mocha", "promise", "unicorn"],
"extends": [
"eslint:recommended",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:eslint-comments/recommended",
"plugin:mocha/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint"
],
"env": {
"node": true,
"browser": true,
"mocha": true
},
"parserOptions": {
"project": "tsconfig.json",
"createDefaultProgram": true,
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true }],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{ "functions": false, "classes": true, "variables": true, "typedefs": true }
],
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
// Common abbreviations are known and readable
"unicorn/prevent-abbreviations": "off",
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
}
}
]
}
}