-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add some more stuff to the ecommerce template
- Loading branch information
1 parent
753494b
commit 4c20f16
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"project_name": "Ecommerce Project", | ||
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '-') }}", | ||
"description": "", | ||
"version": "0.0.1", | ||
"email": "[email protected]", | ||
"__prompts__": { | ||
"project_name": "Select the project name", | ||
"project_slug": "Local directory name", | ||
"description": "Write a short description of the project", | ||
"version": "SemVer compliant version name", | ||
"email": "Contact email address" | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
ecommerce-starter/{{cookiecutter.project_slug}}/.pre-commit-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/hadolint/hadolint | ||
rev: v2.12.1-beta | ||
hooks: | ||
- id: hadolint-docker | ||
name: lint Dockerfile | ||
|
||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v9.5.0 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
additional_dependencies: ["@commitlint/config-conventional"] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.3 | ||
hooks: | ||
- id: prettier | ||
name: check for non-standard formatting concerns | ||
additional_dependencies: | ||
- prettier@3 | ||
- "prettier-plugin-tailwindcss" | ||
- "@trivago/prettier-plugin-sort-imports" | ||
|
||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.49.0 | ||
hooks: | ||
- id: eslint | ||
name: check for linting errors and warnings | ||
files: \.[jt]sx?$ | ||
types: [file] | ||
additional_dependencies: | ||
- eslint@8 | ||
- eslint-config-prettier | ||
- "@typescript-eslint/eslint-plugin" | ||
- "@typescript-eslint/parser" | ||
- typescript |