https://github.com/sudongyuer/eslint-config
🐇 Out of box Eslint config ~~
https://github.com/sudongyuer/eslint-config
eslint eslint-config eslint-config-react eslint-config-typescript eslint-config-vue formatter lint linter
Last synced: 3 months ago
JSON representation
🐇 Out of box Eslint config ~~
- Host: GitHub
- URL: https://github.com/sudongyuer/eslint-config
- Owner: sudongyuer
- Created: 2022-06-12T06:48:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T16:49:57.000Z (over 2 years ago)
- Last Synced: 2024-10-10T12:01:27.601Z (7 months ago)
- Topics: eslint, eslint-config, eslint-config-react, eslint-config-typescript, eslint-config-vue, formatter, lint, linter
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@sudongyuer/eslint-config
- Size: 155 KB
- Stars: 20
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @sudongyuer/eslint-config
![]()
- Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone without Prettier)
- TypeScript, Vue, React out-of-box
- Lint also for json, yaml, markdown
- Sorted imports, dangling commas for cleaner commit diff
- Reasonable defaults, best practices, only one-line of config## Usage
### Install
```bash
pnpm add -D eslint @sudongyuer/eslint-config
```### Config `.eslintrc`
```json
{
"extends": "@sudongyuer"
}
```> You don't need `.eslintignore` normally as it has been provided by the preset.
### Add script for package.json
For example:
```json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
```### Config WebStorm auto fix

### Config VS Code auto fix
Create `.vscode/settings.json`
```json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
```## Author
sudongyuer email:[email protected]
## License
MIT