eslint-config-ted
v4.0.8
Published
Ted's Eslint Rules
Downloads
140
Maintainers
Readme
eslint-config-ted
My Eslint Rules
- Base on Standard
- Provide Typescript / Vue / React Support
- Provide JSON Support
Usage
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,
}
)
Rules
JS
- Follow with eslint-config-standard
JSON
- Provide
JSON
file check - Provide
package.json
andtsconfig.json
sort
TS
- Follow with typescript-eslint:recommended and typescript-eslint:stylistic
Vue
- Follow with eslint-config-vue/vue3-strongly-recommended rules
- Default open
vue/setup-compiler-macros
config
React
- Follow with eslint-config-react/recommended rules
- Hooks follow with eslint-config-react-hooks/recommended rules
Known Issues
License
MIT
Inspired by