Skip to content
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
52 changes: 9 additions & 43 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"import"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -30,29 +31,6 @@
"properties": "always"
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"valid-jsdoc": [
"error",
{
"requireReturn": false,
"preferType": {
"String": "string",
"Object": "object",
"Number": "number",
"Function": "function",
"Void": "void"
}
}
],
"quotes": [
"error",
"single",
Expand All @@ -71,12 +49,6 @@
}
}
],
"no-magic-numbers": [
"error",
{
"ignoreArrayIndexes": true
}
],
"eqeqeq": "error",
"block-scoped-var": "error",
"complexity": [
Expand All @@ -85,7 +57,6 @@
"maximum": 20
}
],
"curly": "error",
"default-case": "error",
"dot-location": [
"error",
Expand All @@ -102,16 +73,6 @@
"after": true
}
],
"id-length": [
"error",
{
"min": 2,
"properties": "never",
"exceptions": [
"$"
]
}
],
"indent": [
"error",
2,
Expand Down Expand Up @@ -144,6 +105,11 @@
],
"semi": [
"error"
]
],
"sort-imports": 0,
"import/order": [2, {
"groups": ["type", "builtin", "external", "internal", "parent", "sibling", "index", "object"],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}]
}
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/github-action-log-helper",
"version": "0.2.0",
"version": "0.2.1",
"description": "Logging helpers for GitHub Actions.",
"keywords": [
"github",
Expand Down Expand Up @@ -48,13 +48,14 @@
"@commitlint/config-conventional": "^16.2.1",
"@rollup/plugin-typescript": "^8.3.2",
"@sindresorhus/tsconfig": "^2.0.0",
"@technote-space/github-action-test-helper": "^0.9.1",
"@types/node": "^17.0.24",
"@technote-space/github-action-test-helper": "^0.9.2",
"@types/node": "^17.0.25",
"@types/sprintf-js": "^1.1.2",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"c8": "^7.11.0",
"eslint": "^8.13.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.8",
"pinst": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/logger.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable no-magic-numbers */
import { beforeEach, describe, expect, it } from 'vitest';
import {
spyOnStdout,
stdoutCalledWith,
} from '@technote-space/github-action-test-helper';
import { beforeEach, describe, expect, it } from 'vitest';
import { Logger } from '../src';

describe('Logger', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { sprintf } from 'sprintf-js';
import { info, debug, error, warning, startGroup, endGroup } from '@actions/core';
import { sprintf } from 'sprintf-js';

const COLOR_MAP = {
'black': 0,
Expand Down
Loading