Ted's Eslint Rules
npm install eslint-config-tedMy Eslint Rules
- Base on Standard
- Provide Typescript / Vue / React Support
- Provide JSON Support
``bash`
pnpm i -D eslint eslint-config-ted
Config eslint.config.ts
`ts
import { ted } from "eslint-config-ted"
export default ted(
[
/ your custom config /
],
{
// Default options
typescript: true,
vue: true,
react: false,
}
)
`
- Follow with eslint-config-standard
- Provide JSON file checkpackage.json
- Provide and tsconfig.json sort
- Follow with typescript-eslint:recommended and typescript-eslint:stylistic
- Follow with eslint-config-vue/vue3-strongly-recommended rules
- Default open vue/setup-compiler-macros` config
- Follow with eslint-config-react/recommended rules
- Hooks follow with eslint-config-react-hooks/recommended rules
MIT
Inspired by
- @antfu/eslint-config
- eslint-config-alloy
- @sxzz/eslint-config