README
@chalkygames123/stylelint-config
Default Stylelint config used by @chalkygames123
Install
$ npm install @chalkygames123/stylelint-config --save-dev
Usage
This package provides a single config that covers both CSS and SCSS. It will automatically apply SCSS rules to .scss
files. Extend it in your config:
// .stylelintrc.js
module.exports = {
extends: ['@chalkygames123/stylelint-config'],
};
Prettier
When using Stylelint with Prettier, you should extend stylelint-config-prettier after any other shareable configs to turn off all rules that are unnecessary or might conflict with Prettier. While the above configs include rules that are turned off by doing that and have a different format from Prettier, you can also extend @chalkygames123/stylelint-config/prettier
if you want to turn them back on:
// .stylelintrc.js
module.exports = {
extends: [
'@chalkygames123/stylelint-config',
'stylelint-config-prettier',
'@chalkygames123/stylelint-config/prettier',
],
};