prettier-eslint Questions

9

Solved

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\...

1

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 m...
Tintoretto asked 29/1, 2024 at 5:36

2

Solved

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" to...
Punjabi asked 4/5, 2020 at 17:16

4

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, flo...

2

Solved

Note, I do not want semicolons used in my JS project. YouTube video I tried disabling it in the .eslintrc.cjs file, however the strange thing is that semi: 0 did not work to disable the warnings ov...
Heaps asked 27/6, 2022 at 23:22

2

Solved

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...
Crisp asked 14/11, 2020 at 14:34

1

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...
Copula asked 8/12, 2021 at 17:42

4

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 esli...
Geesey asked 1/2, 2021 at 19:41

2

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?
Orobanchaceous asked 23/1, 2022 at 13:52

5

Solved

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...
Bron asked 21/4, 2020 at 18:25

1

Is there an ESLint or Prettier rule that would disallow template literals without a placeholder? I would like to replace backticks in template literals without placeholder with standard quotation m...
Demagoguery asked 22/9, 2021 at 14:5

2

Solved

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 typ...
Nomadic asked 14/1, 2022 at 19:35

2

Solved

For the following react code I get the following error: When I run ESLint using the --fix flag on my code base, I get an error that reads: ESLint: A space is required before closing bracket(react/...
Epicycloid asked 20/4, 2020 at 8:22

0

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 15607...
Alexaalexander asked 18/3, 2022 at 15:22

1

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?
Retroflex asked 1/11, 2021 at 13:43

2

I am having an issue where prettier seems to break itself when trying to follow it's trailing comma rules. Here is a sample of what I'm seeing: My prettierrc.js file: module.exports = { semi: true...
Misunderstood asked 30/6, 2021 at 14:49

0

I just upgrade my app from prettier 1.19.1 to 2.5.1 with eslint-plugin-prettier. But I am facing massive changes inlinter. And I would like to have previous behavior on this rule: // prettier v1 co...
Multinational asked 18/1, 2022 at 17:40

0

This project was written by someone else, and I need to work on it from hereon. I thought that the first step should be to fix the formatting. Normally, I just use .prettierrc in my vscode, and a r...

1

Solved

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 ...
Hendry asked 26/11, 2021 at 14:39

2

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 pr...
Squarrose asked 15/10, 2020 at 1:16

1

Solved

some.JS.Code; //ignore this line from linting etc. ##Software will do some stuff here, but for JS it's an Error## hereGoesJs(); Is there a possibility to exlude a line from linting and formattin...
Strongbox asked 18/6, 2021 at 11:17

1

Solved

I set in my .eslintrc the rule "quote-props": [2, "always"]. When I do eslint --fixit will work properly. But I format my code with Prettier. Unfortunately Prettier has no alway...
Narthex asked 2/12, 2020 at 14:59

1

Solved

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 a...

1

Solved

There was trouble creating the ESLint CLIEngine. - 'basePath' should be an absolute path Trying to use eslint $ npx prettier-eslint **/*.js but getting: prettier-eslint [ERROR]: There was tr...
Reeder asked 6/2, 2020 at 21:9
1

© 2022 - 2025 — McMap. All rights reserved.