Skip to content

Commit

Permalink
chore(contentful/dynamo) upgrade dependencies
Browse files Browse the repository at this point in the history
eslint not upgraded to 6.1 because error "Cannot find module eslint-plugin-prettier."
prettier/eslint-plugin-prettier#208

prettier/eslint-plugin-prettier#208
node-nlp >3.4 required to tree-shake Chinese & Japanese dependencies
jest 24.8 is supposed to be faster
ts-mockito 2.4 can now mock interfaces
  • Loading branch information
dpinol authored and imOscarCrespo committed Aug 22, 2019
1 parent c4c9b8b commit 487deb2
Show file tree
Hide file tree
Showing 5 changed files with 619 additions and 2,521 deletions.
4 changes: 2 additions & 2 deletions packages/botonic-plugin-contentful/.eslintrc.js
Expand Up @@ -50,10 +50,10 @@ module.exports = {
"unicorn/prevent-abbreviations" : "off", // the plugin removes removes type annotations from typescript code :-(
"unicorn/filename-case" : "off", // React convention is in CamelCase
"@typescript-eslint/no-non-null-assertion" : "warn", // specially useful in tests, and "when you know what you're doing"
"@typescript-eslint/no-object-literal-type-assertion" : {allowAsParameter: false}, //useful to pass options to plugins
"@typescript-eslint/no-object-literal-type-assertion" : [ "error", {allowAsParameter: false}], //useful to pass options to plugins
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-namespace": { allowDeclarations: true }, // to encapsulate types in namespace with same name as Class
"@typescript-eslint/no-namespace": ["error", { allowDeclarations: true }], // to encapsulate types in namespace with same name as Class
},
env: {
jest: true
Expand Down
27 changes: 13 additions & 14 deletions packages/botonic-plugin-contentful/package.json
Expand Up @@ -15,34 +15,33 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"dependencies": {
"contentful": "^7.6.0",
"contentful": "^7.8.2",
"escape-string-regexp": "^2.0.0",
"moment": "^2.24.0",
"moment-timezone": "^0.5.25",
"node-nlp": "^3.3.2"
"moment-timezone": "^0.5.26",
"node-nlp": "^3.4.0"
},
"devDependencies": {
"@types/jest": "^24.0.11",
"@types/jest": "^24.0.15",
"@types/jest-each": "^0.3.4",
"@types/moment-timezone": "^0.5.12",
"@types/node": "^12.0.0",
"@types/node": "^12.6.8",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"csstype": "^2.6.3",
"eslint": "^5.16.0",
"eslint-config-oclif": "^3.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-jest": "^22.6.4",
"eslint-plugin-jest": "^22.13.6",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-prettier": "^3.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.7.1",
"jest-extended": "^0.11.1",
"prettier": "^1.16.4",
"jest": "^24.8.0",
"jest-extended": "^0.11.2",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-mockito": "^2.3.1",
"typescript": "^3.5.1"
"ts-mockito": "^2.4.2",
"typescript": "^3.5.3"
},
"engines": {
"node": ">=8.10.0"
Expand Down
Expand Up @@ -55,7 +55,7 @@ interface ElementFields {
title: string;
subtitle: string;
pic?: contentful.Asset;
// eslint-disable-next-line @typescript-eslint/no-explicit-any it's just a reference
// eslint-disable-next-line @typescript-eslint/no-explicit-any
buttons: contentful.Entry<any>[];
}

Expand Down

0 comments on commit 487deb2

Please sign in to comment.