Skip to content

Commit 336589d

Browse files
authored
Merge pull request #237 from brettz9/update-devDeps
npm updates
2 parents 34da0dd + 39c3c11 commit 336589d

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"extends": "canonical",
33
"root": true,
44
"rules": {
5-
"filenames/match-regex": 0
5+
"filenames/match-regex": 0,
6+
"prefer-named-capture-group": 0,
7+
"unicorn/prevent-abbreviations": 0
68
}
79
}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@
1111
},
1212
"description": "JSDoc linting rules for ESLint.",
1313
"devDependencies": {
14-
"@babel/cli": "^7.2.3",
15-
"@babel/core": "^7.3.3",
14+
"@babel/cli": "^7.4.4",
15+
"@babel/core": "^7.4.4",
1616
"@babel/node": "^7.2.2",
17-
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
18-
"@babel/preset-env": "^7.3.1",
19-
"@babel/register": "^7.0.0",
20-
"babel-plugin-add-module-exports": "^1.0.0",
17+
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
18+
"@babel/preset-env": "^7.4.4",
19+
"@babel/register": "^7.4.4",
20+
"babel-plugin-add-module-exports": "^1.0.2",
2121
"babel-plugin-istanbul": "^5.1.4",
2222
"chai": "^4.2.0",
2323
"eslint": "^5.14.1",
24-
"eslint-config-canonical": "^16.1.0",
24+
"eslint-config-canonical": "^17.1.0",
2525
"gitdown": "^2.5.7",
26-
"glob": "^7.1.3",
27-
"globby": "^9.0.0",
28-
"husky": "^1.3.1",
29-
"marked": "^0.6.1",
30-
"mocha": "^6.0.1",
26+
"glob": "^7.1.4",
27+
"globby": "^9.2.0",
28+
"husky": "^2.3.0",
29+
"marked": "^0.6.2",
30+
"mocha": "^6.1.4",
3131
"nyc": "^14.1.1",
32-
"semantic-release": "^15.13.3"
32+
"semantic-release": "^15.13.12"
3333
},
3434
"engines": {
3535
"node": ">=6"
@@ -49,7 +49,7 @@
4949
"main": "./dist/index.js",
5050
"name": "eslint-plugin-jsdoc",
5151
"peerDependencies": {
52-
"eslint": ">=4.14.0"
52+
"eslint": ">=5.16.0"
5353
},
5454
"repository": {
5555
"type": "git",

src/jsdocUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ const lookupTable = {
276276
},
277277
'@loop': {
278278
is (node) {
279-
return LOOP_STATEMENTS.indexOf(node.type) !== -1;
279+
return LOOP_STATEMENTS.includes(node.type);
280280
},
281281
check (node) {
282282
return lookupTable['@default'].check(node.body);
@@ -390,7 +390,7 @@ const lookupTable = {
390390
}
391391

392392
// Everything else cannot return anything.
393-
if (RETURNFREE_STATEMENTS.indexOf(node.type) !== -1) {
393+
if (RETURNFREE_STATEMENTS.includes(node.type)) {
394394
return false;
395395
}
396396

test/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "canonical/mocha",
33
"rules": {
4-
"no-restricted-syntax": 0
4+
"no-restricted-syntax": 0,
5+
"unicorn/prevent-abbreviations": 0
56
}
67
}

0 commit comments

Comments
 (0)