Skip to content

Commit

Permalink
build(deps-dev): add promise and jsdoc eslint plugins; update config
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed May 27, 2020
1 parent 628be8d commit 4cb22a1
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
"es6": true,
"node": true
},
"extends": ["airbnb-base", "plugin:jest/recommended", "prettier"],
"extends": [
"airbnb-base",
"plugin:promise/recommended",
"plugin:jest/recommended",
"plugin:jsdoc/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["import", "jest", "json"],
"plugins": ["import", "jest", "jsdoc", "json", "promise"],
"rules": {
"import/no-extraneous-dependencies": [
"error",
Expand All @@ -17,6 +23,7 @@
}
],
"lines-between-class-members": "error",
"no-console": "off",
"no-multiple-empty-lines": [
"error",
{
Expand All @@ -25,7 +32,8 @@
"maxEOF": 0
}
],
"no-console": "off",
"prefer-destructuring": "off"
"prefer-destructuring": "off",
"promise/prefer-await-to-then": "warn",
"promise/prefer-await-to-callbacks": "warn"
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.9.0",
"eslint-plugin-jsdoc": "^25.4.3",
"eslint-plugin-json": "^2.1.1",
"eslint-plugin-promise": "^4.2.1",
"glob": "^7.1.6",
"jest": "^25.5.4",
"jsdoc-to-markdown": "^5.0.3",
"jsinspect": "^0.12.7",
"prettier": "2.0.5",
"typescript": "^3.8.3"
}
},
"dependencies": {}
}
41 changes: 41 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,11 @@ commander@^2.11.0, commander@~2.20.3:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==

comment-parser@^0.7.4:
version "0.7.4"
resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.4.tgz#f5eb83cbae323cae6533c057f41d52692361c83a"
integrity sha512-Nnl77/mt6sj1BiYSVMeMWzvD0183F2MFOJyFRmZHimUVDYS9J40AvXpiFA7RpU5pQH+HkvYc0dnsHpwW2xmbyQ==

common-sequence@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/common-sequence/-/common-sequence-2.0.0.tgz#a4f01aaf5aebd0ac1ce43653e8c8fe6f0ef3a987"
Expand Down Expand Up @@ -1800,6 +1805,19 @@ eslint-plugin-jest@^23.9.0:
dependencies:
"@typescript-eslint/experimental-utils" "^2.5.0"

eslint-plugin-jsdoc@^25.4.3:
version "25.4.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-25.4.3.tgz#83e0d8ac778b7866be0aca23cadb5ec3b0dc1910"
integrity sha512-5FyIKcNoM+AMBf1sTHvs2DVyij2x6eCYO1hxOUWFLBZV6H5AIdXPT3fVc9H6hrxOYe9SRF+5SjY1hqimV3Q+gQ==
dependencies:
comment-parser "^0.7.4"
debug "^4.1.1"
jsdoctypeparser "^6.1.0"
lodash "^4.17.15"
regextras "^0.7.1"
semver "^6.3.0"
spdx-expression-parse "^3.0.1"

eslint-plugin-json@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-json/-/eslint-plugin-json-2.1.1.tgz#7b9c4da2121f6f48d44efceb9a99ac0d4d12b299"
Expand All @@ -1808,6 +1826,11 @@ eslint-plugin-json@^2.1.1:
lodash "^4.17.15"
vscode-json-languageservice "^3.5.1"

eslint-plugin-promise@^4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz#845fd8b2260ad8f82564c1222fce44ad71d9418a"
integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==

eslint-scope@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9"
Expand Down Expand Up @@ -3264,6 +3287,11 @@ jsdoc@^3.6.3:
taffydb "2.6.2"
underscore "~1.10.2"

jsdoctypeparser@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/jsdoctypeparser/-/jsdoctypeparser-6.1.0.tgz#acfb936c26300d98f1405cb03e20b06748e512a8"
integrity sha512-UCQBZ3xCUBv/PLfwKAJhp6jmGOSLFNKzrotXGNgbKhWvz27wPsCsVeP7gIcHPElQw2agBmynAitXqhxR58XAmA==

jsdom@^15.2.1:
version "15.2.1"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.1.tgz#d2feb1aef7183f86be521b8c6833ff5296d07ec5"
Expand Down Expand Up @@ -4447,6 +4475,11 @@ regexpp@^2.0.1:
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f"
integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==

regextras@^0.7.1:
version "0.7.1"
resolved "https://registry.yarnpkg.com/regextras/-/regextras-0.7.1.tgz#be95719d5f43f9ef0b9fa07ad89b7c606995a3b2"
integrity sha512-9YXf6xtW+qzQ+hcMQXx95MOvfqXFgsKDZodX3qZB0x2n5Z94ioetIITsBtvJbiOyxa/6s9AtyweBLCdPmPko/w==

remove-trailing-separator@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
Expand Down Expand Up @@ -4827,6 +4860,14 @@ spdx-expression-parse@^3.0.0:
spdx-exceptions "^2.1.0"
spdx-license-ids "^3.0.0"

spdx-expression-parse@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679"
integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==
dependencies:
spdx-exceptions "^2.1.0"
spdx-license-ids "^3.0.0"

spdx-license-ids@^3.0.0:
version "3.0.5"
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654"
Expand Down

0 comments on commit 4cb22a1

Please sign in to comment.