Eslint-plugin-vue: Adjacent JSX elements must be wrapped in an enclosing tag

Created on 22 Jan 2018  路  5Comments  路  Source: vuejs/eslint-plugin-vue

"eslint": "^4.15.0",
"eslint-plugin-vue": "^4.0.0",
node: v8.9.3
image
i never use JSX. it is just a .vue file.
image
how to solve this problem? ths

Most helpful comment

I have solved this by adding .eslintrc.js in the root of the project :

module.exports = { "env": { "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "indent": [ "error", "tab" ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "double" ], "semi": [ "error", "never" ] } };

All 5 comments

Would you answer issue template?

sorry sir. this problem is just like the #188 ,but i do not how to solve this. There is no problem in old vue project,but in the new vue project.

Would you answer issue template? Especially, I think there is the cause in your .eslintrc.* file. The issue template has the question: "Please show your full configuration:"

thank you so much,sir. i made over my .eslintrc.js file. it works now. thank you so much.

I have solved this by adding .eslintrc.js in the root of the project :

module.exports = { "env": { "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "indent": [ "error", "tab" ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "double" ], "semi": [ "error", "never" ] } };

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sqal picture sqal  路  3Comments

lichnow picture lichnow  路  3Comments

KristofMorva picture KristofMorva  路  4Comments

apertureless picture apertureless  路  4Comments

soullivaneuh picture soullivaneuh  路  3Comments