forked from mdn/browser-compat-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
89 lines (89 loc) · 2.27 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"env": {
"es6": true,
"jest": true,
"node": true
},
"plugins": [
"@typescript-eslint",
"import",
"jsdoc",
"prefer-arrow-functions",
"unicorn"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jsdoc/recommended-typescript"
],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true }],
"consistent-return": "error",
"curly": "error",
"default-case": "off",
"default-case-last": "error",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": ["builtin", "external", "parent", "sibling", "index", "type"]
}
],
"import/no-named-as-default-member": "off",
"jsdoc/check-param-names": "error",
"jsdoc/require-description": "warn",
"jsdoc/require-jsdoc": [
"warn",
{
"require": {
"ArrowFunctionExpression": true,
"ClassDeclaration": true,
"ClassExpression": true,
"FunctionDeclaration": true,
"FunctionExpression": true,
"MethodDefinition": true
}
}
],
"jsdoc/require-returns": "error",
"jsdoc/require-yields": "error",
"linebreak-style": ["error", "unix"],
"no-console": "off",
"no-else-return": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-eval": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-unused-expressions": "off",
"no-useless-call": "error",
"prefer-arrow-functions/prefer-arrow-functions": [
"error",
{ "returnStyle": "implicit" }
],
"prefer-const": "error",
"quotes": "off",
"unicorn/prefer-node-protocol": "error"
}
}