-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.eslintrc.json
89 lines (89 loc) · 2.42 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": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["*.config.js", "dist", "node_modules"],
"parserOptions": {
"projects": [
"src/tsconfig.lib.json",
"tests/tsconfig.spec.json",
"stories/tsconfig.stories.json",
"tsconfig.json"
],
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-header",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-unused-expressions": [
"error",
{ "allowTernary": true, "allowShortCircuit": true }
],
"curly": "error",
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"header/header": [
1,
"block",
[
"!",
" * Copyright (c) Microsoft Corporation. All rights reserved.",
" * Licensed under the MIT License.",
" "
],
1
],
"id-denylist": "off",
"id-match": "off",
"import/order": "error",
"no-bitwise": "off",
"no-caller": "error",
"no-console": [
"error",
{
"allow": [
"log",
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"no-debugger": "error",
"no-empty": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"radix": "error"
}
}