From 948c09776e23e7dc38f155b268dcc002d59a957b Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Wed, 24 Jul 2024 19:59:22 +0900 Subject: [PATCH] chore: fix format.yml (#507) **What is the purpose of this pull request?** - [ ] Documentation update - [ ] Bug fix - [ ] New rule - [ ] Changes an existing rule - [ ] Add autofixing to a rule - [x] Other, please explain: This PR fixes the format.yml workflow. **What changes did you make? (Give an overview)** This PR fixes the format.yml workflow. Currently that workflow seems to always be ignored. --- .github/workflows/format.yml | 2 +- docs/rules/avoid-new.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 584d4ef4..0b3cffd8 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,7 +11,7 @@ concurrency: jobs: format: - if: github.repository == 'eslint-community/eslint-plugin/promise' + if: github.repository == 'eslint-community/eslint-plugin-promise' runs-on: ubuntu-latest steps: diff --git a/docs/rules/avoid-new.md b/docs/rules/avoid-new.md index 81004ea9..9e360628 100644 --- a/docs/rules/avoid-new.md +++ b/docs/rules/avoid-new.md @@ -23,7 +23,7 @@ Examples of **incorrect** code for this rule: function promisifiedFn(arg) { return new Promise((resolve, reject) => { callbackStyleFn(arg, (error, result) => - error ? reject(error) : resolve(result) + error ? reject(error) : resolve(result), ) }) }