-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Autodetect module type in recommends for FlatConfig
#105
Comments
Could you please publish new version :)? |
I'll release it when #114 get merged. |
what is your config? |
seems like it's an issue that has been fixed. can you upgrade eslint to latest and retry? |
Here is my config https://github.com/coderaiser/putout/blob/v31.8.5/packages/eslint-plugin-putout/lib/config/index.js#L13, what I changed is: -const n = compat.config(nPlugin.configs.recommended);
+const n = nPlugin.configs['flat/mixed-esm-and-cjs']; I have latest version of ESLint I have this |
technically you cannot define a namespace for different plugins: [plugins: {n: obj1}],
[plugins: {n: obj2}], it will throw an error as you described. In your case, you were using eslintrc and flat configs:
|
so, this is not an issue in the package. I would recommend converting all the used I'm willing to make a PR for putout if you like. :) |
it should be resolved by removing this line: |
Would be great to have ability to require
recommended
preset with auto detectESM
/CommonJS
in a similar toCommonJS
way:So it looks like:
The text was updated successfully, but these errors were encountered: