Skip to content

Commit

Permalink
chore: add .editorconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Oct 10, 2024
1 parent 40b95e7 commit 1535d2d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 30 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.{js,jsx,cjs,mjs,ts,tsx}]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
52 changes: 26 additions & 26 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Publish Any Commit
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Publish Any Commit
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { now } from './utils';
* them.
*/
export default class Bench extends EventTarget {
/*
/**
* @private the task map
*/
_tasks: Map<string, Task> = new Map();
Expand Down
6 changes: 3 additions & 3 deletions src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ export default class Task extends EventTarget {
bench: Bench;

/**
* task name
* Task name
*/
name: string;

fn: Fn;

/*
* the number of times the task
* The number of times the task
* function has been executed
*/
runs = 0;

/**
* the result object
* The result object
*/
result?: TaskResult;

Expand Down

0 comments on commit 1535d2d

Please sign in to comment.