-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
typescript-parser is not changed in flat config #95
Comments
Oh sorry my link was wrong. I've edited the link now. |
I am having the same or similar issue with flat config. Does this project work with flat config? All the docs use legacy cofnig. |
When using flat config, packages But So currently we may only use import { FlatCompat } from '@eslint/eslintrc';
const compat = new FlatCompat();
export default [
...compat.extends( // /~https://github.com/ota-meshi/typescript-eslint-parser-for-extra-files/issues/95
'plugin:@typescript-eslint/strict-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
),
{
files: ['**/*.ts'],
languageOptions: { parser: typescriptESLintParserForExtraFiles },
},
{
files: ['**/*.vue'],
languageOptions: {
parser: vueESLintParser,
parserOptions: {
parser: typescriptESLintParserForExtraFiles,
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: import.meta.dirname,
},
},
},
]; |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.57.0
What version of
typescript-eslint-parser-for-extra-files
are you using?What did you do?
Configuration
What did you expect to happen?
When I set the config with flat config with typescript-eslint, I expected that typescript eslint will uses
typescript-eslint-parser-for-extra-files
.What actually happened?
But actually, it seems that tyepscript-eslint uses it's own parser. I don't know why the following configs don't override parser.
/~https://github.com/typescript-eslint/typescript-eslint/blob/6e29721d699f8c62e23f39b9f07cf928108adfac/packages/typescript-eslint/src/index.ts#L31-L45
Link to GitHub Repo with Minimal Reproducible Example
/~https://github.com/appano1/parser-in-flat-config
Additional comments
I think some limitations need to be added in README.md or creating a configuration builder need to be added
The text was updated successfully, but these errors were encountered: