From d82481db7f8da7ad86e556bbf237556493789162 Mon Sep 17 00:00:00 2001 From: Max Metral Date: Sat, 7 Oct 2023 11:28:02 -0400 Subject: [PATCH] build(trunk): add trunk --- .trunk/.gitignore | 8 +++++++ .trunk/configs/.markdownlint.yaml | 10 +++++++++ .trunk/configs/.yamllint.yaml | 10 +++++++++ .trunk/trunk.yaml | 37 +++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 .trunk/.gitignore create mode 100644 .trunk/configs/.markdownlint.yaml create mode 100644 .trunk/configs/.yamllint.yaml create mode 100644 .trunk/trunk.yaml diff --git a/.trunk/.gitignore b/.trunk/.gitignore new file mode 100644 index 0000000..1e24652 --- /dev/null +++ b/.trunk/.gitignore @@ -0,0 +1,8 @@ +*out +*logs +*actions +*notifications +*tools +plugins +user_trunk.yaml +user.yaml diff --git a/.trunk/configs/.markdownlint.yaml b/.trunk/configs/.markdownlint.yaml new file mode 100644 index 0000000..fb94039 --- /dev/null +++ b/.trunk/configs/.markdownlint.yaml @@ -0,0 +1,10 @@ +# Autoformatter friendly markdownlint config (all formatting rules disabled) +default: true +blank_lines: false +bullet: false +html: false +indentation: false +line_length: false +spaces: false +url: false +whitespace: false diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 0000000..03deb40 --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -0,0 +1,10 @@ +rules: + quoted-strings: + required: only-when-needed + extra-allowed: ['{|}'] + empty-values: + forbid-in-block-mappings: true + forbid-in-flow-mappings: true + key-duplicates: {} + octal-values: + forbid-implicit-octal: true diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml new file mode 100644 index 0000000..cc084a8 --- /dev/null +++ b/.trunk/trunk.yaml @@ -0,0 +1,37 @@ +# This file controls the behavior of Trunk: https://docs.trunk.io/cli +# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml +version: 0.1 +cli: + version: 1.16.2 +plugins: + sources: + - id: trunk + ref: v1.2.5 + uri: https://github.com/trunk-io/plugins +runtimes: + enabled: + - node@18.12.1 + - python@3.10.8 +lint: + enabled: + - actionlint@1.6.26 + - checkov@2.5.6 + - eslint@8.50.0 + - git-diff-check + - markdownlint@0.37.0 + - osv-scanner@1.4.1 + - prettier@3.0.3 + - trivy@0.45.1 + - trufflehog@3.59.0 + - yamllint@1.32.0 + ignore: + - linters: [ALL] + paths: + - .yarn/** + - yarn.lock +actions: + enabled: + - trunk-announce + - trunk-check-pre-push + - trunk-fmt-pre-commit + - trunk-upgrade-available