Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dre1080/eslint-config
- Owner: dre1080
- Created: 2020-04-08T17:11:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T10:10:10.000Z (over 1 year ago)
- Last Synced: 2024-12-20T18:07:36.937Z (16 days ago)
- Language: JavaScript
- Homepage:
- Size: 158 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
...
}
```