Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fix: follow prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
oti committed May 20, 2022
1 parent 81451ad commit 9041a31
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 45 deletions.
28 changes: 14 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: '10:00'
timezone: Asia/Tokyo
open-pull-requests-limit: 10
reviewers:
- haribote
- isoden
- NaokiMatsuda
- oti
allow:
- dependency-type: direct
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
time: '10:00'
timezone: Asia/Tokyo
open-pull-requests-limit: 10
reviewers:
- haribote
- isoden
- NaokiMatsuda
- oti
allow:
- dependency-type: direct
24 changes: 12 additions & 12 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: npm install, lint, type-check, and test
run: |
npm ci
npm run lint
npx tsc --noEmit
npm test -- --ci
env:
CI: true
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: npm install, lint, type-check, and test
run: |
npm ci
npm run lint
npx tsc --noEmit
npm test -- --ci
env:
CI: true
7 changes: 3 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:

jobs:
update_draft_release:

runs-on: ubuntu-latest

steps:
- uses: toolmantim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: toolmantim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json'
}
}
tsConfig: 'tsconfig.json',
},
},
}
16 changes: 8 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ export default {
{
file: './dist/index.js',
format: 'umd',
name: 'MathUtils'
name: 'MathUtils',
},
{
file: './dist/index.mjs',
format: 'es'
}
format: 'es',
},
],
plugins: [
progress(),
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'es2015',
moduleResolution: 'node'
moduleResolution: 'node',
},
exclude: ['__tests__']
}
exclude: ['__tests__'],
},
}),
commonjs(),
filesize()
]
filesize(),
],
}
2 changes: 1 addition & 1 deletion src/hiraganaToZenkakuKatakana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @param str 変換対象文字列
*/
export function hiraganaToZenkakuKatakana(str: string): string {
return str.replace(/[\u3041-\u3096]/g, match => {
return str.replace(/[\u3041-\u3096]/g, (match) => {
const char = match.charCodeAt(0) + 0x60
return String.fromCharCode(char)
})
Expand Down
2 changes: 1 addition & 1 deletion src/zenkakuAlphaNumSymbolToHankaku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export function zenkakuAlphaNumSymbolToHankaku(str: string): string {
return (
str
.replace(/[!-~]/g, match => {
.replace(/[!-~]/g, (match) => {
const char = match.charCodeAt(0) - 0xfee0
return String.fromCharCode(char)
})
Expand Down
2 changes: 1 addition & 1 deletion src/zenkakuKatakanaToHiragana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @param str 変換対象文字列
*/
export function zenkakuKatakanaToHiragana(str: string): string {
return str.replace(/[\u30a1-\u30f6]/g, match => {
return str.replace(/[\u30a1-\u30f6]/g, (match) => {
const char = match.charCodeAt(0) - 0x60
return String.fromCharCode(char)
})
Expand Down

0 comments on commit 9041a31

Please sign in to comment.