From 3cc68c51e33525d5a1f8165cfcd5a117c28e5503 Mon Sep 17 00:00:00 2001 From: Lukas Juhrich Date: Wed, 20 Sep 2023 11:32:28 +0200 Subject: [PATCH] set up prettier --- .prettierignore | 6 ++++++ .prettierrc | 11 +++++++++++ package.json | 20 ++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .prettierignore create mode 100644 .prettierrc create mode 100644 package.json diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..1cf1a2ea --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +**/*.min.* +/sipa/static/js/*.js +!agdsn.js +/sipa/static/css/*.css +!style.css +/sipa/templates/base.html diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..ea80df52 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "plugins": ["prettier-plugin-jinja-template"], + "overrides": [ + { + "files": ["*.html"], + "options": { + "parser": "jinja-template" + } + } + ] +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..246920ce --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "sipa", + "version": "1.1.0", + "description": "AG DSN website", + "repository": { + "type": "git", + "url": "git+https://github.com/agdsn/sipa.git" + }, + "author": "AG DSN authors", + "license": "MIT", + "bugs": { + "url": "https://github.com/agdsn/sipa/issues" + }, + "homepage": "https://github.com/agdsn/sipa#readme", + "devDependencies": { + "eslint": "^8.35.0", + "prettier": "^3.0.3", + "prettier-plugin-jinja-template": "^1.1.0" + } +}