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.

Fixing eslint rule "quote-props" cause parse error

See original GitHub issue

Our Environemnt:

eslint: 6.0.1 node: 10.15.3 npm: 6.4.1

Parser: babel-eslint: 10.0.2

When we fix the “quote-props” rule we get a parsing error in the following code:

const CHAR_MAPPING = {
  æ: 'ae',
  œ: 'oe',
  ',': '',
  "'": '',
  '`': '',
  '½': '1/2',
  '¼': '1/4'
};

on the keys: ‘½’: ‘1/2’, ‘¼’: ‘1/4’

The file is: https://github.com/eslint/eslint/blob/master/lib/rules/quote-props.js

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
mysticateacommented, Jul 21, 2019

I think so. Probably Acorn has a plan to release 7.0.0 for dynamic imports soon, I think that we can upgrade at that time.

1reaction
mysticateacommented, Jul 19, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Rules - 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 >
Why is eslint giving this parse error in .eslintrc.js - Stack Overflow
I'm getting this strange error when trying to run eslint ./src --cache --fix . In my project: 0:0 error Parsing error: '{' expected....
Read more >
Available rules - eslint-plugin-vue
Rule ID Description vue/multi‑word‑component‑names require component names to be always multi‑word... vue/no‑arrow‑functions‑in‑watch disallow using arrow functions to define watcher... vue/no‑computed‑properties‑in‑data disallow accessing computed properties in data...
Read more >
Changelog - JavaScript Standard Style
Fix : Ensure we support all of the latest syntax that ESLint 8 includes, ... Warnings don't cause standard to return a non-zero...
Read more >
Migrating and configuring Eslint with Angular 11
[05/02/2021 Update]: Fixed Prettier parser error in HTML, see the Prettier configuration. [27/02/2021 Update]: Updated ESLint config to work ...
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