- React.js
- Css in JS(Emotion)
It consists of the above.
Stylelint is configured as follows.
module.exports = {
extends: [
"stylelint-config-standard",
"./node_modules/prettier-stylelint/config.js",
],
ignoreFiles: ["**/node_modules/**", "src/styles/**"],
plugins: ["stylelint-order"],
rules: {
"declaration-empty-line-before": "never",
indentation: 2,
"no-missing-end-of-source-newline": null,
"string-quotes": "single",
"order/properties-alphabetical-order": true,
},
};
CSS is as follows.
import emotionReset from "emotion-reset";
const globalStyle = css`
${emotionReset};
`;
The following error message appears for ${emotionReset};
.
Unexpected extra semicolon (no-extra-semicolons)stylelint(no-extra-semicolons)
Is there any way to resolve this error?
By the way, you will see the error, but the CSS is working.
I thought that disabling no-extra-semicolons
would solve the problem, but there doesn't seem to be an option provided to disable it.
no-extra-semicolons · stylelint