feat: implement profanity and non-standard text validators

This commit is contained in:
tdgao
2026-08-24 15:19:09 -06:00
parent fe9ae94a5d
commit 39ef913543
6 changed files with 1055 additions and 0 deletions
+2
View File
@@ -2,10 +2,12 @@
"name": "@modrinth/moderation",
"version": "0.0.0",
"private": true,
"type": "module",
"main": "./src/index.ts",
"scripts": {
"lint": "eslint . && prettier --check .",
"fix": "eslint . --fix && prettier --write .",
"test": "node --test src/validators/*/tests.ts",
"intl:extract": "formatjs extract \"**/*.{vue,ts,tsx,js,jsx,mts,cts,mjs,cjs}\" --ignore \"**/*.d.ts\" --ignore \"node_modules/**/*\" --out-file src/locales/en-US/index.json --preserve-whitespace",
"intl:prune-local": "pnpm -w scripts i18n-icu-contract prune-local --scope packages/moderation"
},