Skip to content

Commit c761791

Browse files
committed
fix: support latest textlint
1 parent 3c9eb6f commit c761791

File tree

6 files changed

+2890
-2045
lines changed

6 files changed

+2890
-2045
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

.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: [12, 14, 16]
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v2
13+
- name: setup Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: Install
18+
run: yarn install
19+
- name: Test
20+
run: yarn test

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# textlint-rule-ja-no-mixed-period [![Build Status](https://travis-ci.org/textlint-ja/textlint-rule-ja-no-mixed-period.svg?branch=master)](https://travis-ci.org/textlint-ja/textlint-rule-ja-no-mixed-period) [![Gitter](https://badges.gitter.im/textlint-ja/textlint-ja.svg)](https://gitter.im/textlint-ja/textlint-ja?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
1+
# textlint-rule-ja-no-mixed-period [![Actions Status: test](https://github.com/textlint-ja/textlint-rule-ja-no-mixed-period/workflows/test/badge.svg)](https://github.com/textlint-ja/textlint-rule-ja-no-mixed-period/actions?query=workflow%3A"test")
22

33

44
文末の句点(。)の統一 OR 抜けをチェックするtextlintルール

package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,32 @@
2626
"build": "textlint-scripts build",
2727
"watch": "textlint-scripts build --watch",
2828
"prepublish": "npm run --if-present build",
29-
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\""
29+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
30+
"prepare": "git config --local core.hooksPath .githooks"
3031
},
3132
"keywords": [
3233
"textlint",
3334
"textlintrule"
3435
],
3536
"devDependencies": {
36-
"husky": "^1.1.2",
37-
"lint-staged": "^7.3.0",
38-
"prettier": "^1.8.1",
39-
"textlint-plugin-review": "^0.3.3",
40-
"textlint-scripts": "^2.1.0"
37+
"lint-staged": "^13.1.0",
38+
"prettier": "^2.8.1",
39+
"textlint-plugin-review": "^0.4.1",
40+
"textlint-scripts": "^12.2.4"
4141
},
4242
"dependencies": {
4343
"check-ends-with-period": "^1.0.1",
44-
"textlint-rule-helper": "^2.0.0"
44+
"textlint-rule-helper": "^2.2.3"
4545
},
4646
"prettier": {
4747
"singleQuote": false,
4848
"printWidth": 120,
49-
"tabWidth": 4
50-
},
51-
"husky": {
52-
"hooks": {
53-
"precommit": "lint-staged"
54-
}
49+
"tabWidth": 4,
50+
"trailingComma": "none"
5551
},
5652
"lint-staged": {
5753
"*.{js,jsx,ts,tsx,css}": [
58-
"prettier --write",
59-
"git add"
54+
"prettier --write"
6055
]
6156
}
6257
}

0 commit comments

Comments
 (0)