Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tclindner/stylelint-config-tc

Stylelint shareable config
https://github.com/tclindner/stylelint-config-tc

code code-style css lint linter quality style stylelint stylelint-config

Last synced: 3 months ago
JSON representation

Stylelint shareable config

Awesome Lists containing this project

README

        

# stylelint-config-tc

> Stylelint [shareable config](http://stylelint.io/user-guide/configuration/#extends)

[![license](https://img.shields.io/github/license/tclindner/stylelint-config-tc.svg?maxAge=2592000&style=flat-square)](https://github.com/tclindner/stylelint-config-tc/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/v/stylelint-config-tc.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/stylelint-config-tc)
![ci](https://github.com/tclindner/stylelint-config-tc/workflows/ci/badge.svg?branch=master)

## What is stylelint-config-tc?

Shared configuration for Stylelint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file!

# How do I install it?

First thing first, let's make sure you have the necessary pre-requisites.

### System Dependencies

#### Node

* [Node.js](https://nodejs.org/) - v18.0.0+
* [npm](http://npmjs.com) - v9.0.0+

### Command

```bash
npx install-peerdeps --dev stylelint-config-tc
```

> stylelint, stylelint-prettier, and prettier are peer dependencies and must be installed.

## Usage

Add the following to your `.stylelintrc.json` file:

```json
{
"extends": "stylelint-config-tc"
}
```

If you need to override a rule, your `.stylelintrc.json` file should look like the example below. All shared rules will be used, but `declaration-block-trailing-semicolon` will be turned off.

```json
{
"extends": "stylelint-config-tc",
"rules": {
"declaration-block-trailing-semicolon": null
}
}
```

## Contributing

Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information.

## Change Log

Please see the [CHANGELOG.md](CHANGELOG.md) for more information.

## License

Copyright (c) 2018-2023 Thomas Lindner. Licensed under the MIT license.