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" + } +}