question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I override `parserOptions`

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
fregantecommented, Jan 16, 2019

You can set the option directly under the xo property in your package.json

⚠️ This isn’t documented in the readme and placing it under settings doesn’t work

3reactions
pvdlgcommented, Aug 29, 2018

You can set the option directly under the xo property in your package.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 to eslint-config-xo-react? Maybe we could start with the plugin:vue/recommended preset and parserOptions. We would also need to add .vue files support to XO, similarly to the way we added .ts.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found