-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Bug: npm init @eslint/config with eslint-config-standard-with-typescript generates incorrect setup #1225
Comments
Sorry for not responding earlier. Although this is not the best error message, this is not a bug in this project. All you need to do is to read this. Good luck! |
@mightyiam Sorry, I don't get it, what precisely from that link should explain the situation? I'm not asking how to fix the config (which is useful anyway, thanks). Let me restart, please:
Which is the official wizard mentioned in the docs: It is my understanding, that wizards shouldn't end up with the wrong configurations. This is mine btw: module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['standard-with-typescript', 'plugin:react/recommended'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
rules: {},
}; Maybe I should have created this issue in the main eslint repo. Ok, let me do it. UPDATE: eslint/create-config#71 |
Thank you. I will follow that one. There's likely a bunch of different ways in which the configuration created by that wizard could end up unsatisfactory... |
Hello. I run
npm init @eslint/config
to get eslint setup. I go the following path:After it finishes, running
eslint
results to this error:I'm not really sure what makes this error happen - if it's at the eslint or this plugin side.
Node version: 16.17
npm version: 8.15
Local ESLint version: 8.47
Global ESLint version:
Operating System: Linux Ubuntu 22.04
The text was updated successfully, but these errors were encountered: