prettier
Here are 1,759 public repositories matching this topic...
Versions:
prettier-eslintversion: 9.0.1nodeversion:10.16npm(oryarn) version: 1.13
Have you followed the debugging tips?
Yes
Relevant code or config
// setting.json
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"vetur.forma-
Updated
May 13, 2020 - JavaScript
-
I'm submitting a ...
[x] feature request -
Summary
tslint has a language service plugin so that tslint runs within the language service and shows linter failures in your editor as red squiggly underlines, the same as type errors.
https://www.npmjs.com/package/tslint-language-service
I'll make a PR at some point; just logging here for the time being.
-
Updated
May 16, 2020 - JavaScript
You can use eslint with CRA without ejecting!
I've updated my fork's installation steps for CRA - you can take them & update yours too.
TL;DR:
- Run
npx install-peerdeps eslint-config-sarpik --dev --yarn - Crack open your
package.jsonand- replace
"extends": "react-app"with"extends": "sarpik"
1
- replace
Error in HTML tags
This problem was found when creating the .Vue file. The project was created using Nuxt & TS. No idea how to fix this. Please help.
I'm a beginner in vue and prettier
package.json
"scripts": {
"dev": "nuxt-ts",
"build": "nuxt-ts build",
"generate": "nuxt-ts generate",
"start": "nuxt-ts start",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
I started using spotless in a maven java project for the first time. I am getting an exception indicating that there are unused imports. I can strip down the file to be as simple as
package example;
public interface Test {
}
There are no imports at all, but still there is the removeUnusedImports error.
Full Stack trace:
[spotless-stacktrace.txt](https://github.com/diffplug/s
-
Updated
May 28, 2020 - PHP
-
Updated
May 25, 2020 - JavaScript
Input
Person
.select('people.id, people.name, comments.text')
.joins(:comments)
.where('comments.created_at > ?', 1.week.ago)Current output
Person.select('people.id, people.name, comments.text').joins(:comments).where(
'comments.created_at > ?', 1.week.ago
)Expected output
Person
.select('people.id, people.name, comment-
Updated
May 30, 2020 - JavaScript
-
Updated
May 22, 2020 - TypeScript
When I was using only ESLint Atom plugin `linter-eslin
-
Updated
Apr 30, 2020 - JavaScript
Thinking it might be kind of annoying to have those in there? Maybe should just have an examples folder instead? Not sure.
When you kickstart a project with Gatsby or CRA you actually see a demo page in a clean and simple but nice looking layout. When you start React SSR Setup after cloning the repo it just looks plain and ugly. Maybe it's time to provide a layout that's a bit nicer than the current one.
Write unit tests
Write unit tests for all the available commands.
-
mevn init(@anooppoommen ) -
mevn codesplit -
mevn generate -
mevn add -
mevn serve -
mevn dockerize -
mevn deploy -
mevn info
Source:
public LoggingConfiguration(@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectMapper mapper)
throws JsonProcessingException {
// ...
}Formatted with prettier 0.4.0:
public LoggingConfiguration(
@Value("${Microsoft Edge should probably work out of the box since it's Chromium based, but we should make sure that it's officially supported.
Command:
$ prettier-eslint 'src/**/*.{ts,tsx}' --write
Executing this command throws an exception!
but when I use the full path, Like this:
$ prettier-eslint '/Users/cuijianwei/WebstormProjects/testproject/hasaki-cli-demo/gen-demo/src/**/*.{ts,tsx}' --write
no error is reported, but I want to support relative paths
When I use version 6.6.0 of
-
Updated
May 25, 2020 - Python
-
Updated
May 30, 2020 - JavaScript
-
Updated
May 29, 2020 - JavaScript
-
Updated
Apr 20, 2020 - Vue
Improve this page
Add a description, image, and links to the prettier topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the prettier topic, visit your repo's landing page and select "manage topics."
Hi,
I'm looking for something like .prettierignore but on a global level, i don't want to copy that file to every new directory i make just to ignore 1 file extension which isn't supported anyway.
AFAIK this isn't supported right?
BTW the extension in this case is EJS which prettier thinks is JS and some other stuff so the best way really is to ignore .ejs as a whole.