Skip to content

Commit b75303f

Browse files
authored
Update dependencies (#65)
* Update dependencies * Update dependencies * Remove console * Update textlint-util-to-string
1 parent 94bb727 commit b75303f

File tree

7 files changed

+3081
-24
lines changed

7 files changed

+3081
-24
lines changed

.babelrc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"presets": [
3-
"es2015"
4-
],
5-
"plugins": [
6-
"async-to-promises",
7-
"babel-plugin-espower"
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"node": 6
8+
}
9+
}
10+
]
811
]
912
}

.eslintrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"root": true,
3-
"parser": "babel-eslint",
4-
"extends": "airbnb/base"
3+
"extends": "eslint-config-airbnb-base",
4+
"rules": {
5+
"arrow-parens": ["error", "always"]
6+
}
57
}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- 5
4+
- 6
5+
- 7
56
notifications:
67
slack:
78
secure: "LrwvO3Y5g6G9vBTvERzz7q3z1bkN4X+UG5XnWz+PHKTzyTivFBKky9hFlHQuy/A1PbIyIdymq2swTb/SMqBKnHILOU/yc4L6sVw04fqglLwjPiQxu6cFG1zOEHc3hmVXG5Mch6jkpvU5J4TNS5QbE7qK7CEkVNA7ljmIIrzhWqVV7mdpWb6nKr56muHxsOTgzbw/5pyj5IIcXl2Vk7gaOzNHuMNonoBAo5z6bjREOHCGE6BTWapFS/ROVH4aW65jGe/Snq90Wvcsq9vGCWTuNDyMyYB5XFk0JnLs2PS88vp+ToWkYwEqJvcQEKBUQ2ZG6vvVnSnthI2JUFVhkGbw9izDRYyyTKaa8lm7DQkMc2G/dkKj7aVdM/KNca5S21nOmno9pKeXyasVaNRFaQXaSDS43nk6LI5LMCMDf1Kdi4NAqP/oNljAfId9WogNn4NNMhg7T6Zk+vvk0mNKXvetMWAQOQGDmXJpzN9TFtQTVvYrS3xldunpLEW0J7s9d+4CSp1M8BqcdJgek08gH3Vn6BwuN5xLIZdU+R9V/lACtIuGm/voJlvcUTLscxvSchiI3qdtCMtVY+Ay3UPbkieSiCTHsUEwpcENaYUqttPV3/DaY8fYrggNUb1IrbJtEuhmI8srK/XtqahgKzesAurAz51G4OLDdkdWDodE/DZS1q0="

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "textlint-rule-ginger",
33
"version": "2.0.1",
44
"description": "textlint rule to check your English grammar with Ginger Proofreading",
5+
"engines": {
6+
"node": ">=6"
7+
},
58
"main": "lib/ginger.js",
69
"scripts": {
710
"build": "babel src -d lib --source-maps",
@@ -26,25 +29,21 @@
2629
"homepage": "https://github.com/nodaguti/textlint-rule-ginger",
2730
"repository": "nodaguti/textlint-rule-ginger",
2831
"dependencies": {
29-
"es6-promisify": "^4.1.0",
32+
"es6-promisify": "^5.0.0",
3033
"gingerbread": "^0.5.0",
3134
"textlint-rule-helper": "^2.0.0",
32-
"textlint-util-to-string": "^1.2.1"
35+
"textlint-util-to-string": "^2.0.2"
3336
},
3437
"devDependencies": {
3538
"babel-cli": "^6.10.1",
3639
"babel-core": "^6.9.1",
37-
"babel-eslint": "^6.0.4",
38-
"babel-plugin-async-to-promises": "^1.0.5",
39-
"babel-plugin-espower": "^2.2.0",
40-
"babel-preset-es2015": "^6.9.0",
41-
"eslint": "^3.0.0",
42-
"eslint-config-airbnb": "^9.0.1",
43-
"eslint-plugin-import": "^1.8.1",
44-
"mocha": "^2.5.3",
45-
"npm-run-all": "^2.1.2",
46-
"power-assert": "^1.4.1",
47-
"textlint": "^7.0.0",
48-
"textlint-tester": "^2.0.0"
40+
"babel-preset-env": "^1.1.8",
41+
"eslint": "^3.14.1",
42+
"eslint-config-airbnb-base": "^11.0.1",
43+
"eslint-plugin-import": "^2.2.0",
44+
"mocha": "^3.2.0",
45+
"npm-run-all": "^4.0.1",
46+
"textlint": "^7.2.1",
47+
"textlint-tester": "^2.1.0"
4948
}
5049
}

src/ginger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { RuleHelper, IgnoreNodeManager } from 'textlint-rule-helper';
22
import gingerbread from 'gingerbread';
33
import promisify from 'es6-promisify';
44
import StringSource from 'textlint-util-to-string';
5+
56
const ignoreNodeManager = new IgnoreNodeManager();
67
const gingerbreadAsync = promisify(gingerbread, { multiArgs: true });
78

@@ -69,7 +70,7 @@ function reporter(context) {
6970
originalPosition.column + correction.length,
7071
];
7172

72-
// if range is ignored, not report
73+
// if range is ignored, skip reporting
7374
if (ignoreNodeManager.isIgnoredRange(originalRange)) {
7475
return;
7576
}

test/ginger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import rule from '../src/ginger';
21
import TextlintTester from 'textlint-tester';
2+
import rule from '../src/ginger';
33

44
const tester = new TextlintTester();
55

0 commit comments

Comments
 (0)