-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
35 lines (35 loc) · 865 Bytes
/
Copy path.eslintrc.json
File metadata and controls
35 lines (35 loc) · 865 Bytes
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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"globals": {
"__MODUWEB_VERSION_JSON__": "readonly"
},
"extends": "eslint:recommended",
"rules": {
"no-var": "error",
"prefer-const": "warn",
"no-undef": "error",
"no-unused-vars": ["warn", { "args": "none" }],
"no-empty": ["warn", { "allowEmptyCatch": true }],
"no-restricted-syntax": [
"warn",
{
"selector": "CallExpression[callee.name='setTimeout']",
"message": "raw setTimeout 대신 WAT 의 _setTimeout 래퍼를 사용하세요 (타이머 누수 방지)."
},
{
"selector": "CallExpression[callee.name='setInterval']",
"message": "raw setInterval 대신 WAT 의 _setInterval 래퍼를 사용하세요 (타이머 누수 방지)."
}
]
}
}