Skip to content

Commit

Permalink
chore(lint): run prettier on all files (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Nov 8, 2023
1 parent 5236da1 commit 02b15a7
Show file tree
Hide file tree
Showing 46 changed files with 203 additions and 534 deletions.
18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/workflows/publish-parsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: publish parsers
run: |
cd packages/ynap-bank2ynab-converter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate-config-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Validate
uses: rinchsan/renovate-config-validator@1ea1e8514f6a33fdd71c40b0a5fa3512b9e7b936 # v0.0.12
with:
pattern: "renovate.json"
pattern: 'renovate.json'
1 change: 0 additions & 1 deletion .github/workflows/test-parsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ concurrency:
permissions:
packages: read


jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-bump-bank2ynab-converter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Check version bump for bank2ynab-converter"
name: 'Check version bump for bank2ynab-converter'

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-bump-parsers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Check version bump for parsers"
name: 'Check version bump for parsers'

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-bump-skip.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Skip version bump check"
name: 'Skip version bump check'

on:
pull_request:
Expand Down
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ repos:
rev: v4.5.0
hooks:
- id: end-of-file-fixer
# Removing one of the two newlines at the end of this file breaks parsing.
exclude: packages/ynap-parsers/src/de/1822direkt/test-data/umsaetze-12345678-25.03.2020_11_45.csv
- id: trailing-whitespace

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.51.0
# Explicitly not using the renovate upstream hook because for some reason installing it is
# excruciatingly slow (> 10 minutes in some cases)
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.1
hooks:
- id: renovate-config-validator
- id: check-renovate
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"devDependencies": {
"typescript": "5.2.2"
},
"workspaces": ["packages/*"]
"workspaces": [
"packages/*"
]
}
2 changes: 1 addition & 1 deletion packages/ynap-bank2ynab-converter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ lib/
/*.js
/*.ts

bank2ynab.json
bank2ynab.json
2 changes: 1 addition & 1 deletion packages/ynap-bank2ynab-converter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envelope-zero/ynap-bank2ynab-converter",
"version": "1.14.40",
"version": "1.14.41",
"license": "MIT",
"author": {
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/ynap-parsers/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ module.exports = {
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: "jsdom"
testEnvironment: 'jsdom',
};
2 changes: 1 addition & 1 deletion packages/ynap-parsers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envelope-zero/ynap-parsers",
"version": "1.15.33",
"version": "1.15.34",
"description": "Parsers from various formats to YNAB CSV",
"main": "index.js",
"author": "Envelope Zero Team <[email protected]> (https://envelope-zero.org)",
Expand Down
10 changes: 5 additions & 5 deletions packages/ynap-parsers/src/at/ing/ing-austria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ export const ingAustriaParser: ParserFunction = async (file: File) => {
return [
{
data: (data as IngAustriaRow[])
.filter(r => r.Valutadatum && (r.Soll || r.Haben))
.map(r => ({
.filter((r) => r.Valutadatum && (r.Soll || r.Haben))
.map((r) => ({
Date: generateYnabDate(r.Valutadatum),
Payee: r.Text,
Memo: undefined,
Outflow: r.Soll != "0,00" ? parseNumber(r.Soll).toFixed(2) : undefined,
Inflow: r.Haben != "0,00" ? parseNumber(r.Haben).toFixed(2) : undefined,
Outflow: r.Soll != '0,00' ? parseNumber(r.Soll).toFixed(2) : undefined,
Inflow: r.Haben != '0,00' ? parseNumber(r.Haben).toFixed(2) : undefined,
})),
},
];
Expand Down Expand Up @@ -71,7 +71,7 @@ export const ingAustriaMatcher: MatcherFunction = async (file: File) => {
}

const keys = Object.keys(data[0]);
const missingKeys = requiredKeys.filter(k => !keys.includes(k));
const missingKeys = requiredKeys.filter((k) => !keys.includes(k));

if (missingKeys.length === 0) {
return true;
Expand Down
Loading

0 comments on commit 02b15a7

Please sign in to comment.