https://github.com/halo-lab/prettier-config-halo-lab
Halo lab prettier config
https://github.com/halo-lab/prettier-config-halo-lab
config prettier prettier-config
Last synced: 6 months ago
JSON representation
Halo lab prettier config
- Host: GitHub
- URL: https://github.com/halo-lab/prettier-config-halo-lab
- Owner: Halo-Lab
- Created: 2020-12-08T17:53:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T07:52:11.000Z (almost 4 years ago)
- Last Synced: 2025-04-09T22:04:57.060Z (6 months ago)
- Topics: config, prettier, prettier-config
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Halo lab prettier config
## Installation
```bash
npm install --save-dev prettier prettier-config-halo-lab @trivago/prettier-plugin-sort-imports
```## Usage
In `package.json`:```json
{
"prettier": "prettier-config-halo-lab"
}
```## Details
Imports will be sorted in that order:
```
1 Those which imported from node_modules;
2 Imports which begins with "@/" and NOT ends with one of: .svg, .png, .jpg, .jpeg, .gif, .webp;
3 Imports which begins with "./" and NOT ends with one of: .scss, .css, .svg, .png, .jpg, .jpeg, .gif, .webp;
4 Imports which begins with any symbol AND ends with one of: .svg, .png, .jpg, .jpeg, .gif, .webp;
5 Imports which begins with "./" or "../" AND ends with ".css" or ".scss";
```
## Word from authorHave fun! ✌️