Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [prettier-eslint]

The tag has no usage guidance.

prettier-eslint
195 votes
2 answers
154k views

ESLint couldn't find the config "prettier" to extend from

I am trying to format my code using eslint but when I run npm run lint -f I get this output: Oops! Something went wrong! :( ESLint: 6.8.0. ESLint couldn't find the config "prettier&...
Reynier Rivero's user avatar
60 votes
4 answers
64k views

ESLint: Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): 'jsx, flow, typescript' (2:9)

I am trying to use ESLint in WebStrom, but it doesn't work and displays an error: ESLint: Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): 'jsx, flow, ...
skull Kim's user avatar
  • 637
34 votes
1 answer
53k views

Code style issues found in the above file(s). Forgot to run Prettier?

I have this problem when I try to check style with prettier --check Code style issues found in the above file(s). Forgot to run Prettier?
user avatar
25 votes
9 answers
36k views

Cannot find module '@typescript-eslint/parser' when using Prettier Eslint

I'm getting the following error from Prettier Eslint Output on VSCode when saving the file. Error: Cannot find module '@typescript-eslint/parser' Require stack: - c:\Users\vtnor\.vscode\extensions\...
Vítor Norton's user avatar
21 votes
2 answers
22k views

Parsing error: Unexpected token prettier/prettier caused by "<!DOCTYPE html>"

I have this vue app which I create using vue cli and the version I use is vue2 (with eslint and prettier). I could run npm run serve and load my page. But in Visual Studio Code, I notice this error: { ...
Steve's user avatar
  • 4,123
17 votes
2 answers
7k views

Prettier: Run for only the changed lines of the file

I have a legacy codebase without eslint/prettier. I want to introduce formatting on pre-commit hooks. Lint staged will let you run prettier for only changed files. Is it possible to only run the ...
sreejith's user avatar
  • 253
15 votes
2 answers
27k views

How to configure prettier to check all files with a specific extension

I have installed prettier via yarn add prettier I would like prettier to only format typescript code (I am developing AWS CDK project, there is no src folder by convention & there could be ...
user842225's user avatar
  • 5,901
15 votes
2 answers
5k views

How to print ESLint progress as it runs, but not everything at once when all files are processed?

When running ESLint, nothing is print out until the whole process is done. How can I see the progress as it processed different files, instead of waiting until everything is done?
Cupid Chan's user avatar
15 votes
5 answers
28k views

ESLint rule conflicts with Prettier rule

I am totally new to VSCode and this is my first setting. I know that this is a very common problem but I couldn't find a suitable solution for it. This is my understanding so far. Please correct me if ...
Reza's user avatar
  • 3,773
14 votes
1 answer
7k views

Where can I find .eslintrc in CRA?

When using npx create-react-app appname, the react-scripts package which is installed includes an eslint dependency with "a minimal set of rules that find common mistakes." I want to use prettier and ...
dotDone's user avatar
  • 143
11 votes
1 answer
18k 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 ...
KJ Ang's user avatar
  • 488
10 votes
4 answers
6k views

Delete `(` eslint (prettier/prettier)

I have a conflict of rules. When I include parentheses around multiline JSX, the prettier reports a error Delete `(` eslint (prettier/prettier). But if I remove the parentheses I have another eslint ...
Eduardo Dallmann's user avatar
9 votes
1 answer
14k views

Failed to load config "prettier" to extend from

I am using Prettier as a formatter, so I configured eslint-plugin-prettier. I did everything from this guide but when I try to run ng lint I get this error: An unhandled exception occurred: Failed to ...
NeNaD's user avatar
  • 19.8k
8 votes
1 answer
3k views

ESLint `no-confusing-arrow` "--fix" formatting conflict on save, with Prettier?

There seem to be a few rules where my config letting system know to use ESLint doesn't always work. I have "auto format" on save enabled in VSCode. For example this has an ESLint error of ...
Phil Lucks's user avatar
  • 3,596
8 votes
0 answers
1k views

Is there a way of running Prettier faster?

I'm using the latest versions of these packages: ESLint: 8.11.0 Prettier: 2.6.0 eslint-plugin-prettier: 4.0.0 eslint-config-prettier: 8.5.0 Rule Time (ms) Relative prettier/prettier 156074.280 98.4%...
Oswaldo's user avatar
  • 3,376

15 30 50 per page
1
2 3 4 5
10