Skip to content

Commit

Permalink
Merge branch 'main' into eslint-plugin-promise
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jul 13, 2024
2 parents 58d17e8 + ee9f0a3 commit 04ec47c
Show file tree
Hide file tree
Showing 46 changed files with 817 additions and 321 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 20
- 18
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install --force
- run: npm test
- uses: codecov/codecov-action@v1
if: matrix.node-version == 14
with:
fail_ci_if_error: true
# - uses: codecov/codecov-action@v1
# if: matrix.node-version == 14
# with:
# fail_ci_if_error: true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@ node_modules
yarn.lock
!test/fixtures/project/node_modules
test/fixtures/project/node_modules/.cache
!test/fixtures/typescript/extends-module/node_modules
test/fixtures/typescript/extends-module/node_modules/.cache
!test/fixtures/typescript/extends-tsconfig-bases/node_modules
test/fixtures/typescript/extends-tsconfig-bases/node_modules/.cache
!test/fixtures/typescript/extends-array/node_modules
test/fixtures/typescript/extends-array/node_modules/.cache
.nyc_output
coverage
3 changes: 2 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
/* eslint-disable unicorn/prefer-top-level-await -- TODO: Use top-level await */
import process from 'node:process';
import getStdin from 'get-stdin';
import meow from 'meow';
Expand Down Expand Up @@ -149,7 +150,7 @@ if (process.env.GITHUB_ACTIONS && !options.fix && !options.reporter) {

const log = async report => {
const reporter = options.reporter || process.env.GITHUB_ACTIONS ? await xo.getFormatter(options.reporter || 'compact') : formatterPretty;
process.stdout.write(reporter(report.results));
process.stdout.write(reporter(report.results, {rulesMeta: report.rulesMeta}));
process.exitCode = report.errorCount === 0 ? 0 : 1;
};

Expand Down
Loading

0 comments on commit 04ec47c

Please sign in to comment.