stylelint-config-ns
v2.1.0
Published
Stylelint config with CSS (`.(s)css`), Tailwind, PostCSS and Prettier support.
Downloads
1,470
Maintainers
Readme
stylelint-config-ns
Stylelint config with pre-configured Sass (
.scss
), Tailwind, CSS-in-JS (.ts
and.tsx
), PostCSS and Prettier support.
Installation
Install the package with
npm install stylelint-config-ns --save-dev
# or
yarn add stylelint-config-ns -D
Usage
Add the following to your styelint.config.js
config:
/**
* @type {import('stylelint').Config}
*/
module.exports = {
extends: 'stylelint-config-ns',
}
Extended Configs
The following configurations are used and preconfigured:
- stylelint/stylelint-config-recommended: The recommended shareable config for Stylelint
- prettier/stylelint-config-prettier: Turns off all rules that are unnecessary or might conflict with prettier.
Development
How to publish
# prepare the CHANGELOG (new release headline)
git add CHANGELOG && git commit -m "chore: prepare release"
# push changes
git push
# publish the release
yarn publish