Add rule banning literal text in JSX (#1367)
This commit is contained in:
parent
7f04239176
commit
8ce595e5d6
@ -83,7 +83,14 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"prefer-template": "warn",
|
"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": ".",
|
"homepage": ".",
|
||||||
|
@ -4,7 +4,7 @@ export const LoadingMessage = () => {
|
|||||||
// !! KEEP THIS IN SYNC WITH index.html !!
|
// !! KEEP THIS IN SYNC WITH index.html !!
|
||||||
return (
|
return (
|
||||||
<div className="LoadingMessage">
|
<div className="LoadingMessage">
|
||||||
<span>Loading scene...</span>
|
<span>{"Loading scene..."}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user