Skip to content

Chore/deps prettier v3 3 #4320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '🐛 Bug Report'
name: "🐛 Bug Report"
description: Create a new ticket for a bug.
title: 'fix: <title>'
labels: ['bug']
title: "fix: <title>"
labels: ["bug"]
body:
- type: markdown
attributes:
Expand All @@ -10,7 +10,7 @@ body:
- type: textarea
id: steps-to-reproduce
attributes:
label: 'Steps to Reproduce'
label: "Steps to Reproduce"
description: Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant
value: |
1. First step
Expand All @@ -21,22 +21,22 @@ body:
- type: textarea
id: current-behavior
attributes:
label: 'Current Behavior'
label: "Current Behavior"
description: Tell us what happens instead of the expected behavior
validations:
required: false
- type: textarea
id: expected-behavior
attributes:
label: 'Expected Behavior'
label: "Expected Behavior"
description: Tell us what should happen
placeholder: Short and explicit description of your incident...
validations:
required: true
- type: checkboxes
id: affected-packages
attributes:
label: 'Affected packages'
label: "Affected packages"
options:
- label: cli
- label: core
Expand All @@ -45,14 +45,14 @@ body:
- type: textarea
id: possible-solution
attributes:
label: 'Possible Solution'
label: "Possible Solution"
description: Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change
validations:
required: false
- type: textarea
id: context
attributes:
label: 'Context'
label: "Context"
description: |
How has this issue affected you? What are you trying to accomplish?
Providing context helps us come up with a solution that is most useful in the real world
Expand All @@ -61,21 +61,21 @@ body:
- type: input
id: commitlint-version
attributes:
label: 'commitlint --version'
placeholder: '@commitlint/[email protected]'
label: "commitlint --version"
placeholder: "@commitlint/[email protected]"
validations:
required: true
- type: input
id: git-version
attributes:
label: 'git --version'
label: "git --version"
placeholder: vx.x.x
validations:
required: true
- type: input
id: node-version
attributes:
label: 'node --version'
label: "node --version"
placeholder: vx.x.x
validations:
required: true
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '✨ Feature Request'
name: "✨ Feature Request"
description: Create a new ticket for a new feature request
title: 'feat: <title>'
labels: ['feature']
title: "feat: <title>"
labels: ["feature"]
body:
- type: markdown
attributes:
Expand All @@ -10,22 +10,22 @@ body:
- type: textarea
id: expected-behavior
attributes:
label: 'Expected Behavior'
label: "Expected Behavior"
description: Tell us how it should work
placeholder: Short and explicit description of your request...
validations:
required: true
- type: textarea
id: current-behavior
attributes:
label: 'Current Behavior'
label: "Current Behavior"
description: Explain the difference from current behavior
validations:
required: false
- type: checkboxes
id: affected-packages
attributes:
label: 'Affected packages'
label: "Affected packages"
options:
- label: cli
- label: core
Expand All @@ -34,14 +34,14 @@ body:
- type: textarea
id: possible-solution
attributes:
label: 'Possible Solution'
label: "Possible Solution"
description: Ideas how to implement the addition or change
validations:
required: false
- type: textarea
id: context
attributes:
label: 'Context'
label: "Context"
description: |
How has this issue affected you? What are you trying to accomplish?
Providing context helps us come up with a solution that is most useful in the real world
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: CI
on:
push:
branches:
- '**'
- "**"
pull_request:
types: [opened, synchronize]

workflow_dispatch:

# to execute once a day (more info see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule )
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
build:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
runs-on: ubuntu-24.04
container:
image: 'ubuntu:24.04'
image: "ubuntu:24.04"
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: container build
on:
push:
tags:
- '**'
- "**"
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
pull_request:
paths:
- 'Dockerfile.ci'
- "Dockerfile.ci"
jobs:
container-build:
if: github.repository == 'conventional-changelog/commitlint'
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint-config-angular/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@commitlint/config-angular';
export { default } from "@commitlint/config-angular";
2 changes: 1 addition & 1 deletion @alias/commitlint-config-lerna-scopes/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@commitlint/config-lerna-scopes';
export { default } from "@commitlint/config-lerna-scopes";
2 changes: 1 addition & 1 deletion @alias/commitlint-config-nx-scopes/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@commitlint/config-nx-scopes';
export { default } from "@commitlint/config-nx-scopes";
2 changes: 1 addition & 1 deletion @alias/commitlint-config-patternplate/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@commitlint/config-patternplate';
export { default } from "@commitlint/config-patternplate";
2 changes: 1 addition & 1 deletion @alias/commitlint/cli.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env node
import '@commitlint/cli/cli.js';
import "@commitlint/cli/cli.js";
34 changes: 17 additions & 17 deletions @alias/commitlint/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {test, expect} from 'vitest';
import {createRequire} from 'node:module';
import path from 'node:path';
import {fileURLToPath} from 'node:url';
import { test, expect } from "vitest";
import { createRequire } from "node:module";
import path from "node:path";
import { fileURLToPath } from "node:url";

import {x} from 'tinyexec';
import {fix} from '@commitlint/test';
import { x } from "tinyexec";
import { fix } from "@commitlint/test";

const require = createRequire(import.meta.url);

const __dirname = path.resolve(fileURLToPath(import.meta.url), '..');
const __dirname = path.resolve(fileURLToPath(import.meta.url), "..");

const bin = require.resolve('./cli.js');
const bin = require.resolve("./cli.js");

function cli(args, options, input) {
const result = x(bin, args, {
Expand All @@ -28,15 +28,15 @@ function cli(args, options, input) {

const fixBootstrap = (fixture) => fix.bootstrap(fixture, __dirname);

test('should reprint input from stdin', async () => {
const cwd = await fixBootstrap('fixtures/default');
const actual = await cli([], {cwd}, 'foo: bar');
expect(actual.stdout).toContain('foo: bar');
test("should reprint input from stdin", async () => {
const cwd = await fixBootstrap("fixtures/default");
const actual = await cli([], { cwd }, "foo: bar");
expect(actual.stdout).toContain("foo: bar");
});

test('should produce success output with --verbose flag', async () => {
const cwd = await fixBootstrap('fixtures/default');
const actual = await cli(['--verbose'], {cwd}, 'type: bar');
expect(actual.stdout).toContain('0 problems, 0 warnings');
expect(actual.stderr).toEqual('');
test("should produce success output with --verbose flag", async () => {
const cwd = await fixBootstrap("fixtures/default");
const actual = await cli(["--verbose"], { cwd }, "type: bar");
expect(actual.stdout).toContain("0 problems, 0 warnings");
expect(actual.stderr).toEqual("");
});
2 changes: 1 addition & 1 deletion @commitlint/cli/cli.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env node
import './lib/cli.js';
import "./lib/cli.js";
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CliError extends Error {
constructor(
message: string,
type: string,
error_code = ExitCode.CommitlintErrorDefault
error_code = ExitCode.CommitlintErrorDefault,
) {
super(message);

Expand Down
Loading
Loading