Skip to content

Commit e4ae69c

Browse files
authored
Use TypeScript && Use locator (#2)
* CI: use GitHub Actions * refactor: migrate to TypeScript * feat: use locator * Update README * CI: add .github/release.yml * Update package.json * chore: remove match-index
1 parent fbd878f commit e4ae69c

File tree

10 files changed

+5269
-46
lines changed

10 files changed

+5269
-46
lines changed

.github/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- 'Type: Meta'
5+
- 'Type: Question'
6+
- 'Type: Release'
7+
8+
categories:
9+
- title: Security Fixes
10+
labels: ['Type: Security']
11+
- title: Breaking Changes
12+
labels: ['Type: Breaking Change']
13+
- title: Features
14+
labels: ['Type: Feature']
15+
- title: Bug Fixes
16+
labels: ['Type: Bug']
17+
- title: Documentation
18+
labels: ['Type: Documentation']
19+
- title: Refactoring
20+
labels: ['Type: Refactoring']
21+
- title: Testing
22+
labels: ['Type: Testing']
23+
- title: Maintenance
24+
labels: ['Type: Maintenance']
25+
- title: CI
26+
labels: ['Type: CI']
27+
- title: Dependency Updates
28+
labels: ['Type: Dependencies', "dependencies"]
29+
- title: Other Changes
30+
labels: ['*']

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: "Test on Node.js ${{ matrix.node-version }}"
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node-version: [14, 16, 18]
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v3
13+
- name: setup Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: Install
18+
run: npm install
19+
- name: Test
20+
run: npm test

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# textlint-rule-no-hankaku-kana [![Build Status](https://travis-ci.org/textlint-ja/textlint-rule-no-hankaku-kana.svg?branch=master)](https://travis-ci.org/textlint-ja/textlint-rule-no-hankaku-kana)
1+
# textlint-rule-no-hankaku-kana [![Actions Status: test](https://github.com/textlint-ja/textlint-rule-no-hankaku-kana/workflows/test/badge.svg)](https://github.com/textlint-ja/textlint-rule-no-hankaku-kana/actions?query=workflow%3A"test")
22

33
textlint rule that disallow to use 半角カタカナ.
44

@@ -8,8 +8,8 @@ textlint rule that disallow to use 半角カタカナ.
88
99
半角カナとしては以下を対象としています。
1010

11-
- Halfwidth CJK punctuation(U+FF61〜FF64)
12-
- Halfwidth Katakana variants(U+FF65〜FF9F)
11+
- Half-width CJK punctuation(U+FF61〜FF64)
12+
- Half-width Katakana variants(U+FF65〜FF9F)
1313

1414
## Install
1515

@@ -49,7 +49,7 @@ See [Releases page](https://github.com/textlint-ja/textlint-rule-no-hankaku-kana
4949

5050
Install devDependencies and Run `npm test`:
5151

52-
npm i -d && npm test
52+
npm test
5353

5454
## Contributing
5555

0 commit comments

Comments
 (0)