From 4759e534a0b5c7b5ea669f066512d6d7bcb027ef Mon Sep 17 00:00:00 2001 From: pengYYY Date: Mon, 20 Dec 2021 10:44:35 +0800 Subject: [PATCH] chore: prettier igonre update --- .eslintignore | 1 + .github/workflows/pull-request.yml | 3 +++ .prettierrc.js | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index 4d7f6e3..66eb01a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,3 +11,4 @@ script/test/cypress _site temp* static/ +!.prettierrc.js \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5cb64b4..59e2a03 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,6 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' - run: npm install shell: bash - run: npm run lint diff --git a/.prettierrc.js b/.prettierrc.js index 5e92232..3c58064 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,5 +1,5 @@ module.exports = { - // 一行最多 120 字符 + // 一行最多 120 字符.. printWidth: 120, // 使用 2 个空格缩进 tabWidth: 2,