switch to central prettier config

This commit is contained in:
Aminda Suomalainen 2024-07-16 12:24:13 +03:00
parent 5d871bf3a4
commit 36112b191c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 111 additions and 50 deletions

4
.gitignore vendored
View File

@ -1,8 +1,4 @@
# I don't like coredumps in my git repos.
*core
# I don't this I need all the modules
node_modules/
# gdb logs aren't needed eihter
gdb.txt
# Kate does .kate-swp
*.*swp

View File

@ -8,7 +8,7 @@
# See https://pre-commit.ci for more information
ci:
autoupdate_schedule: quarterly
skip: [pnpm-install-dev, prettier, pylint]
skip: [prettier, pylint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
@ -74,15 +74,9 @@ repos:
verbose: true
language: system
types_or: [python, pyi]
- id: pnpm-install-dev
name: Install pnpm dev dependencies
entry: corepack pnpm install -D
language: system
always_run: true
pass_filenames: false
- id: prettier
name: prettier
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
entry: corepack pnpx prettier --cache --ignore-unknown --write
language: system
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python

View File

@ -1,12 +0,0 @@
{
"bracketSameLine": true,
"endOfLine": "auto",
"plugins": [
"@prettier/plugin-ruby",
"prettier-plugin-sh"
],
"proseWrap": "always",
"quoteProps": "consistent",
"requirePragma": false,
"singleAttributePerLine": true
}

View File

@ -1,9 +1,7 @@
{
"devDependencies": {
"@prettier/plugin-ruby": "4.0.4",
"mvdan-sh": "0.10.1",
"prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0"
"@aminda/global-prettier-config": "2024.28.4"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903",
"prettier": "@aminda/global-prettier-config"
}

127
pnpm-lock.yaml vendored
View File

@ -1,5 +1,3 @@
# @format
lockfileVersion: "9.0"
settings:
@ -9,20 +7,17 @@ settings:
importers:
.:
devDependencies:
"@prettier/plugin-ruby":
specifier: 4.0.4
version: 4.0.4(prettier@3.3.2)
mvdan-sh:
specifier: 0.10.1
version: 0.10.1
prettier:
specifier: 3.3.2
version: 3.3.2
prettier-plugin-sh:
specifier: 0.14.0
version: 0.14.0(prettier@3.3.2)
"@aminda/global-prettier-config":
specifier: 2024.28.4
version: 2024.28.4
packages:
"@aminda/global-prettier-config@2024.28.4":
resolution:
{
integrity: sha512-VjyTd8fFRnLgZRAMDRr9pm5hknnsVxpTCshvvE7RAiuH72hUzC82rm5vXDJjrhkedWJir2qZjmiC5Vo2LoR4tw==,
}
"@prettier/plugin-ruby@4.0.4":
resolution:
{
@ -31,12 +26,50 @@ packages:
peerDependencies:
prettier: ^3.0.0
"@prettier/plugin-xml@3.4.1":
resolution:
{
integrity: sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==,
}
peerDependencies:
prettier: ^3.0.0
"@taplo/core@0.1.1":
resolution:
{
integrity: sha512-BG/zLGf5wiNXGEVPvUAAX/4ilB3PwDUY2o0MV0y47mZbDZ9ad9UK/cIQsILat3bqbPJsALVbU6k3cskNZ3vAQg==,
}
"@taplo/lib@0.4.0-alpha.2":
resolution:
{
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
}
"@xml-tools/parser@1.0.11":
resolution:
{
integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==,
}
chevrotain@7.1.1:
resolution:
{
integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==,
}
mvdan-sh@0.10.1:
resolution:
{
integrity: sha512-kMbrH0EObaKmK3nVRKUIIya1dpASHIEusM13S4V1ViHFuxuNxCo+arxoa6j/dbV22YBGjl7UKJm9QQKJ2Crzhg==,
}
prettier-plugin-nginx@1.0.3:
resolution:
{
integrity: sha512-vV5q85s8XnV6NEgvz1gVLfZhmxAxY03MyOYj2ApBpjFkbs00lRsRkTmqO9L39ADuD18z1RRCcfZ3eVxKhI/nqg==,
}
prettier-plugin-sh@0.14.0:
resolution:
{
@ -46,14 +79,29 @@ packages:
peerDependencies:
prettier: ^3.0.3
prettier@3.3.2:
prettier-plugin-toml@2.0.1:
resolution:
{
integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==,
integrity: sha512-99z1YOkViECHtXQjGIigd3talI/ybUI1zB3yniAwUrlWBXupNXThB1hM6bwSMUEj2/+tomTlMtT98F5t4s8IWA==,
}
engines: { node: ">=16.0.0" }
peerDependencies:
prettier: ^3.0.3
prettier@3.3.3:
resolution:
{
integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==,
}
engines: { node: ">=14" }
hasBin: true
regexp-to-ast@0.5.0:
resolution:
{
integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==,
}
sh-syntax@0.4.2:
resolution:
{
@ -68,19 +116,56 @@ packages:
}
snapshots:
"@prettier/plugin-ruby@4.0.4(prettier@3.3.2)":
"@aminda/global-prettier-config@2024.28.4":
dependencies:
prettier: 3.3.2
"@prettier/plugin-ruby": 4.0.4(prettier@3.3.3)
"@prettier/plugin-xml": 3.4.1(prettier@3.3.3)
prettier: 3.3.3
prettier-plugin-nginx: 1.0.3
prettier-plugin-sh: 0.14.0(prettier@3.3.3)
prettier-plugin-toml: 2.0.1(prettier@3.3.3)
"@prettier/plugin-ruby@4.0.4(prettier@3.3.3)":
dependencies:
prettier: 3.3.3
"@prettier/plugin-xml@3.4.1(prettier@3.3.3)":
dependencies:
"@xml-tools/parser": 1.0.11
prettier: 3.3.3
"@taplo/core@0.1.1": {}
"@taplo/lib@0.4.0-alpha.2":
dependencies:
"@taplo/core": 0.1.1
"@xml-tools/parser@1.0.11":
dependencies:
chevrotain: 7.1.1
chevrotain@7.1.1:
dependencies:
regexp-to-ast: 0.5.0
mvdan-sh@0.10.1: {}
prettier-plugin-sh@0.14.0(prettier@3.3.2):
prettier-plugin-nginx@1.0.3: {}
prettier-plugin-sh@0.14.0(prettier@3.3.3):
dependencies:
mvdan-sh: 0.10.1
prettier: 3.3.2
prettier: 3.3.3
sh-syntax: 0.4.2
prettier@3.3.2: {}
prettier-plugin-toml@2.0.1(prettier@3.3.3):
dependencies:
"@taplo/lib": 0.4.0-alpha.2
prettier: 3.3.3
prettier@3.3.3: {}
regexp-to-ast@0.5.0: {}
sh-syntax@0.4.2:
dependencies: