From 60bec525c4ee0a33a17111054ff2b394d42ad022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Mon, 7 Feb 2022 14:37:55 +0100 Subject: [PATCH] Define indentation for json and yaml files yaml files cannot be indented with tabs, so we at least can explicitly define how many spaces should be used. --- .editorconfig | 5 ++++- .github/dependabot.yml | 20 +++++++++---------- package.json | 44 ++++++++++++++++++++++-------------------- 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/.editorconfig b/.editorconfig index dad231fb..c33fe3ad 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,5 +4,8 @@ root = true end_of_line = lf insert_final_newline = true -[*.{js,ts,vue,html}] +[*.{js,ts,vue,html,json}] indent_style = tab + +[*.{yml,yaml}] +indent_size = 4 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a519575a..5d3fa04c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,12 +1,12 @@ version: 2 updates: -- package-ecosystem: github-actions - directory: "/" - schedule: - interval: monthly - open-pull-requests-limit: 10 -- package-ecosystem: npm - directory: "/" - schedule: - interval: monthly - open-pull-requests-limit: 15 + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 10 + - package-ecosystem: npm + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 15 diff --git a/package.json b/package.json index 2e4da888..00ccb648 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,25 @@ { - "name": "new-lexeme-special-page", - "private": true, - "version": "0.0.1", - "description": "Form for the upcoming revival of the NewLexeme special page on Wikidata", - "main": "main.ts", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/wmde/new-lexeme-special-page.git" - }, - "keywords": [ - "Wikidata" - ], - "author": "The Wikidata team", - "license": "GPL-2.0-or-later", - "bugs": { - "url": "https://phabricator.wikimedia.org/project/board/5674/" - }, - "homepage": "https://github.com/wmde/new-lexeme-special-page#readme" + "name": "new-lexeme-special-page", + "private": true, + "version": "0.0.1", + "description": "Form for the upcoming revival of the NewLexeme special page on Wikidata", + "main": "main.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky install", + "fix": "prettier --write '**/*.{json,yml,yaml}'" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/wmde/new-lexeme-special-page.git" + }, + "keywords": [ + "Wikidata" + ], + "author": "The Wikidata team", + "license": "GPL-2.0-or-later", + "bugs": { + "url": "https://phabricator.wikimedia.org/project/board/5674/" + }, + "homepage": "https://github.com/wmde/new-lexeme-special-page#readme" }