Skip to content

Commit

Permalink
feat: check deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Sep 9, 2019
1 parent f328013 commit fb012e9
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'plugin:import/warnings',
'plugin:import/typescript',
],
plugins: ['ban', 'jsdoc', 'react', 'react-hooks'],
plugins: ['ban', 'jsdoc', 'react', 'react-hooks', 'etc'],
settings: {
react: {
version: 'detect',
Expand Down Expand Up @@ -150,6 +150,10 @@ module.exports = {
'react/void-dom-elements-no-children': 'error',
'react/prop-types': 'off', // Not needed with TypeScript

// https://github.com/cartant/eslint-plugin-etc/issues/1
// 'etc/throw-error': 'error',
'etc/deprecation': 'warn',

// Only in TS
'@typescript-eslint/no-var-requires': 'off',
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@typescript-eslint/parser": "^1.13.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-ban": "^1.2.0",
"eslint-plugin-etc": "^0.0.1-beta.6",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsdoc": "^15.8.0",
"eslint-plugin-react": "^7.14.3",
Expand Down
60 changes: 59 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@
universal-user-agent "^2.0.0"
url-template "^2.0.8"

"@phenomnomnominal/tsquery@^3.0.0":
version "3.0.0"
resolved "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-3.0.0.tgz#6f2f4dbf6304ff52b12cc7a5b979f20c3794a22a"
integrity sha512-SW8lKitBHWJ9fAYkJ9kJivuctwNYCh3BUxLdH0+XiR1GPBiu+7qiZzh8p8jqlj1LgVC1TbvfNFroaEsmYlL8Iw==
dependencies:
esquery "^1.0.1"

"@semantic-release/commit-analyzer@^6.1.0":
version "6.2.0"
resolved "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-6.2.0.tgz#5cd25ce67ba9ba5b46e47457505e63629e186695"
Expand Down Expand Up @@ -1412,6 +1419,11 @@ eslint-config-prettier@^6.0.0:
dependencies:
get-stdin "^6.0.0"

eslint-etc@^0.0.1:
version "0.0.1"
resolved "https://registry.npmjs.org/eslint-etc/-/eslint-etc-0.0.1.tgz#e082e6ed4de09e901378a950c7d48efe3a4c4b60"
integrity sha512-XqVDWFXffrRW/RKB2dojpz+xcoox+WikWjkwUNW2cKdqhE/puJGu1Gd7wo4qWLozvirS7WXCoTY5xhVsQkhgUw==

eslint-import-resolver-node@^0.3.2:
version "0.3.2"
resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"
Expand All @@ -1435,6 +1447,18 @@ eslint-plugin-ban@^1.2.0:
dependencies:
requireindex "~1.2.0"

eslint-plugin-etc@^0.0.1-beta.6:
version "0.0.1-beta.6"
resolved "https://registry.npmjs.org/eslint-plugin-etc/-/eslint-plugin-etc-0.0.1-beta.6.tgz#7edee4ee78073078312e4a7798907be94708c9dc"
integrity sha512-0htnrSFUDNKL3WIaIbS/HQQmO3KnvTuU3AGjc8YiX/xvTWMk6mPtp/UrmsMvUSI3LZhWfgJCcXF8qA1hgZOA4Q==
dependencies:
eslint-etc "^0.0.1"
requireindex "~1.2.0"
tslib "^1.8.0"
tslint-etc "^1.6.0"
tsutils "^3.0.0"
tsutils-etc "^1.0.0"

eslint-plugin-import@^2.18.2:
version "2.18.2"
resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.18.2.tgz#02f1180b90b077b33d447a17a2326ceb400aceb6"
Expand Down Expand Up @@ -1510,13 +1534,25 @@ esprima@^4.0.0, esprima@~4.0.0:
resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==

esquery@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708"
integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==
dependencies:
estraverse "^4.0.0"

esrecurse@^4.1.0:
version "4.2.1"
resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf"
integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==
dependencies:
estraverse "^4.1.0"

estraverse@^4.0.0:
version "4.3.0"
resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==

estraverse@^4.1.0, estraverse@^4.1.1:
version "4.2.0"
resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
Expand Down Expand Up @@ -4733,11 +4769,33 @@ trim-off-newlines@^1.0.0:
resolved "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM=

tslib@^1.8.1:
tslib@^1.8.0, tslib@^1.8.1:
version "1.10.0"
resolved "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==

tslint-etc@^1.6.0:
version "1.7.0"
resolved "https://registry.npmjs.org/tslint-etc/-/tslint-etc-1.7.0.tgz#7cd5b500bca458067c7061aad6f53e352d0872d5"
integrity sha512-8NOGfr4zRquMNugz8D9gr0Tz8xxNA1Zrd2OFqURaWNKV779GO4LhqHjFL572m3MusUwSxPkUOMSmsqAwkvu6qQ==
dependencies:
"@phenomnomnominal/tsquery" "^3.0.0"
tslib "^1.8.0"
tsutils "^3.0.0"
tsutils-etc "^1.0.0"

tsutils-etc@^1.0.0:
version "1.1.0"
resolved "https://registry.npmjs.org/tsutils-etc/-/tsutils-etc-1.1.0.tgz#82ce1c92da29e07d3cde95692d5c5e8dbdc92fd0"
integrity sha512-pJlLtLmQPUyGHqY/Pq6EGnpGmQCnnTDZetQ7eWkeQ5xaw4GtfcR1Zt7HMKFHGDDp53HzQfbqQ+7ps6iJbfa9Hw==

tsutils@^3.0.0:
version "3.17.1"
resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759"
integrity sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==
dependencies:
tslib "^1.8.1"

tsutils@^3.7.0:
version "3.14.0"
resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.14.0.tgz#bf8d5a7bae5369331fa0f2b0a5a10bd7f7396c77"
Expand Down

0 comments on commit fb012e9

Please sign in to comment.