Skip to content

Commit 2a87477

Browse files
committed
Linting Changes
1 parent 59a7627 commit 2a87477

14 files changed

Lines changed: 1219 additions & 225 deletions

.eslintrc.json

Lines changed: 32 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,64 +8,54 @@
88
"prettier"
99
],
1010
"globals": {
11-
"Atomics": "readonly",
12-
"SharedArrayBuffer": "readonly",
1311
"$": true,
1412
"Actor": true,
13+
"Adventure": true,
14+
"AdventureImporter": true,
1515
"Application": true,
16+
"Atomics": "readonly",
1617
"Azzu": true,
18+
"canvas": true,
1719
"ChatMessage": true,
20+
"ChatPopout": true,
21+
"Color": true,
22+
"Combat": true,
1823
"Compendium": true,
24+
"CompendiumCollection": true,
1925
"CONFIG": true,
26+
"CONST": true,
27+
"ControlIcon": true,
28+
"Dialog": true,
29+
"DocumentSheetConfig": true,
2030
"FilePicker": true,
2131
"Folder": true,
22-
"Macro": true,
23-
"Playlist": true,
32+
"ForgeAPI": true,
33+
"ForgeVTT": true,
34+
"FormApplication": true,
35+
"foundry": true,
36+
"fromUuid": true,
2437
"game": true,
2538
"Hooks": true,
39+
"ImagePopout": true,
40+
"io": true,
2641
"Item": true,
42+
"Journal": true,
2743
"JournalEntry": true,
28-
"mergeObject": true,
44+
"JournalEntryPage": true,
45+
"JournalSheet": true,
46+
"libWrapper": true,
47+
"loadTexture": true,
48+
"Macro": true,
49+
"NoteConfig": true,
50+
"Playlist": true,
51+
"renderTemplate": true,
2952
"Roll": true,
3053
"RollTable": true,
54+
"ROUTE_PREFIX": true,
3155
"Scene": true,
3256
"SettingsConfig": true,
33-
"ui": true,
34-
"canvas": true,
35-
"FormApplication": true,
36-
"setProperty": true,
37-
"hasProperty": true,
38-
"getProperty": true,
39-
"ForgeAPI": true,
40-
"ROUTE_PREFIX": true,
41-
"CONST": true,
42-
"randomID": true,
43-
"CompendiumCollection": true,
44-
"Dialog": true,
45-
"fromUuid": true,
46-
"ForgeVTT": true,
47-
"io": true,
48-
"isNewerVersion": true,
49-
"renderTemplate": true,
50-
"Combat": true,
51-
"deepClone": true,
52-
"duplicate": true,
53-
"foundry": true,
54-
"ImagePopout": true,
55-
"ChatPopout": true,
56-
"JournalSheet": true,
57-
"Journal": true,
58-
"JournalEntryPage": true,
59-
"fetchJsonWithTimeout": true,
60-
"fetchWithTimeout": true,
61-
"Adventure": true,
62-
"AdventureImporter": true,
63-
"DocumentSheetConfig": true,
64-
"NoteConfig": true,
65-
"libWrapper": true,
66-
"Color": true,
67-
"ControlIcon": true,
68-
"loadTexture": true
57+
"SharedArrayBuffer": "readonly",
58+
"ui": true
6959
},
7060
"parserOptions": {
7161
"ecmaVersion": 2022,
@@ -93,7 +83,7 @@
9383
"camelcase": "error",
9484
"capitalized-comments": "off",
9585
"class-methods-use-this": "error",
96-
"comma-dangle": "off",
86+
"comma-dangle": [2, "always-multiline"],
9787
"comma-spacing": [
9888
"error",
9989
{

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ jobs:
7878
url: 'https://api.foundryvtt.com/_api/packages/release_version'
7979
method: 'POST'
8080
customHeaders: '{"Content-Type": "application/json", "Authorization" : "${{ secrets.FOUNDRY_KEY }}"}'
81-
data: '{"dry_run": false, "id" : "notelicker", "release": {"version" : "${{ steps.get-version.outputs.release_version }}", "manifest": "https://github.com/${{ github.repository }}/releases/download/${{ steps.get-version.outputs.release_version }}/module.json", "notes" : "https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md", "compatibility" : {"minimum": "10", "verified": "12", "maximum": ""} } }'
81+
data: '{"dry_run": false, "id" : "notelicker", "release": {"version" : "${{ steps.get-version.outputs.release_version }}", "manifest": "https://github.com/${{ github.repository }}/releases/download/${{ steps.get-version.outputs.release_version }}/module.json", "notes" : "https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md", "compatibility" : {"minimum": "11", "verified": "12", "maximum": ""} } }'

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 120,
4+
"singleQuote": false
5+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.2.0
2+
3+
- v10 support dropped, fixed some deprecation warnings in v12.
4+
15
# 0.1.9
26

37
- Remove deprecated function call in v12.

module-dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"readme": "https://github.com/MrPrimate/NoteLicker/blob/main/README.md",
1111
"changelog": "https://github.com/MrPrimate/NoteLicker/blob/main/CHANGELOG.md",
1212
"compatibility": {
13-
"minimum": "10.291",
13+
"minimum": "11",
1414
"verified": 12
1515
},
1616
"authors": [

module-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"readme": "https://github.com/MrPrimate/NoteLicker/blob/main/README.md",
1111
"changelog": "https://github.com/MrPrimate/NoteLicker/blob/main/CHANGELOG.md",
1212
"compatibility": {
13-
"minimum": "10.291",
13+
"minimum": "11",
1414
"verified": 12
1515
},
1616
"authors": [

0 commit comments

Comments
 (0)