Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sxzz/eslint-config-legacy
A ESLint config preset.
https://github.com/sxzz/eslint-config-legacy
Last synced: 2 months ago
JSON representation
A ESLint config preset.
- Host: GitHub
- URL: https://github.com/sxzz/eslint-config-legacy
- Owner: sxzz
- License: mit
- Created: 2021-06-19T01:20:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T05:11:44.000Z (9 months ago)
- Last Synced: 2024-10-03T12:40:16.225Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.25 MB
- Stars: 32
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @sxzz/eslint-config
ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
Forked from [antfu/eslint-config](https://github.com/antfu/eslint-config)
## Usage
```bash
pnpm i -D @sxzz/eslint-config-basic # JavaScript only
# Or yarn add -D / npm install -D
pnpm i -D @sxzz/eslint-config-ts # JavaScript and TypeScript
pnpm i -D @sxzz/eslint-config-vue # JavaScript, TypeScript and Vue 2/3 (Auto detect)
pnpm i -D @sxzz/eslint-config-prettier # Prettier only
pnpm i -D @sxzz/eslint-config # JavaScript, TypeScript, Vue 2/3 and Prettier
```## Quick start
### Vue 3
```bash
pnpm i -D @sxzz/eslint-config
``````javascript
// .eslintrc.js
module.exports = {
root: true,
extends: ['@sxzz/eslint-config'],
rules: {
// Your custom rules
},
}
``````jsonc
// .prettierrc
{
"semi": false,
"singleQuote": true
}
```### VSCode
```jsonc
// settings.json
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"json",
"json5",
"jsonc",
"yaml"
],
"eslint.probe": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"json",
"json5",
"jsonc",
"yaml"
]
}
```## Sponsors
## License
MIT License © 2021-PRESENT [三咲智子](https://github.com/sxzz)