Questions tagged [babel-eslint]

38 questions
1
vote
1 answer

How to solve the warnings that occurs while using the command "yarn install" in react js

I'm working on a react js app. There I build a basic application without using create-react-app command. So when I'm using "yarn install" command I'm getting these warning messages. I tried to solve the same but unable to do so. This is the warnings…
Avanish
  • 51
  • 6
1
vote
1 answer

Eslint does not recognize const use in default argument value assignment

I want to do this: const prefDateFormat = { weekday: 'long', day: 'numeric', month: 'long' } function formatDates(dates, dateFormat = prefDateFormat){ ... } but Eslint throws: error 'prefDateFormat' is assigned a value but never used …
1
vote
1 answer

Eslint rule is running multiple times

I'm trying to write an eslint rule that enforces making sure the name property is defined on any classes that extend from other Error/Exception named classes (and fixes them). As far as I can tell, it works in the astexplorer.net individually, but…
robert.bo.roth
  • 1,343
  • 3
  • 14
  • 24
1
vote
1 answer

Compilation error on casting query selector result to HTMLElement inside a vue component's