Improve skel directory content
This commit is contained in:
parent
970fcea107
commit
a5f68041a8
6 changed files with 70 additions and 0 deletions
15
skel/.editorconfig
Normal file
15
skel/.editorconfig
Normal file
|
@ -0,0 +1,15 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
|
||||
[*.{yaml,yml,html,tpl}]
|
||||
indent_size = 2
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
6
skel/.gitignore
vendored
6
skel/.gitignore
vendored
|
@ -13,3 +13,9 @@
|
|||
/.less*
|
||||
/.ssh
|
||||
/.phplint-cache
|
||||
/.config
|
||||
/.local
|
||||
/.cache
|
||||
/.profile
|
||||
|
||||
/config.local.yml
|
||||
|
|
27
skel/.pre-commit-config.yaml
Normal file
27
skel/.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Pre-commit hooks to run tests and ensure code is cleaned.
|
||||
# See https://pre-commit.com for more information
|
||||
---
|
||||
repos:
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.2
|
||||
hooks:
|
||||
- id: codespell
|
||||
exclude: static/lib/|locales/.*\.js$|\.pot?$
|
||||
# args: ["--write-changes"]
|
||||
exclude_types: [csv, json]
|
||||
- repo: https://github.com/digitalpulp/pre-commit-php.git
|
||||
rev: 1.4.0
|
||||
hooks:
|
||||
- id: php-stan
|
||||
files: \.(php)$
|
||||
args: ["--configuration=phpstan.neon"]
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.7.1
|
||||
hooks:
|
||||
- id: prettier
|
||||
args: ["--print-width", "100"]
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.32.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
args: ["-c", ".yamllint.yml"]
|
3
skel/.prettierignore
Normal file
3
skel/.prettierignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
/static/lib/*
|
||||
/locales/*
|
||||
/composer.json
|
6
skel/.yamllint.yml
Normal file
6
skel/.yamllint.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
max: 100
|
13
skel/phpstan.neon
Normal file
13
skel/phpstan.neon
Normal file
|
@ -0,0 +1,13 @@
|
|||
parameters:
|
||||
level: 5
|
||||
paths:
|
||||
- bin
|
||||
- includes
|
||||
- src
|
||||
- public_html
|
||||
universalObjectCratesClasses:
|
||||
- EesyPHP\HookEvent
|
||||
- EesyPHP\UrlRequest
|
||||
- EesyPHP\Auth\User
|
||||
bootstrapFiles:
|
||||
- includes/core.php
|
Loading…
Add table
Add a link
Reference in a new issue