Closed AllanOricil closed 3 years ago
I fixed this issue after creating an .eslintrc
file with the following configs
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
}
}
Oh I found a better solution. I just created the .eslintrc
with the content from the README
{
"extends": ["@salesforce/eslint-config-lwc/recommended"]
}
For some reason sfdx force:project:create
did not create the .eslintrc
Thank you, it was useful for me!)
Thanks :)
For some reason eslint is saying import is wrong. It might be related to this issue https://github.com/yannickcr/eslint-plugin-react/issues/447#issuecomment-184617282