2.2.2 • Published 4 months ago
@sunshj/eslint-config v2.2.2
@sunshj/eslint-config
Based on @sxzz/eslint-config
Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, React, Prettier.
Features
- Format with Prettier.
- Designed to work with TypeScript, React, Vue 2 and 3 out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports,
package.json
,tsconfig.json
... - ESLint Flat config, compose easily!
- Reasonable defaults, best practices, only one-line of config
Install
npm i -D eslint @sunshj/eslint-config
Require Node.js >= 18.18. ESLint v9.10.0+
Usage
// eslint.config.js
import { all } from '@sunshj/eslint-config'
export default all()
Custom Config
import { defineConfig } from '@sunshj/eslint-config'
export default defineConfig(
[
/* your custom config */
],
{ vue: true, prettier: true, markdown: true, unocss: false, react: true }
)
VSCode Settings
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
]
}
2.2.2
4 months ago
2.2.0-beta.1
5 months ago
2.2.0-beta.2
5 months ago
2.2.0-beta.3
5 months ago
2.2.0-beta.4
5 months ago
2.2.1
5 months ago
2.2.0
5 months ago
2.1.3
7 months ago
2.0.0-beta.8
11 months ago
2.0.0-beta.7
11 months ago
1.0.7
11 months ago
2.1.2
10 months ago
2.1.1
10 months ago
2.0.0-beta.2
1 year ago
2.0.0-beta.1
1 year ago
2.0.0-beta.6
11 months ago
2.0.0-beta.5
11 months ago
2.1.0
11 months ago
2.0.0-beta.4
1 year ago
2.0.0
11 months ago
2.0.0-beta.3
1 year ago
1.0.2
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.1
2 years ago
1.0.0
2 years ago