Ruleset of meaningful Lint rules on runtime and beautiful formatters. (prettier & eslint-plugin-import)
- 📦 Zero extend for explicit rules.
- 💅 Prettier integration, specialized fixable
import
rules. - 🏠 Use user's existing
.prettierrc
directly. - ✅ Meamingful rules code behavior than which syntax sugar is good.
- Node.js 20.11.0 or higher
- ESLint v9
- TypeScript v5 and
tsconfig.json
file - Prettier v3 and
.prettierrc
file
If you are using ESLint v8, please follow [email protected] Installation guide.
- pnpm
pnpm add -D eslint-config-ts-prefixer@latest
- npm
npm install --save-dev eslint-config-ts-prefixer@latest
- yarn
yarn add -D eslint-config-ts-prefixer
// eslint.config.mjs or eslint.config.js
import { defineConfig } from 'eslint/config'
import tsPrefixer from 'eslint-config-ts-prefixer'
export default defineConfig([...tsPrefixer])
{
"scripts": {
"lint": "eslint . -c eslint.config.mjs",
"lint:fix": "eslint . -c eslint.config.mjs --fix"
}
}
just run npm run lint:fix
to apply this package's configurations! 🎉
If you use VSCode,Cursor and ESLint Extension,
you can get great developer experience with the shortcut.
And Webstorm native support ESLint.
TBD
Thanks goes to these wonderful people (emoji key):
ryota-murakami 💻 📖 |