How can I override `parserOptions`
See original GitHub issueI’ll use xo
to lint *.vue
files by bable-eslint
and eslint-plugin-vue
.
So, I need to override parserOptions
like this.
https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Please tell me how to do it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
eslint - per file parserOptions.sourceType?
Another option is using overrides as such : { "extends": "eslint:recommended", "overrides": [{ "files": ["path/to/some/file.js", ...
Read more >eslint: using overrides and file types - code-comments
First of all, we define a new parser @typescript-eslint/parser which has its own parser options API. In particular, it exposes a project ...
Read more >Configuring ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Troubleshooting & FAQs - TypeScript ESLint
Use ESLint's overrides configuration to configure the file to not be ... you can add parserOptions: { project: null } to an override...
Read more >ParserOptions (ATG Java API)
Class ParserOptions. java.lang. ... public class ParserOptions; extends OptionsBase ... Method for overriding everything in this class from well-formed xml.
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 Free
Top 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
⚠️ This isn’t documented in the readme and placing it under
settings
doesn’t workYou can set the option directly under the
xo
property in yourpackage.json
or you can create a shareable config and set it there, similarly to https://github.com/xojs/eslint-config-xo-react/blob/master/index.js#L3@sindresorhus should we create a
eslint-config-xo-vue
repo similar toeslint-config-xo-react
? Maybe we could start with theplugin:vue/recommended
preset andparserOptions
. We would also need to add.vue
files support to XO, similarly to the way we added.ts
.