Skip to content

Commit

Permalink
Define indentation for json and yaml files
Browse files Browse the repository at this point in the history
yaml files cannot be indented with tabs, so we at least can explicitly
define how many spaces should be used.
  • Loading branch information
micgro42 committed Feb 7, 2022
1 parent 3a65df2 commit 60bec52
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 10 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
44 changes: 23 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 60bec52

Please sign in to comment.