-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bf3660
commit 24da220
Showing
45 changed files
with
3,285 additions
and
134 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
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,5 @@ | ||
/.vscode | ||
/node_modules | ||
/module.zip | ||
/script.js | ||
/script.js.map |
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,74 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import stylistic from "@stylistic/eslint-plugin"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["script.js"], | ||
}, | ||
pluginJs.configs.recommended, | ||
stylistic.configs.customize({ | ||
indent: 4, | ||
quotes: "double", | ||
semi: true, | ||
jsx: false, | ||
arrowParens: "always", | ||
braceStyle: "1tbs", | ||
blockSpacing: true, | ||
quoteProps: "consistent-as-needed", | ||
commaDangle: "always-multiline", | ||
}), | ||
{ | ||
languageOptions: { | ||
ecmaVersion: "latest", | ||
globals: { | ||
...globals.browser, | ||
AbstractBaseFilter: "readonly", | ||
BaseSamplerShader: "readonly", | ||
canvas: "readonly", | ||
ClipperLib: "readonly", | ||
CONFIG: "readonly", | ||
CONST: "readonly", | ||
Color: "readonly", | ||
ColorAdjustmentsSamplerShader: "readonly", | ||
DetectionMode: "readonly", | ||
dnd5e: "readonly", | ||
foundry: "readonly", | ||
game: "readonly", | ||
GlowOverlayFilter: "readonly", | ||
Hooks: "readonly", | ||
loadTexture: "readonly", | ||
OutlineOverlayFilter: "readonly", | ||
PIXI: "readonly", | ||
PointSourcePolygon: "readonly", | ||
Roll: "readonly", | ||
SpriteMesh: "readonly", | ||
Token: "readonly", | ||
VisionMode: "readonly", | ||
}, | ||
}, | ||
rules: { | ||
"no-unused-vars": ["error", { | ||
vars: "all", | ||
args: "none", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
ignoreRestSiblings: false, | ||
reportUsedIgnorePattern: false, | ||
}], | ||
"@stylistic/padding-line-between-statements": [ | ||
"error", | ||
{ blankLine: "always", prev: "*", next: ["block-like", "break", "class", "continue", "function", "return"] }, | ||
{ blankLine: "always", prev: ["block-like", "class", "function"], next: "*" }, | ||
{ blankLine: "always", prev: "expression", next: ["const", "let", "var"] }, | ||
{ blankLine: "always", prev: ["const", "let", "var"], next: "expression" }, | ||
{ blankLine: "never", prev: ["break", "continue", "return"], next: "*" }, | ||
{ blankLine: "never", prev: "*", next: "case" }, | ||
], | ||
"@stylistic/no-mixed-operators": "off", | ||
"@stylistic/no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }], | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
|
@@ -8,13 +8,13 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"compatibility": { | ||
"minimum": "12", | ||
"verified": "12" | ||
}, | ||
"esmodules": [ | ||
"scripts/main.mjs" | ||
"scripts": [ | ||
"script.js" | ||
], | ||
"styles": [ | ||
"style.css" | ||
|
@@ -60,8 +60,8 @@ | |
}, | ||
"url": "https://github.com/dev7355608/vision-5e", | ||
"manifest": "https://github.com/dev7355608/vision-5e/releases/latest/download/module.json", | ||
"download": "https://github.com/dev7355608/vision-5e/releases/download/v2.5.2/module.zip", | ||
"changelog": "https://github.com/dev7355608/vision-5e/releases/tag/v2.5.2", | ||
"download": "https://github.com/dev7355608/vision-5e/releases/download/v2.5.3/module.zip", | ||
"changelog": "https://github.com/dev7355608/vision-5e/releases/tag/v2.5.3", | ||
"bugs": "https://github.com/dev7355608/vision-5e/issues", | ||
"readme": "https://raw.githubusercontent.com/dev7355608/vision-5e/main/README.md", | ||
"license": "https://raw.githubusercontent.com/dev7355608/vision-5e/main/LICENSE" | ||
|
Oops, something went wrong.