Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheus1lva/eslint-config-essential
essential eslint rules
https://github.com/matheus1lva/eslint-config-essential
dumb-mistakes eslint essential essentials rules
Last synced: 10 days ago
JSON representation
essential eslint rules
- Host: GitHub
- URL: https://github.com/matheus1lva/eslint-config-essential
- Owner: matheus1lva
- Created: 2019-10-23T14:36:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T15:02:58.000Z (about 3 years ago)
- Last Synced: 2024-10-19T19:51:56.040Z (18 days ago)
- Topics: dumb-mistakes, eslint, essential, essentials, rules
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-essential
Eslint must stop you from doing dumb mistakes, not to annoy you with useless rules.
Perhaps during development, or on your project, you or someone added all recommended react, airbnb and other rules! Most of them can be solved with prettier or any other code formatting tool. These rules start to annoy the developer and create friction during development. More `//eslint-disable-next-line` or comments similar to these are added... the codebase starts to get a mess...
Eslint is made to prevent you from making mistakes, not to enforce code style that can be added automatically pre-commit.
So this "set" of rules, are pre-selected rules that only prevent errors, dumb mistakes, they are not to apply code style. We have selected all rules that are going to make your code better!
If any rule is missing, please send a PR and we are going to add them!
**DISABLE THEM ALL!!!!!**
## Install
```sh
$ npm install eslint-config-essential --save-dev
```## Usage
edit your eslint config file and add:```json
{
"extends": "essential"
}
```If you want to use new features, you must install a parser. What i mean by that: `babel-eslint` or `ts-lint`, this gives the ability to
parse new features of ecmascript to be used by eslint. So eslint is able to understand it.This config should be used just as an extension, not as a main rule.