Spelunking-Studios / The-Caverns-Website

Useless template literal found JS-R1004
Anti-pattern
Minor
19 days ago19 days old
Template string can be replaced with regular string literal
 9export default function Feedback(props) {
10    const [dropdownActive, setDropdownActive] = useState(false);
11    const [category, setCategory] = useState("Select One");
12    const [fc, setFc] = useState(``);13    const [form_content, setForm_content] = useState("");
14    const [form_bugSeverity, setForm_bugSeverity] = useState(2);
15    const dropdownClick = () => {
Template string can be replaced with regular string literal
 4export default async function handler(req, res) {
 5	const jsonDirectory = path.join(process.cwd(), 'enemyData');
 6	try {
 7		const fileContents = await fs.readFile(jsonDirectory + `/enemies.json`, 'utf8'); 8		res.status(200).json(JSON.parse(JSON.stringify(fileContents)));
 9	} catch (err) {
10		res.status(404).json(JSON.stringify({