138 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
222
views
how to use prettier recommended rules with eslint's defineConfig API?
I have a folder with this structure:
root
|- folderA
|- folderB
|- folderC
I want to apply two sets of rules to eslint to each folderA and folderB and completely skip folderC. so I have this:
export ...
0
votes
0
answers
47
views
prettier/prettier Replace single quote with double quote to remove escape character
How do I turn this off in prettier?
error Replace `'foo \'n bar'` with `"foo 'n bar"`
prettier/prettier
In my eslint.config.ts, I already have this line:
'prettier/prettier': ['error', { ...
0
votes
1
answer
189
views
How to Prevent Prettier from Breaking Angular Template Object Bindings?
I'm encountering a formatting issue between Prettier and Angular's template parser. Specifically, Prettier reformats my inline Angular template in a way that introduces an NG5002 parser error during ...
0
votes
0
answers
86
views
Eslint Plugin for Prettier Conflicting Rules
I'm using the eslint-plugin-prettier in a Next.js project.
This is what my eslint config looks like:
import { FlatCompat } from "@eslint/eslintrc";
import eslintPluginPrettierRecommended ...
0
votes
1
answer
159
views
Converting old eslint.json to flat eslint.js for custom eslint rules
Previously I got my projects configured this way by using the extend attribute:
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"...
0
votes
1
answer
1k
views
ESLint migration issue while converting extends to v9
I'm trying to convert my .eslintrc.cjs to eslint.config.js with migration of ESLint.
My current config file has
extends: ['eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@...
0
votes
0
answers
677
views
Why ESLint and Prettier stopped working in a VScode?
I have a Vite+React project and everything was working fine. I haven't opened it for a month and now when I do open it, I see an error like this in all the components. Also, Prettier doesn't fix or ...
1
vote
1
answer
146
views
Prettier rule to break all html elements inside a block the same way
I am using default NextJS eslint rules and have prettier activated in VS Code.
I am pretty sure this is a prettier configuration but basically when I am templating, I want all HTML elements inside a ...
1
vote
1
answer
2k
views
error message 'Delete `␍`eslintprettier/prettier' in nest js project
code prettier code
prettierrc
{
"singleQuote": true,
"trailingComma": "all"
}
eslintc.js
module.exports = {
parser: '@typescript-eslint/parser',
...
0
votes
1
answer
3k
views
Flat config file with configs from legacy eslintrc compat error
I am trying to get prettier, typescript, eslint with airbnb typescript syntax working with linting and auto formatting.
The minimal node package.json file.
{
"name": "typescript-...
31
votes
1
answer
53k
views
Problem when trying to add Prettier's Git Hook: husky install error `install command is deprecated`
node version: 20.11.0
pnpm version: 8.15.0
os: Windows
I was following the instructions in https://prettier.io/docs/en/install.html
I ran the second command pnpm exec husky install and
cmd gives me ...
-1
votes
1
answer
70
views
prettier extension not Working in VS_Code...?
i installed the pritter extension and it doesn't work not in any language like javaScript and not in the react js project...?
Every time when i select the prettier to formate the code it doesn't do ...
1
vote
1
answer
428
views
ESlint --config option not working and still uses the same root file config
I have this in my package.json
"scripts": {
"lint": "eslint --quiet .",
"lint:prcleancode": "eslint -c ./ci/.eslint-cleancode.json
The first ...
1
vote
0
answers
96
views
VSCode producing wrong ESLint Prettier error
After saving my .tsx file in VSCode, Eslint/Prettier changes the order of the Tailwind classes. However, when I run Eslint in my terminal, it shows this reordering as an error.
VSCode correct:
...
7
votes
3
answers
22k
views
Setting up Auto Format on Save easily in VS Code (Visual Studio Code) for Expo React-Native
Is there a quick guide / tutorial for how to easily set up auto-code-formatting, eslint/prettier, etc. in vscode? (Specifically for code formatting of React, React-Native projects).
Simply downloading ...