forked from pixiv/three-vrm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
26 lines (26 loc) · 1.16 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
{
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"env": {
"browser": true
},
"rules": {
"curly": ["error", "multi-line"], // if statements without curly are evil
"no-console": ["error", { "allow": ["info", "warn", "error"] }], // do not leave console.log
"require-atomic-updates": ["off"], // the rule is kinda buggy
"@typescript-eslint/member-naming": ["error", { "private": "^_", "protected": "^_" }], // private members must start from underscore
"@typescript-eslint/camelcase": ["warn", { "properties": "never" }], // we sometimes have to use weird variables for properties
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }], // we sometimes have to define unused arguments
"@typescript-eslint/no-explicit-any": ["off"], // Three.js sometimes forces us to deal with anys
"@typescript-eslint/no-non-null-assertion": ["off"] // Three.js sometimes forces us to deal with bangs
}
}