Skip to content

Commit 8022336

Browse files
anthonyrondawyrmisisallcontributors[bot]bakbakbakbakbakHaxxer
authored
Resolving 1.8.x branch merge conflicts (#388)
* feat: Add linting packages and config * chore: Get ready for Prettier * chore: Get eslint --fix ready to roll; add eslint globals * fix: Explicitly support array-flat and array-includes * fix: Don't fix linting issues during the build step * feat: Add linting packages and config * chore: Get ready for Prettier * chore: Get eslint --fix ready to roll; add eslint globals * fix: Explicitly support array-flat and array-includes * fix: Don't fix linting issues during the build step * fix: async restores treasure result text (#272) * fix: async restores treasure result text * fix: avoid race conditions with flag "async:false" * fix: Monster Data Model bugfixes (#279) * fix: On dropping item onto actor, check for existence before checking for anything related to containers * fix: Remove pre-container-data-model code for handling containers on monsters * fix: Programmers and linguists agree: Why Plurals? * fix: don't reroll on round 1 if already rolled (#280) * Create CNAME * docs: add Haxxer as a contributor for code (#281) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * fix(temporary): removed caching from the build ci * fix: AC/AAC display fix + party overview fix (#286) * fix: Add missing usesAscendingAC key * fix: Update deprecated code * fix: use game.system.id instead of OSE.systemName when getting party members * fix: `lint:js` script now lints the correct folder * fix: == to === * chore: Disable some less useful linting rules * chore: Add file summary to ose.scss.js * chore: Fix ose.js per linting rules * feat: Get prettier set up to sort imports * chore: Use prettier-eslint to sort imports * fix: Macro for same item name now creates (#314) * fix: async restores treasure result text (#272) * fix: async restores treasure result text * fix: avoid race conditions with flag "async:false" * fix: Monster Data Model bugfixes (#279) * fix: On dropping item onto actor, check for existence before checking for anything related to containers * fix: Remove pre-container-data-model code for handling containers on monsters * fix: Programmers and linguists agree: Why Plurals? * fix: don't reroll on round 1 if already rolled (#280) * Create CNAME * docs: add Haxxer as a contributor for code (#281) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * fix(temporary): removed caching from the build ci * fix: AC/AAC display fix + party overview fix (#286) * fix: Add missing usesAscendingAC key * fix: Update deprecated code * fix: use game.system.id instead of OSE.systemName when getting party members * fix: Additional v1.7.x fixes (#289) * fix: Character generator now properly sets scores * fix: Items should once again properly display their descriptions. * fix: Treasure items should be created under the Treasure inventory heading * fix: Item and armor descriptions should target the correct fields * fix: replaced broken chart with "translated" badge * chore: update README to where people can find the Discord invite * feat: add Catalan and Chinese support to manifest * Updates to Item Piles system integration (#292) * Updates to system integration * Added unstackable item types * [enhancement] Added option to revert Ctrl/Meta behavior (#294) * [enhancement] Added option to revert Ctrl/Meta behavior * Extracted skipDialogCheck to method * Removed comment about monster testing. * Moved skipRollDialogcheck to helper collection * cleanup Co-authored-by: bakbakbakbakbak <[email protected]> * docs: add bakbakbakbakbak as a contributor for code (#302) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * docs: add adn770 as a contributor for translation (#303) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * [enhancement] Container delete confirmation (#299) * [enhancement] Added confirmation when deleting containers containing items * [fix] Container now pushes out containing items. * Changed to Dialog.confirm * Cleanup * cleanup * Allow first item check condition to allow no item Co-authored-by: bakbakbakbakbak <[email protected]> * fix: shopping cart now deducts gold * Remove confusing monster options (#308) Co-authored-by: bakbakbakbakbak <[email protected]> * [fix] Correctly creating link anchors in TextEditor & dragging items to hotbar (#304) * [fix] Use item.getDragData to fix bad link * [fix] Macro creation when dragging item from actor * Fixed macro warning for non-actor items * Tests for item macros * Cleanup * Unlinked token macro fix * Fixed typo in en.json * Fixed bug on row 67 * Non-destructive macro removal * Macro logic * Cleanup Co-authored-by: bakbakbakbakbak <[email protected]> * fix: Macro for same item name now creates Co-authored-by: Anthony Ronda <[email protected]> Co-authored-by: Tim <[email protected]> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Adam Oresten <[email protected]> Co-authored-by: bakbakbakbakbak <[email protected]> * chore: eslint-prettier automatic fixes * chore: Ignore unused expressions when writing tests * chore: Oh no * chore: Autofix rebased changes * chore: Requested PR fixes * chore: Remove unnecessary eslint disables * chore: Combine two ESlint disables into one * chore(tests): helpers, actor, dialog, item, party * chore: renaming helpers & imports * fix: exporting functions for test for treasure * fix(test): missing method import * chore(test): make sure token vision * Cleanup & comment fix * fix: entity-tweaks-tests * fix: Config tag_images not returning properly * fix(macro): Allow macro to be dragged to hotbar * fix(party): Fix recursive folder adding for 1.8.x (#346) * fix(party): Fix recursive folder adding * fix: Actor, not Folder --------- Co-authored-by: bakbakbakbakbak <[email protected]> * fix(item): Make spendSpell async for 1.8.x (#352) * fix(item): Make spendSpell async * cleanup & lint --------- Co-authored-by: bakbakbakbakbak <[email protected]> * fix(dice): Dice rolling fixes for 1.8.x (#345) * fix: dice rolling fixes * chore(test): dice rolling * chore(test): sendAttackRoll cleanup * chore(desc): Added description to attackIsSuccess * Added descriptions to helpers-dice.js * chore(test): Added tests for issue #340 * chore(desc): Better test descriptions for #340 * cleanup * fix(dice): Always allow hit when untargeted, #333 * cleanup --------- Co-authored-by: bakbakbakbakbak <[email protected]> * fix(treasure): Make drawTreasure asynchronous * fix: making percent call synchronous * chore(utils): testUtils tweaks * chore(test): Actor testing up to sheet * chore(lint): Test linting & remova assert(false) * chore(structure): Better naming of test suite * chore(structure): Fixed remaining test names * fix(test): revert closeSheets to standard delay * fix(test): renamed cleanUpActorsKey * chore(lint): spacing and linting to dice tests * chore(lint): sheet linewidth linting * fix: defined type for key in cleanUpActorsByKey * fix(tweaks): Added class to entity tweaks * fix: wyrmisis comments * Symlinker now supports array of dataPaths (#360) * fix(symlink): support path array * fix(symlink): capitalization & typedef * fix: Array for right term --------- Co-authored-by: bakbakbakbakbak <[email protected]> * chore: data migration to default img (#325) * chore: data migration to default img * fix: checking for empty instead of undef --------- Co-authored-by: bakbakbakbakbak <[email protected]> * fix(item): Dragging a container onto itself pops it from inventory sheet (#359) * fix(actor-sheet): use item in _removeItemFromActor * fix(actor-sheet): dropping items on container * chore(test): Issue #357 tests * fix(container): Container drop onto itself #357 * chore: Updated comment --------- Co-authored-by: bakbakbakbakbak <[email protected]> * fix: isNew() tests now check against saves (#386) * feat: added itemId tag to spell card for AA compat * fix: the isNew tests now check against saves * fix: undo ItemIds commit * feat: added itemId tag to spell card for AA compat * fix: resolve conflicts mistakes part 1 * fix: character creation autoroll no longer broken * fix: actor's language delete button * fix: additional "data" to "system" fixes --------- Co-authored-by: wyrmisis <[email protected]> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: bakbakbakbakbak <[email protected]> Co-authored-by: Adam Oresten <[email protected]> Co-authored-by: bakbakbakbakbak <[email protected]>
1 parent a7bd972 commit 8022336

File tree

99 files changed

+25508
-6072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+25508
-6072
lines changed

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defaults and supports es6-module and supports array-find and supports array-flat and supports array-includes
2+
Electron > 20

.eslintrc

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"plugins": [
3+
"jsdoc",
4+
"prettier",
5+
"chai-friendly"
6+
],
7+
"extends": [
8+
"airbnb",
9+
"airbnb-typescript/base",
10+
"adjunct",
11+
"plugin:promise/recommended",
12+
"plugin:ecmascript-compat/recommended",
13+
"plugin:chai-friendly/recommended",
14+
"prettier"
15+
],
16+
"env": {
17+
"browser": true
18+
},
19+
"ignorePatterns": ["**/lang/**/*.json", "**/*.d.ts"],
20+
"rules": {
21+
"prettier/prettier": ["error"],
22+
"jsdoc/check-access": 1, // Recommended
23+
"jsdoc/check-alignment": 1, // Recommended
24+
"jsdoc/check-line-alignment": 1,
25+
"jsdoc/check-param-names": 1, // Recommended
26+
"jsdoc/check-property-names": 1, // Recommended
27+
"jsdoc/check-tag-names": 1, // Recommended
28+
"jsdoc/check-types": 1, // Recommended
29+
"jsdoc/check-values": 1, // Recommended
30+
"jsdoc/empty-tags": 1, // Recommended
31+
"jsdoc/implements-on-classes": 1, // Recommended
32+
"jsdoc/multiline-blocks": 1, // Recommended
33+
"jsdoc/newline-after-description": 1, // Recommended
34+
"jsdoc/no-bad-blocks": 1,
35+
"jsdoc/no-multi-asterisks": 1, // Recommended
36+
"jsdoc/no-undefined-types": 1, // Recommended
37+
"jsdoc/require-asterisk-prefix": 1,
38+
"jsdoc/require-description": 1,
39+
"jsdoc/require-file-overview": 1,
40+
"jsdoc/require-hyphen-before-param-description": 1,
41+
"jsdoc/require-jsdoc": 1, // Recommended
42+
"jsdoc/require-param": 1, // Recommended
43+
"jsdoc/require-param-description": 1, // Recommended
44+
"jsdoc/require-param-name": 1, // Recommended
45+
"jsdoc/require-param-type": 1, // Recommended
46+
"jsdoc/require-property": 1, // Recommended
47+
"jsdoc/require-property-description": 1, // Recommended
48+
"jsdoc/require-property-name": 1, // Recommended
49+
"jsdoc/require-property-type": 1, // Recommended
50+
"jsdoc/require-returns": 1, // Recommended
51+
"jsdoc/require-returns-check": 1, // Recommended
52+
"jsdoc/require-returns-description": 1, // Recommended
53+
"jsdoc/require-returns-type": 1, // Recommended
54+
"jsdoc/require-yields": 1, // Recommended
55+
"jsdoc/require-yields-check": 1, // Recommended
56+
"jsdoc/tag-lines": 1, // Recommended
57+
"jsdoc/valid-types": 1, // Recommended
58+
"ecmascript-compat/compat": "off", // Disabled because core uses async
59+
"unicorn/no-array-reduce": "off", // Disabled because Array#reduce is helpful
60+
"no-secrets/no-secrets": "off", // Disabled because of string entropy
61+
"@typescript-eslint/no-unused-expressions": "off"
62+
},
63+
"parserOptions": {
64+
"ecmaVersion": 2020,
65+
"sourceType": "module",
66+
"project": "./tsconfig.json"
67+
},
68+
"parser": "@typescript-eslint/parser",
69+
"globals": {
70+
"game": "readonly",
71+
"foundry": "readonly",
72+
"CONFIG": "readonly",
73+
"CONST": "readonly",
74+
"Hooks": "readonly",
75+
"Item": "readonly",
76+
"Items": "readonly",
77+
"ItemDirectory": "readonly",
78+
"ItemSheet": "readonly",
79+
"Actor": "readonly",
80+
"Actors": "readonly",
81+
"ActorDirectory": "readonly",
82+
"ActorSheet": "readonly",
83+
"Token": "readonly",
84+
"Macro": "readonly",
85+
"Settings": "readonly",
86+
"FormApplication": "readonly",
87+
"FrameViewer": "readonly",
88+
"ChatMessage": "readonly",
89+
"TextEditor": "readonly",
90+
"Roll": "readonly",
91+
"$": "readonly",
92+
"Dialog": "readonly",
93+
"renderTemplate": "readonly",
94+
"canvas": "readonly",
95+
"ui": "readonly",
96+
"isNewerVersion": "readonly",
97+
"fromUuid": "readonly",
98+
"fromUuidSync": "readonly",
99+
"PoolTerm": "readonly"
100+
}
101+
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
node_modules
3+
**/*.d.ts
4+
**/*.scss.(js|ts)

.prettierrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"importOrder": [
3+
"<THIRD_PARTY_MODULES>",
4+
"hooks/(.*)$",
5+
"actor/(.*)$",
6+
"actor/(.*)-sheet$",
7+
"item/(.*)$",
8+
"item/(.*)-sheet$",
9+
"module/(.*)$",
10+
"^[./]"
11+
],
12+
"importOrderSeparation": true,
13+
"importOrderSortSpecifiers": true
14+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Prerequisites: Node.js (v16 is recommended), a familiarity with command Foundry
3030
"path/to/FoundryVTT-userdata REPLACE THIS STRING",
3131
"path/to/FoundryVTT-userdata-if-you-have-multiple OTHERWISE USE ONLY ONE STRING"
3232
],
33-
"symlinkName": "ose-dev"
33+
"symLinkName": "ose-dev"
3434
}
3535
```
3636

foundryconfig.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"/Users/yourusername/fvtt/v9-userdata",
44
"/Users/yourusername/fvtt/v10-userdata" //if you have only one userdata folder you'd like to use, you can do only one if you'd like
55
],
6-
"symlinkName": "ose-dev" //keep this to default if you don't care
6+
"symLinkName": "ose-dev" //keep this to default if you don't care
77
}

0 commit comments

Comments
 (0)