Questions tagged [prettier-eslint]
140 questions
0
votes
0 answers
Prettier changing only one syntax element
In the following code, if I remove // prettier-ignore, then prettier will transform
'Accept'
into
Accept
Which will generate a compilation error. Prettier doesn't do that on my other headers.
Is there a better solution to this than asking prettier…

stKKd
- 444
- 1
- 5
- 11
0
votes
1 answer
Why npx does not work for some of the packages?
npx eslint This works fine and executes eslint with out the explicit cli install
on the other hand,
npx prettier-eslint This one does not work. //command not found
But if I install prettier-eslint-cli above command works fine
My question is why npx…

Ankur Marwaha
- 1,613
- 2
- 15
- 30
-1
votes
1 answer
Eslint giving error on the first line of file
What is this error on the first line of the file it came up on every file and when I hover over it, it says:
Parsing error: require() of ES Module F:\web\React Native\dog_food\node_modules\eslint-scope\lib\definition.js from F:\web\React…

Ramiz Qazi
- 1
- 1
-1
votes
1 answer
ESLint: Disable "Invalid number literal casing" rule
I'm using NuxtJS CLI, which comes together with Prettier and ESLint.
I have problems with hexadecimal numbers:
0xffffff
ESLint doesn't like it and throws this error:
Invalid number literal casing unicorn/number-literal-case
I found this solution, …

MAZ
- 643
- 5
- 18
-2
votes
1 answer
prettier configuration error, prettier not working
I got an error in prettier. how to solve this issue?

user14646450
- 1
- 1
- 3