prettier
Here are 1,813 public repositories matching this topic...
-
Updated
Jun 13, 2020 - JavaScript
-
Updated
Jun 5, 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
Jun 17, 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
Jun 18, 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
Jun 15, 2020 - JavaScript
-
Updated
Jun 11, 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
Jun 2, 2020 - JavaScript
-
Updated
Jun 17, 2020 - JavaScript
-
Updated
Jun 6, 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."
Now that Prettier 2.0 has been released with its improved CLI, I think we should add a section do the docs showing a recommended example setup.
{}) .prettierrc.json to signify to edit