mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add rule banning literal text in JSX (#1367)
This commit is contained in:
parent
7f04239176
commit
8ce595e5d6
2 changed files with 9 additions and 2 deletions
|
@ -83,7 +83,14 @@
|
|||
}
|
||||
],
|
||||
"prefer-template": "warn",
|
||||
"prettier/prettier": "warn"
|
||||
"prettier/prettier": "warn",
|
||||
"no-restricted-syntax": [
|
||||
"warn",
|
||||
{
|
||||
"selector": "JSXText[value=/\\w/]",
|
||||
"message": "Use 't(...)' instead of literal text in JSX"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"homepage": ".",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue