-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
125 lines (125 loc) · 3 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
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
123
124
125
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".ts"],
"moduleDirectory": ["node_modules", "src/"]
}
}
},
"plugins": ["@typescript-eslint", "spellcheck", "eslint-plugin-tsdoc"],
"ignorePatterns": ["/dist*", "/release", "build/*", "*_Example.html", "coverage/"],
"rules": {
"indent": "off",
"linebreak-style": "off",
"quotes": ["error", "single", "avoid-escape"],
"semi": ["error", "always"],
"max-len": ["error", { "code": 120 }],
"tsdoc/syntax": "warn",
"spellcheck/spell-checker": [
1,
{
"lang": "en_GB",
"skipWords": [
"bitmask",
"center",
"cobertura",
"deadzone",
"dist",
"enum",
"eod",
"errored",
"etc",
"evt",
"func",
"guid",
"jordy",
"jsDom",
"lerp",
"mmps",
"msg",
"nulled",
"pos",
"rect",
"snapforce",
"svg",
"timeframe",
"Ultraleap",
"umd",
"uuidgen"
],
"skipWordIfMatch": [
"^pointer(down|up|enter|leave|out|over|move|cancel)?$",
"(\\S+(32|64)+)",
"^touch(free|start|move|end|freecursor)?$",
"^(p|P)lugin(s)?$",
"^(c|C)hiralit(y|ies)$",
"^(c|C)olor(s|ed)?$",
"^casted(Key)?$",
"(un|Un)?register(s)?",
"\\.?ts(x)?$",
"^Impl(s)?$",
"var(s)?"
],
"minLength": 3
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false
},
"extendDefaults": true
}
],
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["typeLike"],
"format": ["PascalCase"]
},
{
"selector": ["variableLike", "method"],
"format": ["camelCase"]
},
{
"selector": ["variableLike"],
"modifiers": ["unused"],
"leadingUnderscore": "require",
"format": ["camelCase"]
},
{
"selector": ["variable"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": ["enumMember"],
"format": ["UPPER_CASE"]
},
{
"selector": "variable",
"modifiers": ["destructured"],
"format": null
}
]
},
"globals": { "touchfree": "readonly", "SnappingPlugin": "readonly" }
}