0.4.2 • Published 10 months ago
@ifmini/eslint-config v0.4.2
@ifmini/eslint-config
The minimal ESLint Config for only Vanilla JavaScript or TypeScript project, will not support any framework. For framework usage, check the @ifshizuku/eslint-config instead.
Code Style
The code style specified in this project is not any industry-universal specification style, and follows the author Shizuku's personal preference, but has a certain degree of reasonableness.
- Double quotes, no semi
- 2 spaces for indent
- Sorted imports, dangling commas
There're some detailed difference between this project and @ifshizuku/eslint-config.
Features
- Auto-fix formatter without Prettier
- TypeScript out-of-box
- Lint also for JSON, YAML, TOML
- Stable for diff
Usage
Add this config package:
pnpm add @ifmini/eslint-config -D
Add to .eslintrc
:
{
"extends": "@ifmini"
}
VSCode Auto-fix
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
},
"eslint.validate": [
"javascript",
"typescript",
"json",
"jsonc",
"yaml"
]
}