forked from vamidi/visualne-context-menu-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
122 lines (122 loc) · 3.18 KB
/
.eslintrc
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"globals": {
"document": true,
"alight": true,
"window": true,
"d3": true,
"console": true,
"uint8": true,
"Promise": true,
"HTMLElement": true,
"alert": true,
"prompt": true,
"WindowEventMap": true
},
"rules": {
"@typescript-eslint/ban-types": ["error",
{
"types": {
"String": false,
"Boolean": false,
"Number": false,
"Symbol": false,
"{}": false,
"Object": false,
"object": false,
"Function": false
},
"extendDefaults": true
}
],
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-shadow": ["error"],
"comma-dangle": [1, "never"],
"no-cond-assign": 1,
"no-console": 0,
"no-constant-condition": 1,
"sort-imports": ["warn", {
"memberSyntaxSortOrder": ["single", "all", "multiple", "none"]
}],
"no-duplicate-imports": "warn",
"no-control-regex": 1,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 1,
"no-empty": 1,
"no-extra-boolean-cast": 2,
"no-extra-semi": 1,
"no-empty-function": ["error", { "allow": [
"arrowFunctions", "methods", "constructors"
]
}],
"no-func-assign": 2,
"no-inner-declarations": 1,
"no-negated-in-lhs": 1,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"default-case": 1,
"eqeqeq": 1,
"no-caller": 2,
"no-else-return": 1,
"no-eq-null": 2,
"no-eval": 2,
"no-fallthrough": 1,
"no-implied-eval": 1,
"no-labels": 1,
"no-loop-func": 2,
"no-multi-spaces": 1,
"no-new": "off",
"no-proto": 1,
"no-redeclare": 1,
"no-self-compare": 1,
"init-declarations": 1,
// note you must disable the base rule as it can report incorrect errors
"no-shadow": "off",
"no-undef": "error",
"no-undefined": 2,
"no-unused-vars": "off",
"no-use-before-define": 1,
"object-curly-spacing": [2, "always"],
"camelcase": [1, {
"properties": "always"
}],
"comma-spacing": [1, {
"before": false,
"after": true
}],
"indent": ["warn", 4],
"new-cap": [1, {
"newIsCap": true
}],
"newline-after-var": [1, "always"],
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-multiple-empty-lines": [1, {
"max": 1
}],
"quotes": [1, "double", "avoid-escape"],
"space-before-blocks": [1, "always"],
"space-in-parens": [1, "never"],
"keyword-spacing": 1,
"max-depth": [1, 4],
"max-len": ["warn", 120],
"max-params": [1, 6],
"max-statements": [1, 10]
},
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
}
}