Skip to content

Commit acd0daf

Browse files
committed
chore(deps): update dependencies
1 parent 645b16d commit acd0daf

File tree

6 files changed

+3131
-1952
lines changed

6 files changed

+3131
-1952
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]
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/textlint-rule-no-invalid-control-character [![Build Status](https://travis-ci.org/textlint-rule/textlint-rule-no-invalid-control-character.svg?branch=master)](https://travis-ci.org/textlint-rule/textlint-rule-no-invalid-control-character)
1+
# @textlint-rule/textlint-rule-no-invalid-control-character [![Actions Status: test](https://github.com/textlint-rule/textlint-rule-no-invalid-control-character/workflows/test/badge.svg)](https://github.com/textlint-rule/textlint-rule-no-invalid-control-character/actions?query=workflow%3A"test")
22

33
textlint rule check invalid control character in the document.
44

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
"main": "lib/textlint-rule-no-invalid-control-character.js",
1717
"scripts": {
1818
"test": "textlint-scripts test",
19-
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
20-
"precommit": "lint-staged",
21-
"postcommit": "git reset",
2219
"prepublish": "npm run --if-present build",
2320
"build": "textlint-scripts build",
24-
"watch": "textlint-scripts build --watch"
21+
"watch": "textlint-scripts build --watch",
22+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
23+
"prepare": "git config --local core.hooksPath .githooks"
2524
},
2625
"keywords": [
2726
"textlintrule"
@@ -35,19 +34,19 @@
3534
},
3635
"homepage": "https://github.com/textlint-rule/textlint-rule-no-invalid-control-character",
3736
"devDependencies": {
38-
"husky": "^0.14.3",
39-
"lint-staged": "^6.0.0",
40-
"prettier": "^1.9.2",
41-
"textlint-scripts": "^1.4.1"
37+
"lint-staged": "^10.5.4",
38+
"prettier": "^2.2.1",
39+
"textlint-scripts": "^3.0.0"
4240
},
4341
"prettier": {
42+
"singleQuote": false,
4443
"printWidth": 120,
45-
"tabWidth": 4
44+
"tabWidth": 4,
45+
"trailingComma": "none"
4646
},
4747
"lint-staged": {
4848
"*.{js,jsx,ts,tsx,css}": [
49-
"prettier --write",
50-
"git add"
49+
"prettier --write"
5150
]
5251
},
5352
"dependencies": {

0 commit comments

Comments
 (0)