forked from ultrakorne/better-rolltables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.07 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
globals: {
CONST: 'readonly',
CONFIG: 'readonly',
game: 'readonly',
canvas: 'readonly',
Hooks: 'readonly',
$: 'readonly',
ui: 'readonly',
Roll: 'readonly',
ChatMessage: 'readonly',
RollTable: 'readonly',
Folder: 'readonly',
Actor: 'readonly',
Item: 'readonly',
renderTemplate: 'readonly',
duplicate: 'readonly',
mergeObject: 'readonly',
getComputedStyle: 'readonly',
getProperty: 'readonly',
setProperty: 'readonly',
Handlebars: 'readonly',
Dialog: 'readonly',
hasProperty: 'readonly',
RollTableConfig: 'readonly',
Token: 'readonly',
Application: 'readonly'
},
rules: {
'no-unused-vars': ['error'],
'one-var': [2, 'consecutive'],
'comma-dangle': ['error', 'never'],
semi: [2, 'always'],
'semi-spacing': 2,
'no-extra-semi': 2,
'no-unexpected-multiline': 2,
indent: [4, 'error']
}
}