forked from xdy/twodsix-foundryvtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Issue xdy#69 Setting your own name for advantage/disadvantage.
Also includes some general cleanup.
- Loading branch information
Showing
23 changed files
with
679 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,20 @@ | ||
--- | ||
env: | ||
browser: true | ||
es6: true | ||
es2020: true | ||
node: true | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended | ||
- eslint-config-prettier | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
ItemSheet: readonly | ||
game: readonly | ||
mergeObject: readonly | ||
CONFIG: writable | ||
duplicate: readonly | ||
"$": readonly | ||
Tabs: readonly | ||
Hooks: readonly | ||
Items: readonly | ||
loadTemplates: readonly | ||
Combat: writable | ||
canvas: readonly | ||
ActorSheet: readonly | ||
Actor: readonly | ||
Actors: readonly | ||
fetchSpell: readonly | ||
- 'eslint:recommended' | ||
- 'plugin:@typescript-eslint/recommended' | ||
- 'eslint-config-prettier' | ||
- 'plugin:prettier/recommended' | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
ecmaVersion: 2020 | ||
sourceType: module | ||
rules: | ||
prettier/prettier: error | ||
no-restricted-syntax: 0 | ||
no-new: 0 | ||
no-underscore-dangle: 0 | ||
no-console: 0 | ||
class-methods-use-this: 0 | ||
max-classes-per-file: 0 | ||
prefer-destructuring: 0 | ||
no-plusplus: 0 | ||
no-undef: 0 | ||
prefer-rest-params: 0 | ||
"@typescript-eslint/explicit-module-boundary-types": | ||
- error | ||
- allowDirectConstAssertionInArrowFunctions: true | ||
allowHigherOrderFunctions: true | ||
allowTypedFunctionExpressions: true | ||
curly: warn | ||
brace-style: 1 | ||
indent: warn | ||
settings: | ||
import/resolver: | ||
node: | ||
paths: | ||
- src | ||
- '' | ||
- dist | ||
extensions: | ||
- ".js" | ||
- ".jsx" | ||
- ".ts" | ||
- ".tsx" | ||
- ".json" | ||
plugins: | ||
- prettier | ||
- "@typescript-eslint" | ||
overrides: | ||
- files: tests/**/* | ||
rules: | ||
global-require: 'off' | ||
parser: "@typescript-eslint/parser" | ||
rules: { | ||
prettier/prettier: error | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ icons/\!dox/ | |
node_modules | ||
foundryconfig.json | ||
dist/* | ||
foundry.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
env: | ||
browser: true | ||
es6: true | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended | ||
- eslint-config-prettier | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
ItemSheet: readonly | ||
game: readonly | ||
mergeObject: readonly | ||
CONFIG: writable | ||
duplicate: readonly | ||
"$": readonly | ||
Tabs: readonly | ||
Hooks: readonly | ||
Items: readonly | ||
loadTemplates: readonly | ||
Combat: writable | ||
canvas: readonly | ||
ActorSheet: readonly | ||
Actor: readonly | ||
Actors: readonly | ||
fetchSpell: readonly | ||
parserOptions: | ||
ecmaVersion: 2020 | ||
sourceType: module | ||
rules: | ||
prettier/prettier: error | ||
"@typescript-eslint/explicit-module-boundary-types": | ||
- error | ||
- allowDirectConstAssertionInArrowFunctions: true | ||
allowHigherOrderFunctions: true | ||
allowTypedFunctionExpressions: true | ||
curly: warn | ||
brace-style: 1 | ||
no-mixed-spaces-and-tabs: warn | ||
indent: [2, 2] | ||
settings: | ||
import/resolver: | ||
node: | ||
paths: | ||
- src | ||
- '' | ||
- dist | ||
extensions: | ||
- ".js" | ||
- ".jsx" | ||
- ".ts" | ||
- ".tsx" | ||
- ".json" | ||
plugins: | ||
- prettier | ||
- "@typescript-eslint" | ||
overrides: | ||
- files: tests/**/* | ||
rules: | ||
global-require: 'off' | ||
parser: "@typescript-eslint/parser" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
"show": false | ||
}, | ||
"img": "icons/svg/mystery-man.svg" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import {advantageDisadvantageTerm} from "./settings"; | ||
|
||
export default function registerHandlebarsHelpers():void { | ||
|
||
//Currently none, but here is where they should reside. Earlier versions of this file/this system had some, look in the history. | ||
Handlebars.registerHelper('advantageDisadvantageTerm', (str) => { | ||
return advantageDisadvantageTerm(str); | ||
}); | ||
|
||
} |
Oops, something went wrong.