Skip to content

Commit

Permalink
Move to TS && use latest dependencies && support latest textlint (#2)
Browse files Browse the repository at this point in the history
* refactor: Move to TS && use latest dependencies && support latest textlint

* chore: add packageManager

* Add .github/release.yml

* test: fix test
  • Loading branch information
azu authored Feb 13, 2023
1 parent 5b0496f commit 335f032
Show file tree
Hide file tree
Showing 11 changed files with 5,649 additions and 134 deletions.
30 changes: 30 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
changelog:
exclude:
labels:
- 'Type: Meta'
- 'Type: Question'
- 'Type: Release'

categories:
- title: Security Fixes
labels: ['Type: Security']
- title: Breaking Changes
labels: ['Type: Breaking Change']
- title: Features
labels: ['Type: Feature']
- title: Bug Fixes
labels: ['Type: Bug']
- title: Documentation
labels: ['Type: Documentation']
- title: Refactoring
labels: ['Type: Refactoring']
- title: Testing
labels: ['Type: Testing']
- title: Maintenance
labels: ['Type: Maintenance']
- title: CI
labels: ['Type: CI']
- title: Dependency Updates
labels: ['Type: Dependencies', "dependencies"]
- title: Other Changes
labels: ['*']
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test
on: [push, pull_request]
jobs:
test:
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Test
run: npm test
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

textlint rule that limit maximum length of **First** sentence of the section.

Related: [textlint-rule-sentence-length](https://github.com/azu/textlint-rule-sentence-length "textlint-rule-sentence-length")
Related: [textlint-rule-sentence-length](https://github.com/textlint-rule/textlint-rule-sentence-length "textlint-rule-sentence-length")

**OK**:

Expand Down Expand Up @@ -71,7 +71,7 @@ textlint --rule first-sentence-length README.md

## Related rule

- [textlint-rule-sentence-length](https://github.com/azu/textlint-rule-sentence-length "textlint-rule-sentence-length")
- [textlint-rule-sentence-length](https://github.com/textlint-rule/textlint-rule-sentence-length "textlint-rule-sentence-length")
- lint each sentence length.

## Reference
Expand All @@ -84,7 +84,7 @@ textlint --rule first-sentence-length README.md

## Changelog

See [Releases page](https://github.com/azu/textlint-rule-first-sentence-length/releases).
See [Releases page](https://github.com/textlint-rule/textlint-rule-first-sentence-length/releases).

## Running tests

Expand All @@ -96,7 +96,7 @@ Install devDependencies and Run `npm test`:

Pull requests and stars are always welcome.

For bugs and feature requests, [please create an issue](https://github.com/azu/textlint-rule-first-sentence-length/issues).
For bugs and feature requests, [please create an issue](https://github.com/textlint-rule/textlint-rule-first-sentence-length/issues).

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
Expand Down
Loading

0 comments on commit 335f032

Please sign in to comment.