Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Sharable ESLint config.
https://github.com/dre1080/eslint-config

Last synced: 9 days ago
JSON representation

Sharable ESLint config.

Awesome Lists containing this project

README

        

# eslint-config

[![npm (scoped)](https://img.shields.io/npm/v/@dre1080/eslint-config)](https://www.npmjs.org/package/@dre1080/eslint-config)

> Sharable eslint config.

## Install

Install [eslint](https://eslint.io/), [prettier](https://prettier.io/) and `@dre1080/eslint-config`:

**With Yarn**

```sh
$ yarn add --dev eslint prettier @dre1080/eslint-config
```

**With npm**

```sh
$ npm install eslint prettier @dre1080/eslint-config --save-dev
```

## Usage

JSON ESLint config example:

```json
{
"extends": ["@dre1080"]
}
```

This package also exposes other configs that can be used for specific types of projects.

[`@dre1080/eslint-config/nuxt`](nuxt.js) for [Nuxt.js](https://nuxtjs.org/) based projects:

```json
{
"extends": ["@dre1080/eslint-config/nuxt"]
}
```

Add a prettier config in `package.json`:

```json
{
...
"prettier": "@dre1080/prettier-config"
...
}
```