保存时,引号从反引号-> ´
<-(反之亦然)变为"
。
发件人:
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
到
module.exports = {
siteMetadata: {
title: "Gatsby Default Starter",
description:
"Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.",
author: "@gatsbyjs",
},
如何预防?
我使用更漂亮和带有默认值的eslint