-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
79 lines (75 loc) · 1.76 KB
/
eslint.config.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
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
import js from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
const tooling = {
files: ['tools/*.mjs'],
languageOptions: {
globals: {
...globals.node,
},
},
};
const foundryvtt = {
languageOptions: {
globals: {
...globals.browser,
...globals.jquery,
ActiveEffect: 'readonly',
ActiveEffectConfig: 'readonly',
Actor: 'readonly',
ActorSheet: 'readonly',
Actors: 'readonly',
Application: 'readonly',
CONFIG: 'readonly',
CONST: 'readonly',
ChatMessage: 'readonly',
Combat: 'readonly',
CombatTracker: 'readonly',
Combatant: 'readonly',
Dialog: 'readonly',
DocumentSheet: 'readonly',
FilePicker: 'readonly',
Folder: 'readonly',
FormApplication: 'readonly',
Handlebars: 'readonly',
Hooks: 'readonly',
InteractionLayer: 'readonly',
Item: 'readonly',
ItemSheet: 'readonly',
Items: 'readonly',
JournalEntry: 'readonly',
KeyboardManager: 'readonly',
Macro: 'readonly',
Roll: 'readonly',
RollTable: 'readonly',
SearchFilter: 'readonly',
SettingsConfig: 'readonly',
TextEditor: 'readonly',
canvas: 'readonly',
foundry: 'readonly',
fromUuid: 'readonly',
game: 'readonly',
getDocumentClass: 'readonly',
loadTemplates: 'readonly',
renderTemplate: 'readonly',
ui: 'readonly',
Die: 'readonly',
DiceTerm: 'readonly',
NumericTerm: 'readonly',
OperatorTerm: 'readonly',
fromUuidSync: 'readonly',
},
},
};
const projectfu = {
rules: {
'no-unused-vars': [
'error',
{
args: 'none',
caughtErrors: 'none',
},
],
},
};
export default [js.configs.recommended, tooling, foundryvtt, projectfu, eslintConfigPrettier];