Skip to content

Commit a41e447

Browse files
committed
chore(deps): update dependencies & use esm
1 parent 741a372 commit a41e447

File tree

7 files changed

+1591
-1346
lines changed

7 files changed

+1591
-1346
lines changed

.github/workflows/test.yml

+20
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

-3
This file was deleted.

README.md

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

33
[textlint](https://github.com/textlint/textlint "textlint") rule for [ALEX](http://alexjs.com/ "ALEX").
44

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"alex"
3333
],
3434
"devDependencies": {
35-
"textlint-scripts": "^3.0.0"
35+
"textlint-scripts": "^12.0.1"
3636
},
3737
"dependencies": {
3838
"alex": "^9.1.0",

src/textlint-rule-alex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const defaultOptions = {
88
noBinary: false,
99
profanitySureness: 0
1010
};
11-
module.exports = function textlintRuleAlex(context, options = {}) {
11+
export default function textlintRuleAlex(context, options = {}) {
1212
const {Syntax, RuleError, report, getSource} = context;
1313
const helper = new RuleHelper(context);
1414
const opts = {...defaultOptions, ...options};

test/textlint-rule-alex-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// LICENSE : MIT
22
"use strict";
3-
var TextLintTester = require("textlint-tester");
3+
import TextLintTester from "textlint-tester";
44
// rules
5-
var rule = require("../src/textlint-rule-alex");
5+
import rule from "../src/textlint-rule-alex";
66
var tester = new TextLintTester();
77
// ruleName, rule, expected[]
88
tester.run("alex", rule, {

yarn.lock

+1,566-1,338
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)