Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

GetNinjas eslint config
https://github.com/getninjas/eslint-config-getninjas

es6 eslint getninjas javascript

Last synced: about 1 month ago
JSON representation

GetNinjas eslint config

Awesome Lists containing this project

README

        


GetNinjas


Last commit on GitHub
Made by GetNinjas
Project top programing language
Repository size
GitHub license


ℹ️ How To Use?   |   
🚀 Contributing   |   
💻 Author   |   
📝 License


ESLint Config GetNinjas is a set of linting rules for JavaScript, TypeScript and React projects. ESLint Config GetNinjas uses ESLint configurations from Airbnb and Prettier as the basis for linting rules.

---

# :information_source: How To Use?

1. Install the `eslint-config-getninjas` dependency

```bash
yarn add -D eslint-config-getninjas
```

2. Install the `peerDependencies`

```bash
yarn add -D \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint \
eslint-config-airbnb \
eslint-config-airbnb-base \
eslint-config-airbnb-typescript \
eslint-config-prettier \
eslint-import-resolver-typescript \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
eslint-plugin-react-hooks \
typescript
```

3. Setup
- [React](#react);
- [React TypeScript](#react-typescript);
- [JavaScript Base](#javascript-base);
- [TypeScript](#typescript);

## React
Create a `.eslintrc.json` file extending the config for **React**:
```
{
"extends": "eslint-config-getninjas/react"
}
```

## React TypeScript
Create a `.eslintrc.json` file extending the config for **React TypeScript**:
```
{
"extends": "eslint-config-getninjas/react-typescript"
}
```

## JavaScript Base
Create a `.eslintrc.json` file extending the config for **JavaScript Base**:
```
{
"extends": "eslint-config-getninjas/base"
}
```

## TypeScript
Create a `.eslintrc.json` file extending the config for **JavaScript Base**
```
{
"extends": "eslint-config-getninjas/typescript"
}
```

# :rocket: Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

- Create a personal fork of the project on Github.
- Clone the fork on your local machine. Your remote repo on Github is called origin.
- If you created your fork a while ago be sure to pull upstream changes into your local repository.
- Create a new branch to work on! Branch from develop if it exists, else from master.
- Implement/fix your feature, comment your code.
- Follow the code style of the project, including indentation.
- Add or change the documentation as needed.
- Push your branch to your fork on Github, the remote origin.
- If the maintainer requests further changes just push them to your branch. The PR will be updated automatically.

# :computer: Author




Rocketseat



GetNinjas




@GetNinjas



# :memo: License

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) page for details.