Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aminnairi/esgi-stylelint-config

StyleLint configuration
https://github.com/aminnairi/esgi-stylelint-config

config configuration esgi lint setting settings style stylelint

Last synced: 30 days ago
JSON representation

StyleLint configuration

Awesome Lists containing this project

README

        

# @esgi/stylelint-config

[![E2E](https://github.com/aminnairi/esgi-stylelint-config/actions/workflows/e2e.yaml/badge.svg)](https://github.com/aminnairi/esgi-stylelint-config/actions/workflows/e2e.yaml) [![NPM version](https://badgen.net/npm/v/@esgi/stylelint-config)](https://www.npmjs.com/package/@esgi/stylelint-config) [![Package size](https://badgen.net/bundlephobia/minzip/@esgi/stylelint-config)](https://bundlephobia.com/package/@esgi/stylelint-config) ![Vulnerabilities' count](https://badgen.net/snyk/aminnairi/esgi-stylelint-config)

StyleLint configuration

## Requirements

- Terminal
- [Node](https://nodejs.org/)
- NPM
- NPX

## Installation

```console
$ npm install --save-dev stylelint @esgi/stylelint-config
```

## Usage

### Without configuration

#### With a single file

```console
$ npx @esgi/stylelint-config index.css
```

#### With multiple files

```console
$ npx @esgi/stylelint-config first.css second.css third.css
```

#### Using a glob

```console
$ npx @esgi/stylelint-config *.css
```

### With configuration

```console
$ touch .stylelintrc.js
```

```javascript
"use strict";

module.exports = {
extends: "@esgi/stylelint-config"
};
```

```console
$ touch package.json
```

```json
{
"scripts": {
"stylelint": "stylelint index.css"
}
}
```

```console
$ npm run stylelint
```
## Code of conduct

See [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md).

## Contributing

See [`CONTRIBUTING.md`](./CONTRIBUTING.md).

## Changelog

See [`CHANGELOG.md`](./CHANGELOG.md).

## License

See [`LICENSE`](./LICENSE).