Skip to content

Commit e2e3b67

Browse files
authored
Chore/deps prettier v3 3 (#4320)
* chore: deps - prettier v3 * style: run prettier v3 * chore: switch to default prettier * style: run prettier v3 - apply default * chore: update npm task to match all files locally as well
1 parent f161a0d commit e2e3b67

File tree

258 files changed

+5689
-5659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+5689
-5659
lines changed

.github/ISSUE_TEMPLATE/BUG_REPORT.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: '🐛 Bug Report'
1+
name: "🐛 Bug Report"
22
description: Create a new ticket for a bug.
3-
title: 'fix: <title>'
4-
labels: ['bug']
3+
title: "fix: <title>"
4+
labels: ["bug"]
55
body:
66
- type: markdown
77
attributes:
@@ -10,7 +10,7 @@ body:
1010
- type: textarea
1111
id: steps-to-reproduce
1212
attributes:
13-
label: 'Steps to Reproduce'
13+
label: "Steps to Reproduce"
1414
description: Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant
1515
value: |
1616
1. First step
@@ -21,22 +21,22 @@ body:
2121
- type: textarea
2222
id: current-behavior
2323
attributes:
24-
label: 'Current Behavior'
24+
label: "Current Behavior"
2525
description: Tell us what happens instead of the expected behavior
2626
validations:
2727
required: false
2828
- type: textarea
2929
id: expected-behavior
3030
attributes:
31-
label: 'Expected Behavior'
31+
label: "Expected Behavior"
3232
description: Tell us what should happen
3333
placeholder: Short and explicit description of your incident...
3434
validations:
3535
required: true
3636
- type: checkboxes
3737
id: affected-packages
3838
attributes:
39-
label: 'Affected packages'
39+
label: "Affected packages"
4040
options:
4141
- label: cli
4242
- label: core
@@ -45,14 +45,14 @@ body:
4545
- type: textarea
4646
id: possible-solution
4747
attributes:
48-
label: 'Possible Solution'
48+
label: "Possible Solution"
4949
description: Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change
5050
validations:
5151
required: false
5252
- type: textarea
5353
id: context
5454
attributes:
55-
label: 'Context'
55+
label: "Context"
5656
description: |
5757
How has this issue affected you? What are you trying to accomplish?
5858
Providing context helps us come up with a solution that is most useful in the real world
@@ -61,21 +61,21 @@ body:
6161
- type: input
6262
id: commitlint-version
6363
attributes:
64-
label: 'commitlint --version'
65-
placeholder: '@commitlint/[email protected]'
64+
label: "commitlint --version"
65+
placeholder: "@commitlint/[email protected]"
6666
validations:
6767
required: true
6868
- type: input
6969
id: git-version
7070
attributes:
71-
label: 'git --version'
71+
label: "git --version"
7272
placeholder: vx.x.x
7373
validations:
7474
required: true
7575
- type: input
7676
id: node-version
7777
attributes:
78-
label: 'node --version'
78+
label: "node --version"
7979
placeholder: vx.x.x
8080
validations:
8181
required: true

.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: '✨ Feature Request'
1+
name: "✨ Feature Request"
22
description: Create a new ticket for a new feature request
3-
title: 'feat: <title>'
4-
labels: ['feature']
3+
title: "feat: <title>"
4+
labels: ["feature"]
55
body:
66
- type: markdown
77
attributes:
@@ -10,22 +10,22 @@ body:
1010
- type: textarea
1111
id: expected-behavior
1212
attributes:
13-
label: 'Expected Behavior'
13+
label: "Expected Behavior"
1414
description: Tell us how it should work
1515
placeholder: Short and explicit description of your request...
1616
validations:
1717
required: true
1818
- type: textarea
1919
id: current-behavior
2020
attributes:
21-
label: 'Current Behavior'
21+
label: "Current Behavior"
2222
description: Explain the difference from current behavior
2323
validations:
2424
required: false
2525
- type: checkboxes
2626
id: affected-packages
2727
attributes:
28-
label: 'Affected packages'
28+
label: "Affected packages"
2929
options:
3030
- label: cli
3131
- label: core
@@ -34,14 +34,14 @@ body:
3434
- type: textarea
3535
id: possible-solution
3636
attributes:
37-
label: 'Possible Solution'
37+
label: "Possible Solution"
3838
description: Ideas how to implement the addition or change
3939
validations:
4040
required: false
4141
- type: textarea
4242
id: context
4343
attributes:
44-
label: 'Context'
44+
label: "Context"
4545
description: |
4646
How has this issue affected you? What are you trying to accomplish?
4747
Providing context helps us come up with a solution that is most useful in the real world

.github/workflows/CI.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: CI
33
on:
44
push:
55
branches:
6-
- '**'
6+
- "**"
77
pull_request:
88
types: [opened, synchronize]
99

1010
workflow_dispatch:
1111

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

1616
jobs:
1717
build:
@@ -62,7 +62,7 @@ jobs:
6262
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
6363
runs-on: ubuntu-24.04
6464
container:
65-
image: 'ubuntu:24.04'
65+
image: "ubuntu:24.04"
6666
steps:
6767
- uses: actions/checkout@v4
6868

.github/workflows/container-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: container build
22
on:
33
push:
44
tags:
5-
- '**'
5+
- "**"
66
schedule:
7-
- cron: '0 0 * * *'
7+
- cron: "0 0 * * *"
88
pull_request:
99
paths:
10-
- 'Dockerfile.ci'
10+
- "Dockerfile.ci"
1111
jobs:
1212
container-build:
1313
if: github.repository == 'conventional-changelog/commitlint'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export {default} from '@commitlint/config-angular';
1+
export { default } from "@commitlint/config-angular";
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export {default} from '@commitlint/config-lerna-scopes';
1+
export { default } from "@commitlint/config-lerna-scopes";
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export {default} from '@commitlint/config-nx-scopes';
1+
export { default } from "@commitlint/config-nx-scopes";
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export {default} from '@commitlint/config-patternplate';
1+
export { default } from "@commitlint/config-patternplate";

@alias/commitlint/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
import '@commitlint/cli/cli.js';
2+
import "@commitlint/cli/cli.js";

@alias/commitlint/cli.test.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import {test, expect} from 'vitest';
2-
import {createRequire} from 'node:module';
3-
import path from 'node:path';
4-
import {fileURLToPath} from 'node:url';
1+
import { test, expect } from "vitest";
2+
import { createRequire } from "node:module";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
55

6-
import {x} from 'tinyexec';
7-
import {fix} from '@commitlint/test';
6+
import { x } from "tinyexec";
7+
import { fix } from "@commitlint/test";
88

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

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

13-
const bin = require.resolve('./cli.js');
13+
const bin = require.resolve("./cli.js");
1414

1515
function cli(args, options, input) {
1616
const result = x(bin, args, {
@@ -28,15 +28,15 @@ function cli(args, options, input) {
2828

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

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

37-
test('should produce success output with --verbose flag', async () => {
38-
const cwd = await fixBootstrap('fixtures/default');
39-
const actual = await cli(['--verbose'], {cwd}, 'type: bar');
40-
expect(actual.stdout).toContain('0 problems, 0 warnings');
41-
expect(actual.stderr).toEqual('');
37+
test("should produce success output with --verbose flag", async () => {
38+
const cwd = await fixBootstrap("fixtures/default");
39+
const actual = await cli(["--verbose"], { cwd }, "type: bar");
40+
expect(actual.stdout).toContain("0 problems, 0 warnings");
41+
expect(actual.stderr).toEqual("");
4242
});

@commitlint/cli/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
import './lib/cli.js';
2+
import "./lib/cli.js";

@commitlint/cli/src/cli-error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CliError extends Error {
1515
constructor(
1616
message: string,
1717
type: string,
18-
error_code = ExitCode.CommitlintErrorDefault
18+
error_code = ExitCode.CommitlintErrorDefault,
1919
) {
2020
super(message);
2121

0 commit comments

Comments
 (0)