mirror of
https://github.com/Mikaela/.github.git
synced 2024-11-22 10:59:28 +01:00
switch and run local prettier
This commit is contained in:
parent
2dc78601d7
commit
453a173004
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
@ -1,3 +1,5 @@
|
||||
# @format
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
|
2
.github/workflows/cff-validator.yml
vendored
2
.github/workflows/cff-validator.yml
vendored
@ -1,3 +1,5 @@
|
||||
# @format
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,8 @@
|
||||
!.github
|
||||
!.gitignore
|
||||
!.pre-commit-config.yaml
|
||||
!.prettierrc
|
||||
|
||||
# Other ignores
|
||||
node_modules
|
||||
pnpm-lock.yaml
|
||||
|
@ -1,8 +1,11 @@
|
||||
# @format
|
||||
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.ci for more information
|
||||
ci:
|
||||
# https://github.com/pre-commit-ci/issues/issues/83
|
||||
autoupdate_schedule: quarterly
|
||||
skip: [prettier]
|
||||
|
||||
default_language_version:
|
||||
python: pypy3
|
||||
@ -34,10 +37,12 @@ repos:
|
||||
- id: check-dependabot
|
||||
- id: check-github-workflows
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: "v4.0.0-alpha.8"
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||
language: system
|
||||
|
||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||
rev: "2.7.3"
|
||||
|
7
.prettierrc
Normal file
7
.prettierrc
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"insertPragma": true,
|
||||
"proseWrap": "always",
|
||||
"singleAttributePerLine": true,
|
||||
"plugins": ["prettier-plugin-sh"],
|
||||
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
# @format
|
||||
|
||||
cff-version: 1.2.0
|
||||
message: "If you use this, please cite it as below."
|
||||
authors:
|
||||
|
@ -1 +1,3 @@
|
||||
<!-- @format -->
|
||||
|
||||
Please refer to [aminda.eu/discuss#rules](https://aminda.eu/discuss.html#rules).
|
||||
|
@ -1,14 +1,16 @@
|
||||
<!-- @format -->
|
||||
|
||||
# Contributing
|
||||
|
||||
Contributions are welcomed assuming my repositories are the correct place
|
||||
for it (the target is my repository or a PR I have open to another repository).
|
||||
Contributions are welcomed assuming my repositories are the correct place for it
|
||||
(the target is my repository or a PR I have open to another repository).
|
||||
|
||||
Issues being assigned to me doesn't matter, I use that just as a tool for
|
||||
rediscovering them easily, http://github.com/issues?q=is:open%20assignee:Mikaela
|
||||
|
||||
I also accept PRs to repositories that are mirrors (if that is easier for you
|
||||
than opening at the original location) as patches are easy enough to export
|
||||
from GitHub or `git remote`s to use, the merge might just take a bit longer
|
||||
than opening at the original location) as patches are easy enough to export from
|
||||
GitHub or `git remote`s to use, the merge might just take a bit longer
|
||||
(including the time the mirror takes to update).
|
||||
|
||||
## General steps
|
||||
@ -16,9 +18,10 @@ from GitHub or `git remote`s to use, the merge might just take a bit longer
|
||||
1. In case [editorconfig](https://editorconfig.org/) isn't
|
||||
[natively supported by your editor of choice](https://editorconfig.org/#pre-installed),
|
||||
please consider [installing a plugin](https://editorconfig.org/#download).
|
||||
E.g. VS Cod{e,ium} users can `CTRL-P` and execute `ext install EditorConfig.EditorConfig`.
|
||||
2. If the repository in question has a `.pre-commit-config.yaml` file,
|
||||
please install [`pre-commit`](https://pre-commit.com/) and run
|
||||
`pre-commit install` in your local clone at least once.
|
||||
E.g. VS Cod{e,ium} users can `CTRL-P` and execute
|
||||
`ext install EditorConfig.EditorConfig`.
|
||||
2. If the repository in question has a `.pre-commit-config.yaml` file, please
|
||||
install [`pre-commit`](https://pre-commit.com/) and run `pre-commit install`
|
||||
in your local clone at least once.
|
||||
|
||||
- [![Packaging status of pre-commit](https://repology.org/badge/vertical-allrepos/python:pre-commit.svg)](https://repology.org/project/python:pre-commit/versions)
|
||||
|
@ -1,3 +1,5 @@
|
||||
# @format
|
||||
|
||||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
|
||||
# NOTE: If no protocol is specified, http:// is assumed.
|
||||
custom: ["https://liberapay.com/Mikaela", "https://revolut.me/aminda"]
|
||||
|
@ -1,3 +1,5 @@
|
||||
<!-- @format -->
|
||||
|
||||
GitHub community health files
|
||||
|
||||
- https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#creating-a-repository-for-default-files
|
||||
|
@ -1 +1,3 @@
|
||||
<!-- @format -->
|
||||
|
||||
Please see https://www.aminda.eu/.well-known/security.txt
|
||||
|
@ -1 +1,3 @@
|
||||
<!-- @format -->
|
||||
|
||||
Please see https://www.aminda.eu/discuss.html
|
||||
|
6
package.json
Normal file
6
package.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"prettier": "3.3.2",
|
||||
"prettier-plugin-sh": "0.14.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user