My Eslint Rules
- Base on Standard
- Provide Typescript / Vue / React Support
- Provide JSON Support
pnpm i -D eslint eslint-config-ted
Config 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
JSON
file check - Provide
package.json
andtsconfig.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