Questions tagged [prettier-eslint]
140 questions
2
votes
0 answers
Error: Failed to load plugin 'prettier' declared in '.eslintrc': Cannot find module 'eslint-plugin-prettier'
Im currently setting up a new project and am getting that weird prettier error each time im trying to render...
.eslintrc file:
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6":…
user18472307
2
votes
0 answers
How to split long attributes on multiple lines using prettier?
I used vue, eslint and prettier, and for longer html class="..." attributes prettier was splitting it into several lines:
Now prettier just puts it in a single line and does not split long classes anymore:
It's not efficient when working with…

რომეო ხაზალია
- 21
- 1
- 2
2
votes
2 answers
Expected a string, got object gatsby-plugin-prettier-eslint Gatsby
I am trying to learn Gatsby and I included prettier-eslint plugin with a common configuration. You can see my configuration, the files, etc
When I try to add a css file I get this error:

AndresSp
- 176
- 3
- 16
2
votes
1 answer
Disable eslint disable overrides?
Is there a way to disable use of eslint disable overrides?
For example, block the use of /* eslint disable-next-line */, etc so that a specific rule is enforced always without exception

cobbdb
- 623
- 1
- 5
- 7
2
votes
1 answer
brackets space inside not found Prettier
My Bracket Spacing is enabled to insert space between my vestments within { param }, but when saved to format it removes {param} the spaces from my parameter. I use the prttier.

Marlon
- 25
- 1
- 5
2
votes
1 answer
Apply ESLint / Prettier to selected lines only
I'm working with WebStorm and there is only two possibilities to use ESLint :
Apply ESLint to file
Apply ESLint to a line
Isn't there a possibility to apply ESLint to a selection of multiple lines ?

Drea Zener
- 323
- 1
- 2
- 7
2
votes
4 answers
Update VSCOD Getting Error loading workspace folders
After upgrade every time I open VS Code I get a Error loading workspace folders and Even All the extension were not working
go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- builtin ibm.com/cloudbroker/order/...]: exit…

Anupam Somani
- 224
- 1
- 7
- 17
2
votes
1 answer
How can I solve the prettier/prettier problem
I'm using nuxtjs, and I installed eslint on my project, and upon using npm run dev, I get a bombardment of errors. How can I fix this:

Utitofon Udoekong
- 31
- 1
- 1
- 2
2
votes
2 answers
Inconsistencies with Prettier
I have a Vue project, which is having some inconsistencies with its linting.
I'm using the latest version of VS Code.
For instance, this is a linting error I receive:
After saving the file, VS Code auto fixes so that the code looks is linted like…

testing495
- 212
- 2
- 12
2
votes
1 answer
add newline for each chaining statement in visual studio code
anyone knows what is setting to add newline on chaining statement for prettier extension at visual studio code? I have code as following in typescript
export function myfunction(myString: string) {
cy.get(myString).find('.aaa').click();
}
I want…

jacobcan118
- 7,797
- 12
- 50
- 95
1
vote
1 answer
Problem with disabling rule "lines-between-class-members" eslint
In my project (playwright + ts) I used a eslint to checking my code.
I have problem with one rule 'lines-between-class-members'.
I don't want to use it, so according to documentation in .eslintrc.json file I add 'off'
…

Marcin
- 97
- 7
1
vote
1 answer
"@typescript-eslint" recommends the Prettier for the stylistic issues, but has the Prettier same rules and options as ESLint?
From the @typescript-eslint documentation:
Suggested Usage - Prettier
Neither typescript-eslint nor ESLint core enable any
formatting-related rules in any recommended presets. However, some
third party plugin configurations may still enable that…

Takeshi Tokugawa YD
- 670
- 5
- 40
- 124
1
vote
0 answers
Is it possible to add empty line between sibling elements in VSCode using Prettier?
Desired behaviour =>
Before formatting
After formatting

Luka Akhalbedashvili
- 127
- 2
- 3
1
vote
1 answer
prettier configuration is conflicting with eslint
Our project in company uses .js files and eslint is used for formatting. now we are transforming our app slowly to use .ts and .tsx files so I enabled prettier formatting in .ts and .tsx files only but before we use prettier we configured special…

Nagween Jaffer
- 180
- 3
- 13
1
vote
0 answers
configure prettier to check only .ts and .tsx files
I have installed prettier via
yarn add prettier
I would like prettier to only format typescript code. in other words, I would like prettier to check all files in my project that has extension *.ts and *.tsx and ignore the rest of the files cuz I…

Nagween Jaffer
- 180
- 3
- 13