Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Shareable ESLint config for my own projects
https://github.com/elforastero/eslint-config

eslint eslint-config

Last synced: 28 days ago
JSON representation

Shareable ESLint config for my own projects

Awesome Lists containing this project

README

        

🚀 @spaceship/eslint-config
-------------
Shareable ESLint configs for React, React Native, React Native Web, and Node projects. All configs imply TypeScript.

## Usage

Install npm package:

```shell script
yarn add --dev @spaceship/eslint-config
```

Then extend your `.eslintrc` with one of the following configs:

- `@spaceship/eslint-config` - default framework- and environment-agnostic config
- `@spaceship/eslint-config/web` - config for react web apps
- `@spaceship/eslint-config/native` - config for react-native apps
- `@spaceship/eslint-config/hybrid` - config for hybrid react-native + web apps
- `@spaceship/eslint-config/node` - config for nodejs projects
- `@spaceship/eslint-config/jest` - config for testing environment
- `@spaceship/eslint-config/i18n` - config for i18n solutions

### .eslintrc

```json
{
"extends": [
"@spaceship/eslint-config/web"
]
}
```

### package.json

```json
{
"eslintConfig": {
"extends": [
"@spaceship/eslint-config/native"
]
}
}
```