Skip to content
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

Adjacent JSX elements errors when configuring eslint to use standardjs #1178

Closed
kaihendry opened this issue Apr 26, 2018 · 5 comments
Closed

Comments

@kaihendry
Copy link

Version

3.0.0-beta.6

Reproduction link

https://s.natalian.org/2018-04-26/jsx-lint.zip

Steps to reproduce

curl -O https://s.natalian.org/2018-04-26/jsx-lint.zip
unzip jsx-lint.zip
npm i
npm run lint

What is expected?

No linting errors on the default files.

What is actually happening?

Weird JSX errors


3.0.0-beta.7

@yyx990803
Copy link
Member

Please provide a repository instead of a zip file :/

@yyx990803 yyx990803 added the needs reproduction This issue is missing a minimal runnable reproduction, provided by the author label Apr 27, 2018
@kaihendry
Copy link
Author

@yyx990803 yyx990803 added priority: now and removed needs reproduction This issue is missing a minimal runnable reproduction, provided by the author labels Apr 27, 2018
@yyx990803
Copy link
Member

Looks like you are using your own ESLint config instead of the built-in one. This is not something we are responsible for. FYI there is a built-in ESLint config for standard.

@kaihendry
Copy link
Author

Sorry, I don't follow how I'm supposed to make the project use standardjs. I understood from reading:

https://github.com/vuejs/vue-cli/blob/dev/docs/README.md#eslint
https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint

That I needed to create .eslintrc with { "extends": "standard" }, i.e. I the way I think to make eslint use standardjs.

How do I activate this built-in ESLint config for standard ?

@yyx990803
Copy link
Member

You had the options when creating the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants