-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
45 lines (44 loc) · 865 Bytes
/
eslint.config.js
File metadata and controls
45 lines (44 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
36
37
38
39
40
41
42
43
44
45
import js from '@eslint/js';
import globals from 'globals';
export default [
{
ignores: ['src/game/**', 'dist/**'],
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
},
},
rules: {
'no-console': 0,
camelcase: 2,
curly: 2,
eqeqeq: 2,
'guard-for-in': 2,
indent: [
2,
2,
{
SwitchCase: 1,
},
],
semi: ['error', 'always'],
'no-unreachable': 'error',
'no-caller': 2,
quotes: [1, 'single'],
'no-undef': 2,
strict: 0,
'no-unused-vars': 2,
'no-else-return': 2,
'space-before-function-paren': [
'error',
{ anonymous: 'always', named: 'never' },
],
},
},
];