My Eslint Rules
- Base on Standard
- Provide Typescript / Vue / React Support
- Provide JSON Support
pnpm i -D eslint eslint-config-tedConfig eslint.config.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
JSONfile check - Provide
package.jsonandtsconfig.jsonsort
- Follow with typescript-eslint:recommended and typescript-eslint:stylistic
- Follow with eslint-config-vue/vue3-strongly-recommended rules
- Default open
vue/setup-compiler-macrosconfig
- Follow with eslint-config-react/recommended rules
- Hooks follow with eslint-config-react-hooks/recommended rules
MIT
Inspired by