Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonardofaria/eslint-config-leozera
https://www.npmjs.com/package/eslint-config-leozera
https://github.com/leonardofaria/eslint-config-leozera
eslint eslint-config react
Last synced: 6 days ago
JSON representation
https://www.npmjs.com/package/eslint-config-leozera
- Host: GitHub
- URL: https://github.com/leonardofaria/eslint-config-leozera
- Owner: leonardofaria
- License: mit
- Created: 2020-01-02T06:16:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T05:44:48.000Z (about 2 years ago)
- Last Synced: 2024-09-28T01:21:01.291Z (5 months ago)
- Topics: eslint, eslint-config, react
- Language: JavaScript
- Homepage:
- Size: 162 KB
- Stars: 12
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESLint (and Prettier) config
[![npm version](https://badge.fury.io/js/eslint-config-leozera.svg)](https://badge.fury.io/js/eslint-config-leozera) ![NPM downloads](https://img.shields.io/npm/dm/eslint-config-leozera) [![GitHub issues](https://img.shields.io/github/issues/leonardofaria/eslint-config-leozera)](https://github.com/leonardofaria/eslint-config-leozera/issues) ![Code Style Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg) [![MIT License](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/leonardofaria/leozera-ui/blob/master/LICENSE) [![Twitter Follow](https://img.shields.io/twitter/follow/leozera?label=Follow%20on%20Twitter)](https://twitter.com/leozera/)
These are settings for ESLint and Prettier used by me and Thinkific.
## What it does
This setup lints your JavaScript code based on practices. Check the [.eslintrc.js](https://github.com/leonardofaria/eslint-config-leozera/blob/master/.eslintrc.js) file to see what is included. Feel free to override the rules that make sense for you.
## Installing
1. In your project folder, run:
```
npm i -D eslint-config-leozera # or yarn install --dev eslint-config-leozera
npx install-peerdeps --dev eslint-config-leozera
```2. You will see several dependencies were installed. Now, create (or update) a `.eslintrc` file with the following content:
```js
{
'extends': [
'leozera'
]
}
```3. Copy the [.prettierrc](https://github.com/leonardofaria/eslint-config-leozera/blob/master/.prettierrc) file from this repository into your project folder
---
This repository is inspired by [eslint-config-wesbos](https://github.com/wesbos/eslint-config-wesbos).