forked from renpy/vscode-language-renpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
27 lines (27 loc) · 844 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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-unused-private-class-members": "warn",
"eqeqeq": "warn",
"no-shadow": "warn",
"prefer-regex-literals": "warn",
"require-await": "warn",
"camelcase": "error",
"@typescript-eslint/no-var-requires": "warn",
"no-param-reassign": "warn" // Disable reassign, since this basically means you override the reference from the caller function with a new local version. (It doesn't do what you expect)
}
}