diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..22969a1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +indent_style = tab +indent_size = tab + +[LICENSE] +indent_style = space + +[*.{markdown,md}] +trim_trailing_whitespace = false +indent_style = space +indent_size = 2 + +[*.{cff,yaml,yml}] +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e2d65ed --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index 747d42e..29fa2b5 100644 --- a/.gitignore +++ b/.gitignore @@ -300,4 +300,3 @@ TSWLatexianTemp* # option is specified. Footnotes are the stored in a file with suffix Notes.bib. # Uncomment the next line to have this generated file ignored. #*Notes.bib - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..db2d662 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v3.0.0-alpha.6" + hooks: + - id: prettier + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: "2.7.1" + hooks: + - id: editorconfig-checker + alias: ec diff --git a/README.md b/README.md index 52ab429..078d74c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # kirja -Ajatus miten kirjaprojektin voisi toteuttaa \ No newline at end of file +Ajatus miten kirjaprojektin voisi toteuttaa