Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
shuta13 committed Apr 18, 2024
1 parent 6b846af commit c9223eb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
ignorePatterns: ["node_modules/*", "dist/*", "*.config.js", "__mocks__/src/*", ".eslintrc.js"],
ignorePatterns: [
"node_modules/*",
"dist/*",
"*.config.js",
"__mocks__/src/*",
".eslintrc.js",
"coverage/*",
"benchmark/*",
],
env: {
browser: true,
es6: true,
Expand Down
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,9 +24,10 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
)

var (
pkgVersion = ""
pkgVersion = ""
)

func main() {
os.Setenv("PKG_VERSION", pkgVersion)
os.Setenv("PKG_VERSION", pkgVersion)
cmd.Execute()
}
4 changes: 2 additions & 2 deletions src/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import (
)

func Error(msg error) {
PrintStack()
log.Fatalln(msg)
PrintStack()
log.Fatalln(msg)
}
4 changes: 2 additions & 2 deletions src/logger/print_stack.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package logger

import (
"runtime"
"log"
"log"
"runtime"
)

/** https://go.dev/play/p/DkGku2xlhSr */
Expand Down

0 comments on commit c9223eb

Please sign in to comment.