https://github.com/clickbar/eslint-config
Opinionated eslint set of rules with support for Vue
https://github.com/clickbar/eslint-config
Last synced: 12 months ago
JSON representation
Opinionated eslint set of rules with support for Vue
- Host: GitHub
- URL: https://github.com/clickbar/eslint-config
- Owner: clickbar
- License: mit
- Created: 2019-08-09T07:58:20.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T09:15:58.000Z (over 1 year ago)
- Last Synced: 2024-12-06T14:23:31.133Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.09 MB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-clickbar
Opinionated eslint set of rules with support for Vue and Typescript.
## Usage
Install dependencies.
```sh
pnpm add -D eslint @clickbar/eslint-config
```
Add the scripts to your `package.json` `scripts`:
```json
"scripts": {
"fix": "pnpm lint --fix",
"lint": "eslint .",
},
```
Edit `eslint.config.js`:
```js
/* eslint-env node */
import clickbar from '@clickbar/eslint-config'
export default clickbar()
```
## VS Code config for auto fixing
Add the following to your `settings.json`:
```jsonc
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
```
## License
MIT