Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lchzh3473 committed Nov 27, 2023
1 parent 65bbebc commit aff0224
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ dist-ssr
*.sln
*.sw?

# lock files
# Lock files
package-lock.json
yarn.lock
pnpm-lock.yaml

# Custom
test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sim-phi/extends",
"version": "0.3.0",
"version": "0.3.1",
"description": "Third-party chart format conversion functions for sim-phi.",
"type": "module",
"main": "dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/pec/rpe2json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function pushLineEvent(ls: LineEventPecDelta[], le: LineEventRPE2) {
}
function toSpeedEvent(le: LineEventRPE2[]) {
const result = [];
if (!le.length || le[0].startTime > 0) result.push({ time: 0, value: 0 });
for (const i of le) {
const { startTime, endTime, start, end } = i;
result.push({ time: startTime, value: start });
Expand Down
2 changes: 1 addition & 1 deletion tools/eslint-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
'@stylistic/array-element-newline': ['error', 'consistent'],
'@stylistic/arrow-parens': ['error', 'as-needed'],
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/function-call-argument-newline': ['error', 'never'],
'@stylistic/function-call-argument-newline': ['error', 'consistent'],
'@stylistic/indent': ['error', 2, { SwitchCase: 1 }],
'@stylistic/lines-around-comment': ['error', { beforeBlockComment: false }],
'@stylistic/lines-between-class-members': ['error', 'never'],
Expand Down

0 comments on commit aff0224

Please sign in to comment.