Skip to content

Commit 15239d1

Browse files
anthony-redFoxtmcw
authored andcommitted
chore: Updated eslint. fixed no-useless-escape rule. (#834)
1 parent 505f62d commit 15239d1

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"coveralls": "^2.13.1",
6969
"cz-conventional-changelog": "2.0.0",
7070
"documentation-schema": "0.0.1",
71-
"eslint": "^3.19.0",
72-
"eslint-config-prettier": "^2.1.1",
73-
"eslint-plugin-flowtype": "^2.32.1",
71+
"eslint": "^4.1.1",
72+
"eslint-config-prettier": "^2.3.0",
73+
"eslint-plugin-flowtype": "^2.34.1",
7474
"flow-bin": "^0.46.0",
7575
"fs-extra": "^3.0.1",
7676
"husky": "^0.14.0",

src/git/url_prefix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getGithubURLPrefix(root: string) {
3737
var sha;
3838
try {
3939
var head = fs.readFileSync(path.join(root, '.git', 'HEAD'), 'utf8');
40-
var branch = head.match(/ref\: (.*)/);
40+
var branch = head.match(/ref: (.*)/);
4141
if (branch) {
4242
var branchName = branch[1];
4343
var branchFileName = path.join(root, '.git', branchName);

src/module_filters.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ var path = require('path');
44
var micromatch = require('micromatch');
55

66
// Skip external modules. Based on http://git.io/pzPO.
7-
var internalModuleRegexp = process.platform === 'win32'
8-
? /* istanbul ignore next */
9-
/^(\.|\w:)/
10-
: /^[\/.]/;
7+
var internalModuleRegexp =
8+
process.platform === 'win32'
9+
? /* istanbul ignore next */
10+
/^(\.|\w:)/
11+
: /^[/.]/;
1112

1213
/**
1314
* Module filters

0 commit comments

Comments
 (0)