From 93afcc2242eeabb8ee9d12b45ce3c9f417e20212 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Mon, 17 Jul 2023 17:30:04 -0700 Subject: [PATCH] Lock prettier --- .github/workflows/ci.yaml | 8 ++++++++ package-lock.json | 18 +++++++++++++++++- package.json | 5 +++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3d79d0e..4151137 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -66,6 +66,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v3.5.3 + - name: Install Node.js toolchain + uses: actions/setup-node@v3.6.0 + with: + node-version: 18 + + - name: Install toolchain + run: npm ci + - name: Lint and check formatting with prettier run: npx prettier --check '**/*' diff --git a/package-lock.json b/package-lock.json index 5575a83..eb5f566 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,8 @@ "eta": "^2.2.0", "highlight.js": "^11.8.0", "marked": "^5.0.4", - "marked-highlight": "^2.0.1" + "marked-highlight": "^2.0.1", + "prettier": "^3.0.0" } }, "node_modules/@artichokeruby/logo": { @@ -509,6 +510,21 @@ "peerDependencies": { "marked": "^4 || ^5" } + }, + "node_modules/prettier": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz", + "integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } } } } diff --git a/package.json b/package.json index 4b03715..33e1bdb 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "eta": "^2.2.0", "highlight.js": "^11.8.0", "marked": "^5.0.4", - "marked-highlight": "^2.0.1" + "marked-highlight": "^2.0.1", + "prettier": "^3.0.0" }, "eslintConfig": { "env": { @@ -49,7 +50,7 @@ "clean": "rm -rf dist", "dev:debug": "npx concurrently \"npm:serve\" \"npm:watch:debug\"", "dev:release": "npx concurrently \"npm:serve\" \"npm:watch:release\"", - "fmt": "npx prettier --write \"**/*\"", + "fmt": "prettier --write \"**/*\"", "lint": "npx eslint . --ext .js,.jsx,.mjs,.ts,.tsx", "lint:fix": "npx eslint . --ext .js,.jsx,.mjs,.ts,.tsx --fix", "release:markdown_link_check": "find . -name '*.md' -and -not -path '*/node_modules/*' | sort | xargs -n1 npx markdown-link-check --config .github/markdown-link-check.json",