Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natterstefan/stylelint-config-ns

Stylelint config with CSS (`.(s)css`), Tailwind, PostCSS and Prettier support.
https://github.com/natterstefan/stylelint-config-ns

postcss prettier prettier-stylelint tailwind tailwind-stylelint

Last synced: 8 days ago
JSON representation

Stylelint config with CSS (`.(s)css`), Tailwind, PostCSS and Prettier support.

Awesome Lists containing this project

README

        

# stylelint-config-ns

[![npm version](https://badge.fury.io/js/stylelint-config-ns.svg)](https://badge.fury.io/js/stylelint-config-ns)
[![GitHub license](https://img.shields.io/github/license/natterstefan/stylelint-config-ns.svg)](https://github.com/natterstefan/stylelint-config-ns/blob/main/LICENCE)
[![Node CI](https://github.com/natterstefan/stylelint-config-ns/actions/workflows/ci.yml/badge.svg)](https://github.com/natterstefan/stylelint-config-ns/actions/workflows/ci.yml)

> Stylelint config with pre-configured Sass (`.scss`), Tailwind, CSS-in-JS
> (`.ts` and `.tsx`), PostCSS and Prettier support.

## Installation

Install the package with

```sh
npm install stylelint-config-ns --save-dev
# or
yarn add stylelint-config-ns -D
```

## Usage

Add the following to your `styelint.config.js` config:

```js
/**
* @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](https://github.com/stylelint/stylelint-config-recommended)
- [prettier/stylelint-config-prettier: Turns off all rules that are unnecessary or might conflict with prettier.](https://github.com/prettier/stylelint-config-prettier)

## Development

### How to publish

```sh
# prepare the CHANGELOG (new release headline)
git add CHANGELOG && git commit -m "chore: prepare release"

# push changes
git push

# publish the release
yarn publish
```

## License

[MIT](./LICENSE)