-
Notifications
You must be signed in to change notification settings - Fork 169
/
.eslintrc
114 lines (114 loc) · 2.4 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"google",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:compat/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"ignorePatterns": ["third_party"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": ["@mui/*/*/*"]
}
],
"no-unused-vars": [
2,
{
"args": "after-used",
"argsIgnorePattern": "^opt_",
"varsIgnorePattern": "_unused$"
}
],
"no-console": 0,
"camelcase": [0, { "properties": "never" }],
"new-cap": [
2,
{
"newIsCapExceptions": []
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"env": {
"browser": true,
"es2022": true,
"serviceworker": true
},
"globals": {
"APP_VERSION": false,
"DEVMODE": false,
"VERSION": false,
"chrome": true,
"globalThis": false,
"serviceWorkerOption": true,
"window": true
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*_test.js"],
"env": {
"browser": true,
"node": true,
"es2022": true,
"jasmine": true,
"serviceworker": true
}
},
{
"files": ["**/*.conf.babel.js", "build/**/*.babel.js", "lighthouserc.js"],
"env": {
"browser": true,
"node": true,
"es2022": true,
"jasmine": true,
"serviceworker": true
}
},
{
"files": ["build/**/*.js"],
"rules": {
"@typescript-eslint/camelcase": "off"
}
},
{
"files": ["src/frameworks/phaser/*.js"],
"globals": {
"Phaser": true
}
},
{
"files": ["src/usr/bin/*.js"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off"
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/explicit-module-boundary-types": ["error"]
}
}
]
}