- React.js
- Css in JS(Emotion)
The components above are part of this setup.
Here is the configuration for Stylelint:
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,
},
};
The CSS styles are defined as follows:
import emotionReset from "emotion-reset";
const globalStyle = css`
${emotionReset};
`;
An error message appears regarding ${emotionReset};
.
Unexpected extra semicolon (no-extra-semicolons)stylelint(no-extra-semicolons)
Is there a solution to fix this error?
Although the error shows, the CSS still functions properly.
I attempted to disable no-extra-semicolons
to resolve the issue, but it seems there is no option provided for disabling it.
no-extra-semicolons · stylelint