Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xwartz/eslint-config
This is personal eslint configuration.
https://github.com/xwartz/eslint-config
eslint prettier
Last synced: about 1 month ago
JSON representation
This is personal eslint configuration.
- Host: GitHub
- URL: https://github.com/xwartz/eslint-config
- Owner: xwartz
- License: mit
- Created: 2022-11-19T11:37:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T00:40:07.000Z (10 months ago)
- Last Synced: 2024-04-28T09:21:12.220Z (8 months ago)
- Topics: eslint, prettier
- Language: JavaScript
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESLint Config
This is personal eslint configuration.
## Usage
### JavaScript
- Install```bash
pnpm i -D @xwartz/eslint-config
```- Add config to `.eslintrc`:
```
{
"extends": "@xwartz/eslint-config"
}
```### TypeScript
- Install
```bash
pnpm i -D @xwartz/eslint-config-ts
```- Add config to `.eslintrc`:
```
{
"extends": ["@xwartz/eslint-config-ts"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
```#### React
- Install
```bash
pnpm i -D @xwartz/eslint-config-react @xwartz/eslint-config-ts
```- Add config to `.eslintrc`:
```
{
"extends": ["@xwartz/eslint-config-ts", "@xwartz/eslint-config-react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
```## Prettier
- Install
```bash
pnpm i -D @xwartz/prettier
```- Add config to `package.json`
```
{
"prettier": "@xwartz/prettier"
}
```