STRV's config for stylelint with styled-components
# Yarn:
yarn add --dev @strv/stylelint-config
# npm:
npm install --save-dev @strv/stylelint-config
We assume you are using prettier.
// .stylelintrc.js
'use strict'
module.exports = {
extends: [
'@strv/stylelint-config-styled-components',
'stylelint-config-prettier',
],
}
.stylelintrc or .stylelintrc.json
{
"extends": [
"@strv/stylelint-config-styled-components",
"stylelint-config-prettier"
]
}
package.json
{
"stylelint": {
"extends": [
"@strv/stylelint-config-styled-components",
"stylelint-config-prettier"
]
}
}