Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)