@yeger/eslint-config
v2.5.1
Published
ESLint config preset based on @antfu/eslint-config.
Downloads
494
Maintainers
Readme
@yeger/eslint-config
Installation
yarn add -D eslint @yeger/eslint-config
Usage
{
"extends": ["@yeger"]
}
While using the standard eslint
command is possible, the yeger-lint
command automatically includes all supported files in the current directory:
{
"scripts": {
"lint": "yeger-lint",
"lint:fix": "yeger-lint --fix"
}
}
lint-staged
lint-staged
will not work with the import/no-unresolved
rule if TypeScript's path aliases are used.
Hence, the rule has to be disabled for this use case:
{
"lint-staged": {
"*.{astro,html,js,jsx,json,md,ts,tsx,vue,yaml,yml}": "eslint --fix --rule 'import/no-unresolved: off'"
}
}