Questions tagged [prettier-eslint]
140 questions
0
votes
0 answers
how to change formatting from box mode to line mode in VS code prettier extension?
[enter image description here][1]
enter image description here

Sunil
- 1
0
votes
1 answer
Eslint error "Parsing error: Unexpected token =" Because state is not inside the constructor
Maybe this is a stupid question. But can anyone give me a solution? We can write state outside of constructor, right? Then why eslint is giving me this error?
If I make initialize the state inside the constructor there is no error.
Do I need to…

Iqbal Hossain Emon
- 1
- 1
- 2
0
votes
0 answers
have problem with tailwind and code formatter
I'm using Nuxt 3 and tailwind to gether .
package.json
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
…

morteza mortezaie
- 1,002
- 14
- 37
0
votes
1 answer
'EXTEND_ESLINT' is not recognized as an internal or external command, operable program or batch file
'EXTEND_ESLINT' is not recognized as an internal or external command,
operable program or batch file.
I'm having this problem. Before I was using ubuntu and everything was working well now I just moved to window 10 and start facing this problem in…

Shamaz saeed
- 387
- 3
- 8
0
votes
1 answer
nvim coc-eslint .eslintrc with prettier/prettier sets double quotes instead of single quotes
I need to apologize in advance because I am totally confused at the moment. I've been wrangling with my .eslintrc.json (at the end of my post) for several hours now.
All I want, is to set single quotes. To my understanding single quotes are part of…

LongHike
- 4,016
- 4
- 37
- 76
0
votes
1 answer
How to fix prettier config in vuexy project with react?
I already configured my npm with the following:
-npm install --force --legacy-peer-deps
-npm install --save-dev --save-exact prettier
And my .eslintrc.js is the following:
module.exports = {
env: {
node: true,
es6: true,
browser:…
0
votes
1 answer
Tslint to ESLint Migration Error : unknown option '--remove-tslint-if-no-more-tslint-targets'
I am using the below option to convert from TSLint to ESLint on Angular 11 and getting the below error
ng g @angular-eslint/schematics:convert-tslint-to-eslint --remove-tslint-if-no-more-tslint-targets
unknown option…

jslover2020
- 1
- 2
0
votes
1 answer
I got "Delete `CD`" message from eslint error
I'm writing my first lines on Nestjs but when I create my first .ts file I got this error, I don't understand what this means.

Jorge V.
- 13
- 3
0
votes
2 answers
Set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint
I am trying to build the react.js project with npm run build, I am getting following error, I have tried many solution but nothing is working for me.
**Failed to compile.**
Rules with suggestions must set the `meta.hasSuggestions` property to…

Sagar
- 5,273
- 4
- 37
- 50
0
votes
0 answers
Eslint - Leave Extraneous Parentheses
I'm using VS Code to write Angular apps in TypeScript. I have the Prettier and ESLint extensions installed and I want to configure ESLint to not remove unnecessary parentheses. ESLint has a "no-extra-parens" and I'd like to turn it off.
As a…

Jeffery Pyle
- 1
- 1
- 4
0
votes
1 answer
Auto Formatting adding text on VS Code
Working on a shared project and my coworker created a new branch with an updated npm package (@mui/material from @material-ui/core). When I pull his branch and run npm install everything installs and works correctly. But now if I make a change to a…

adam.tarr57
- 1
- 1
0
votes
1 answer
How can we set our vs code prettier on save format to the rules mentioned in .prettierrc
1st image : before save
2nd image : after saving formats to some default config by vs code
I am getting lint errors after saving the file(right side). Even after fixing it and then saving again goes back to the error state.
How do we make our vs…

Hussam Khatib
- 600
- 6
- 17
0
votes
1 answer
Why use "eslint-plugin-prettier" over "eslint-config-prettier"
Both eslint-config-prettier and eslint-plugin-prettier are popular packages for integrating ESLint with Prettier.
However, after reading Docs of both of them I understood that both would do the job. But, if we use eslint-plugin-prettier, there will…

NeNaD
- 18,172
- 8
- 47
- 89
0
votes
1 answer
How to prevent converting 0.00 to 0.0 by prettier eslint automatically
I have a ComponentA and have a requirement to put value to 0.00 by default. However, the prettier eslint will convert it from 0.00 to 0.0 when formatting this component file. How do we prevent this?
export const ComponentA = ({ validate, isRequired…

Yang Wang
- 580
- 4
- 14
0
votes
0 answers
Eslint prettier issues
My eslint/prettier setup seems to be fixing things that it is not configured to fix, it’s doing a full replace of all semi-colons and single quotes but I don't believe that is included in our eslint/prettier setup. I have co-workers who run the same…

tfantina
- 788
- 11
- 37