diff --git a/.eslintrc.json b/.eslintrc.json index 1bd7b04f21..8bbf78df51 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -111,9 +111,20 @@ { "files": ["*.html"], "parser": "@angular-eslint/template-parser", - "plugins": ["@angular-eslint/template"], + "plugins": ["@angular-eslint/template", "tailwindcss"], "rules": { - "@angular-eslint/template/button-has-type": "error" + "@angular-eslint/template/button-has-type": "error", + "tailwindcss/no-custom-classname": [ + "error", + { + // uses negative lookahead to whitelist any class that doesn't start with "tw-" + // in other words: classnames that start with tw- must be valid TailwindCSS classes + "whitelist": ["(?!(tw)\\-).*"] + } + ], + "tailwindcss/enforces-negative-arbitrary-values": "error", + "tailwindcss/enforces-shorthand": "error", + "tailwindcss/no-contradicting-classname": "error" } }, { diff --git a/apps/web/src/app/accounts/login/login-with-device.component.html b/apps/web/src/app/accounts/login/login-with-device.component.html index 3e5f48d597..84598b11ff 100644 --- a/apps/web/src/app/accounts/login/login-with-device.component.html +++ b/apps/web/src/app/accounts/login/login-with-device.component.html @@ -1,3 +1,5 @@ + +
diff --git a/apps/web/src/app/accounts/register-form/register-form.component.html b/apps/web/src/app/accounts/register-form/register-form.component.html index 614fcbccda..c18635079e 100644 --- a/apps/web/src/app/accounts/register-form/register-form.component.html +++ b/apps/web/src/app/accounts/register-form/register-form.component.html @@ -1,3 +1,5 @@ + +
+

{{ "createAccount" | i18n }}

+