-
-
Notifications
You must be signed in to change notification settings - Fork 549
/
.eslintrc.json
29 lines (29 loc) 路 769 Bytes
/
.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"extends": ["prettier", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"prettier/prettier": "error",
"no-undef": "error",
"no-multi-assign": "error",
// Allow some linting issues that are prevalent in the codebase, but please refactor and fix!
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-this-alias": "warn",
"prefer-const": "warn"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"Phaser": true,
"__WebpackModuleApi": true
}
}