chore: restrict usage of variables shorther than 3 characters (#255)

* chore: restrict usage of variables shorther than 3 characters

* chore: change highlighting to warning
This commit is contained in:
Meier Lukas
2024-03-20 20:58:24 +01:00
committed by GitHub
parent 361700b239
commit 92a8db718c
4 changed files with 18 additions and 6 deletions

View File

@@ -17,6 +17,14 @@ const config = {
},
plugins: ["@typescript-eslint", "import"],
rules: {
"id-length": [
"warn",
{
min: 3,
exceptions: ["_", "i", "z", "t", "id"], // _ for unused variables, i for index, z for zod, t for translation
properties: "never", // This allows for example the use of <Grid.Col span={{ sm: 12, md: 6 }}> as sm and md would be too short
},
],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"turbo/no-undeclared-env-vars": "off",
"@typescript-eslint/no-unused-vars": [