Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Eslint Config Prettier | 4,759 | 46,197 | 120,428 | 2 months ago | 71 | August 05, 2023 | 1 | mit | JavaScript | |
Turns off all rules that are unnecessary or might conflict with Prettier. | ||||||||||
Prettier Eslint | 3,850 | 4,634 | 4,049 | 3 days ago | 98 | May 26, 2022 | 11 | mit | JavaScript | |
Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles: | ||||||||||
Eslint Plugin Prettier | 2,962 | 46,491 | 101,511 | 24 days ago | 35 | July 11, 2023 | 14 | mit | JavaScript | |
ESLint plugin for Prettier formatting | ||||||||||
Prettier Plugin Sort Imports | 2,399 | 1,447 | 3 days ago | 34 | July 21, 2023 | 64 | apache-2.0 | TypeScript | ||
A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order. | ||||||||||
Plugin Php | 1,638 | 50 | 69 | 6 days ago | 58 | August 18, 2023 | 83 | mit | PHP | |
Prettier PHP Plugin | ||||||||||
Plugin Ruby | 1,420 | 16 | 27 | 13 days ago | 54 | July 14, 2023 | mit | JavaScript | ||
Prettier Ruby Plugin | ||||||||||
Prettier Java | 959 | 4 | 256 | 19 days ago | 35 | May 25, 2022 | 39 | apache-2.0 | Java | |
Prettier Java Plugin | ||||||||||
Prettier Standard | 819 | 933 | 1,239 | 2 years ago | 65 | July 08, 2020 | 16 | mit | JavaScript | |
Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠) | ||||||||||
Prettier Plugin Organize Imports | 704 | 452 | 2 months ago | 21 | September 02, 2022 | 4 | mit | JavaScript | ||
Make Prettier organize your imports using the TypeScript language service API. | ||||||||||
Prettier Plugin Solidity | 685 | 75 | 308 | 9 days ago | 80 | July 15, 2022 | 15 | mit | Solidity | |
A Prettier plugin for automatically formatting your Solidity code. |
Prettier is an opinionated code formatter. This plugin integrates prettier-plugin-ux
into Prettier, thus providing you with a universal interface to code formatting. dealing with .ux
files via Prettier API, It can provide a common style guide for a project and team, and can help identify potential problems with the code. Using it to write QuickApp will greatly improve development efficiency and happiness.
yarn add --dev --exact prettier prettier-plugin-ux
prettier --write "**/*.ux"
# or
npx prettier --write "**/*.ux"
You can add a configuration similar to the following in the scripts
of package.json. You can use one-click landscaping (yarn prettier
) for your fast application code. This includes css, less, sass, etc., which can also be used to beautify. Markdown and so on, you can see in the opinionated-code-formatter that prettier
has built-in support for multiple languages.
"prettier": "prettier --write 'src/**/*.js' 'src/**/*.ux'",
In addition, you can also inject onchange dependencies, which use the glob
mode to monitor files and run commands when adding, changing, or deleting anything. If you add a configuration similar to the following in the scripts
of package.json, run the yarn prettier-watch
command during development to beautify the code after saving, which will definitely improve your development efficiency and experience.
"prettier-watch": "onchange '**/*.md' 'src/**/*.js' 'src/**/*.ux' -- prettier --write {{changed}}"
Prettier
ships with a handful of customizable format options, usable in both the CLI
and API
. You can configure it yourself in package.json according to your own habits. Specific options and instructions can be found in Options | Prettier.
"prettier": {
"singleQuote": true,
"semi": false,
"printWidth": 120,
"proseWrap": "never"
},
export default {
onInit () {
},
onShow () {
APP_STATISTICS.page_show(this)
}
}
<style lang="less">
.page-wrapper{flex-direction: column;
width:6 * @size-factor;
}
</style>
export default {
onInit() {},
onShow() {
APP_STATISTICS.page_show(this)
}
}
<style lang="less">
.page-wrapper {
flex-direction: column;
width: 6 * @size-factor;
}
</style>
Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
The use and configuration, there are detailed descriptions in the Prettier documentation, of course, you can also refer to this - dedicated to building a more elegant rapid application development scaffolding template: quickapp-boilerplate-template.
Copyright (c) 2018-present, nicejade