Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pixelmatters/eslint-config-pixelmatters

ESLint rules for all Pixelmatters projects
https://github.com/pixelmatters/eslint-config-pixelmatters

eslint npm

Last synced: about 1 month ago
JSON representation

ESLint rules for all Pixelmatters projects

Awesome Lists containing this project

README

        






eslint-config-pixelmatters


An ESLint config standard for Pixelmatters projects


This is a ESLint config that you can use in your projects.



eslint-config-pixelmatters is released under the MIT license.


Current npm package version.


PRs welcome!


Follow @pixelmatters_

## ๐Ÿš€ Get Up and Running

You can install this package using your favorite package manager. This configuration assumes that you have **ESLint**, **Typescript** and **Prettier** already installed; if not, install the following additional dependencies.

```text
typescript eslint prettier
```

### Add the new dependencies

**If you are using pnpm:**

```shell
pnpm install -D @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
```

**If you are using yarn:**

```shell
yarn add -D @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
```

**If you are using npm:**

```shell
npm install --save-dev @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
```

### Tell ESLint to use this config

Create an `.eslintrc.js` file in the root of your project and add the following code:

``` js
module.exports = {
extends: ['@pixelmatters/eslint-config-pixelmatters'],
};
```

At this point you should be good to go ๐Ÿ‘

## ๐Ÿค How to Contribute

Whether you're helping us fix bugs, improve the docs, or spread the word, thank you! ๐Ÿ’ช ๐Ÿงก

Check out our [**Contributing Guide**](https://github.com/Pixelmatters/eslint-config-pixelmatters/blob/main/CONTRIBUTING.md) for ideas on contributing and setup steps.

## :memo: License

Licensed under the [MIT License](./LICENSE).