Fix linter warning
This commit is contained in:
parent
ba268e4245
commit
3209280b29
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ module.exports = {
|
||||||
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
||||||
],
|
],
|
||||||
|
|
||||||
|
plugins: ["@typescript-eslint"],
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
|
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
|
||||||
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
|
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
|
||||||
|
|
|
@ -113,7 +113,7 @@ Hooks.once("ready", function () {
|
||||||
* (in this order).
|
* (in this order).
|
||||||
*/
|
*/
|
||||||
["renderApplication", "renderActorSheet", "renderItemSheet"].forEach((hookName: string) => {
|
["renderApplication", "renderActorSheet", "renderItemSheet"].forEach((hookName: string) => {
|
||||||
Hooks.on(hookName, (app: Dialog, html: JQueryStatic, data: any) => {
|
Hooks.on(hookName, (app: Dialog, html: JQueryStatic) => {
|
||||||
$(html)
|
$(html)
|
||||||
.find("input")
|
.find("input")
|
||||||
.on("focus", (ev: JQuery.FocusEvent<HTMLInputElement>) => {
|
.on("focus", (ev: JQuery.FocusEvent<HTMLInputElement>) => {
|
||||||
|
|
Loading…
Reference in a new issue