Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/elforastero/eslint-config
- Owner: ElForastero
- Created: 2020-11-30T15:00:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T16:13:36.000Z (over 2 years ago)
- Last Synced: 2024-10-05T00:19:47.519Z (about 1 month ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@spaceship/eslint-config
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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"
]
}
}
```