The official stylelint configuration for Ramsey Solutions.
Support for Prettier is pre-configured out of the box.
stylelint
prettier
- Though not strictly required, this config relies onprettier
to enforce many stylistic rules.
Install stylelint
and prettier
as devDependencies
if you have not already:
yarn add stylelint prettier --dev
Install @ramseyinhouse/stylelint-config
:
yarn add @ramseyinhouse/stylelint-config --dev
Configure stylelint to extend @ramseyinhouse/stylelint-config
.
- Add a
stylelint.config.js
(or other supported file format) to the root of your project. - Extend
@ramseyinhouse/stylelint-config
via theextends
property:
module.exports = {
extends: ['@ramseyinhouse/stylelint-config'],
};