-
-
Save avil13/284d02b6250f18920d190bda24061bf2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this command to generate base config and vs code settings: | |
// pnpm dlx @antfu/eslint-config@latest | |
import antfu from "@antfu/eslint-config"; | |
export default antfu({ | |
type: "app", | |
typescript: true, | |
formatters: true, | |
stylistic: { | |
indent: 2, | |
semi: true, | |
quotes: "double", | |
}, | |
}, { | |
rules: { | |
"ts/no-redeclare": "off", | |
"ts/consistent-type-definitions": ["error", "type"], | |
"no-console": ["warn"], | |
"antfu/no-top-level-await": ["off"], | |
"node/prefer-global/process": ["off"], | |
"node/no-process-env": ["error"], | |
"perfectionist/sort-imports": ["error", { | |
tsconfigRootDir: '.', | |
}], | |
"unicorn/filename-case": ["error", { | |
case: "kebabCase", | |
ignore: ["README.md"], | |
}], | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment