Fix linting errors and cleanup.

This commit is contained in:
Aaron Lutomski
2026-05-30 12:41:43 -07:00
parent f2cea4e166
commit e2f722602e
60 changed files with 575 additions and 502 deletions
@@ -41,7 +41,8 @@ export default class DGActiveEffectTypeDataModel extends foundry.data
* @returns {true}
*/
static #validateType(type) {
if (type.length < 3) throw new Error("must be at least three characters long");
if (type.length < 3)
throw new Error("must be at least three characters long");
if (
!/^custom\.-?\d+$/.test(type) &&
!type.split(".").every((s) => /^[a-z0-9]+$/i.test(s))