mirror of
https://github.com/zkitter/configs.git
synced 2026-01-07 20:54:10 -05:00
🔧 Add prettier config
This commit is contained in:
14
packages/prettier/.prettierignore
Normal file
14
packages/prettier/.prettierignore
Normal file
@@ -0,0 +1,14 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
|
||||
# TS build dir
|
||||
build
|
||||
dist
|
||||
|
||||
# Jest
|
||||
coverage
|
||||
|
||||
# JetBrains IDE
|
||||
.idea
|
||||
19
packages/prettier/.prettierrc.yaml
Normal file
19
packages/prettier/.prettierrc.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
jsxSingleQuote: true
|
||||
parser: typescript
|
||||
semi: false
|
||||
singleQuote: true
|
||||
trailingComma: all
|
||||
overrides:
|
||||
- files: '*.ts'
|
||||
options:
|
||||
parser: typescript
|
||||
- files: ['*.yml', '*.yaml']
|
||||
options:
|
||||
parser: yaml
|
||||
- files: '*.json'
|
||||
options:
|
||||
parser: json
|
||||
trailingComma: none
|
||||
- files: '*.md'
|
||||
options:
|
||||
parser: markdown
|
||||
3
packages/prettier/README.md
Normal file
3
packages/prettier/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @r1oga/prettier
|
||||
## Installation
|
||||
`pnpm add -D @r1oga/prettier`
|
||||
5
packages/prettier/install.sh
Normal file
5
packages/prettier/install.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
pnpm add -D @r1oga/eslint
|
||||
echo '@r1oga/prettier' > .prettierrc.yaml
|
||||
cp node_modules/@r1oga/prettier/.prettierignore .prettierignore
|
||||
20
packages/prettier/package.json
Normal file
20
packages/prettier/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@r1oga/prettier",
|
||||
"version": "1.0.0",
|
||||
"description": "Share Prettier configuration",
|
||||
"main": ".prettierrc.yaml",
|
||||
"files": [
|
||||
".prettierrc.yaml",
|
||||
".prettierignore"
|
||||
],
|
||||
"keywords": [
|
||||
"prettier",
|
||||
"configuration",
|
||||
"standard"
|
||||
],
|
||||
"author": "r1oga",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"prettier": "^2.8.1"
|
||||
}
|
||||
}
|
||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -26,6 +26,12 @@ importers:
|
||||
eslint-plugin-promise: 6.1.1_eslint@8.29.0
|
||||
eslint-plugin-sort: 2.4.0_ha6vam6werchizxrnqvarmz2zu
|
||||
|
||||
packages/prettier:
|
||||
specifiers:
|
||||
prettier: ^2.8.1
|
||||
devDependencies:
|
||||
prettier: 2.8.1
|
||||
|
||||
packages:
|
||||
|
||||
/@eslint/eslintrc/1.3.3:
|
||||
@@ -1336,6 +1342,12 @@ packages:
|
||||
engines: {node: '>= 0.8.0'}
|
||||
dev: true
|
||||
|
||||
/prettier/2.8.1:
|
||||
resolution: {integrity: sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==}
|
||||
engines: {node: '>=10.13.0'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/punycode/2.1.1:
|
||||
resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
Reference in New Issue
Block a user