Fixing eslint rule "quote-props" cause parse error
See original GitHub issueOur 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:
- Created 4 years ago
- Reactions:4
- Comments:10 (9 by maintainers)
Top 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 >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
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.
I have reported: https://github.com/acornjs/acorn/issues/846