diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32f0b7fd..199bfb7a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,4 +29,7 @@ jobs: run: yarn - name: Lint - run: yarn lint \ No newline at end of file + run: yarn lint + + - name: Check Formatting + run: yarn prettier --check . diff --git a/.prettierignore b/.prettierignore index d89325b6..373e7967 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,4 @@ -**/types.ts \ No newline at end of file +**/types.ts +**/dist_electron +**/dummy/*.json +**/fixtures/countryInfo.json \ No newline at end of file diff --git a/package.json b/package.json index 78d192bc..4d13e7d5 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "script:profile": "scripts/profile.sh", "test": "scripts/test.sh", "uitest": "node uitest/index.mjs | tap-spec", - "lint": "eslint . --ext ts,vue" + "lint": "eslint . --ext ts,vue", + "format": "prettier --write ." }, "dependencies": { "@codemirror/autocomplete": "^6.4.2", diff --git a/uitest/index.mjs b/uitest/index.mjs index 22742740..0f291361 100644 --- a/uitest/index.mjs +++ b/uitest/index.mjs @@ -10,7 +10,7 @@ const appSourcePath = path.join(root, 'dist_electron', 'build', 'main.js'); (async function run() { const electronApp = await _electron.launch({ args: [appSourcePath] }); const window = await electronApp.firstWindow(); - window.setDefaultTimeout(10_000); + window.setDefaultTimeout(60_000); test('load app', async (t) => { t.equal(await window.title(), 'Frappe Books', 'title matches');