'loc' of null error when using babel-eslint as a custom parser
See original GitHub issue- Node Version: 8.9.1
eslint
Version: 4.10.0vue-eslint-parser
Version: 2.0.1-beta.2babel-eslint
Version: 8.0.2
This is directly related to the issue I created here https://github.com/vuejs/eslint-plugin-vue/issues/189.
I have discovered that the above issue is not resident in eslint-plugin-vue
and that the issue likely lies with the interactions between babel-eslint
and vue-eslint-parser
.
As described in https://github.com/vuejs/eslint-plugin-vue/issues/189 the combination of vue-eslint-parser
and babel-eslint
produces a error when running the linter.
Example
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
'loc' of null error when using babel-eslint as a custom parser #21
I have discovered that the above issue is not resident in eslint-plugin-vue and that the issue likely lies with the interactions between babel- ......
Read more >Property "parser" is the wrong type (expected string/null but ...
I'm not sure why I'm receiving this error. Any ideas why this is happening? Any help is appreciated. Thanks in advance :) javascript...
Read more >@babel/eslint-parser | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >eslint/eslint - Gitter
Whenever i run "firebase deploy --only functions", I keep getting this error === Deploying to 'revents-231916'... i deploying functions. Running command: npm -- ......
Read more >Top 5 babel-eslint Code Examples - Snyk
Learn more about how to use babel-eslint, based on babel-eslint code examples created from the most popular ways it is used in public...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. This happens when a code is using stage 0-3 syntaxes or type annotations. I’m working on this, but I need more time.
The cause is that
vue-eslint-parser
does not get the monkey patching ofbabel-eslint
. The monkey patching affects to ESLint core, but does not to this parser. I’m working to remove the monkey patching on the new feature of ESLint core.eslint@4.14.0
has been released. It includes the enhancement and I removed the monkeypatch frombabel-eslint
. I’ll advance to fix this issue.