Skip to content

npm updates #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"extends": "canonical",
"root": true,
"rules": {
"filenames/match-regex": 0
"filenames/match-regex": 0,
"prefer-named-capture-group": 0,
"unicorn/prevent-abbreviations": 0
}
}
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@
},
"description": "JSDoc linting rules for ESLint.",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/node": "^7.2.2",
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
"@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0",
"babel-plugin-add-module-exports": "^1.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/register": "^7.4.4",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-istanbul": "^5.1.4",
"chai": "^4.2.0",
"eslint": "^5.14.1",
"eslint-config-canonical": "^16.1.0",
"eslint-config-canonical": "^17.1.0",
"gitdown": "^2.5.7",
"glob": "^7.1.3",
"globby": "^9.0.0",
"husky": "^1.3.1",
"marked": "^0.6.1",
"mocha": "^6.0.1",
"glob": "^7.1.4",
"globby": "^9.2.0",
"husky": "^2.3.0",
"marked": "^0.6.2",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"semantic-release": "^15.13.3"
"semantic-release": "^15.13.12"
},
"engines": {
"node": ">=6"
Expand All @@ -49,7 +49,7 @@
"main": "./dist/index.js",
"name": "eslint-plugin-jsdoc",
"peerDependencies": {
"eslint": ">=4.14.0"
"eslint": ">=5.16.0"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/jsdocUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const lookupTable = {
},
'@loop': {
is (node) {
return LOOP_STATEMENTS.indexOf(node.type) !== -1;
return LOOP_STATEMENTS.includes(node.type);
},
check (node) {
return lookupTable['@default'].check(node.body);
Expand Down Expand Up @@ -390,7 +390,7 @@ const lookupTable = {
}

// Everything else cannot return anything.
if (RETURNFREE_STATEMENTS.indexOf(node.type) !== -1) {
if (RETURNFREE_STATEMENTS.includes(node.type)) {
return false;
}

Expand Down
3 changes: 2 additions & 1 deletion test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "canonical/mocha",
"rules": {
"no-restricted-syntax": 0
"no-restricted-syntax": 0,
"unicorn/prevent-abbreviations": 0
}
}