-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider using tseslint.config
and @ts-check
#37
Comments
🤔 I wanted to keep the top-level dependencies as few as possible, so the config helper isn't available by default. |
Just |
Adding a named export to the The current pattern: import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
export default [
...pluginVue.configs["flat/essential"],
...vueTsEslintConfig({ extends: ['stylistic', 'recommended'] }),
] Using named export: import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig, { defineConfig } from "@vue/eslint-config-typescript";
export default defineConfig([
...pluginVue.configs["flat/essential"],
...vueTsEslintConfig({ extends: ['stylistic', 'recommended'] }),
])
|
Or a property on the default export, or both a property and a named export. Or also exporting |
I can't come up with a good alias for importing the package, then. Another problem is that, unlike the plain objects from Anyway, a named |
See https://typescript-eslint.io/getting-started#step-2-configuration, this will enable type checking of the ESLint config file.
The text was updated successfully, but these errors were encountered: