diff --git a/package.json b/package.json index e9b765d0..c533161a 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,13 @@ }, "license": "MIT", "author": "Vincent Voyer ", + "main": "dist/", "files": [ "dist/", "lib/", "LICENSE", "README.md" ], - "main": "dist/", "scripts": { "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start", "format": "prettier --write '**/*.*' && eslint . --fix", @@ -37,7 +37,6 @@ ] }, "prettier": { - "arrowParens": "always", "trailingComma": "all" }, "eslintConfig": { @@ -72,8 +71,8 @@ "eslint-plugin-jest": "23.8.2", "jest": "25.2.0", "jest-date-mock": "1.0.8", - "prettier": "1.19.1", - "prettier-plugin-packagejson": "2.0.10", + "prettier": "2.0.2", + "prettier-plugin-packagejson": "2.1.2", "semantic-release": "17.0.4", "semantic-release-cli": "5.2.3" }, diff --git a/yarn.lock b/yarn.lock index 4390dbdf..a2b83597 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4836,6 +4836,11 @@ is-path-inside@^1.0.0: dependencies: path-is-inside "^1.0.1" +is-plain-obj@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -7172,17 +7177,17 @@ prepend-http@^2.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= -prettier-plugin-packagejson@2.0.10: - version "2.0.10" - resolved "https://registry.yarnpkg.com/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.0.10.tgz#65bf6245ee40a4c1e1e9bd69d0b5617b188d45f6" - integrity sha512-NJtwxysgZPfeexeACcUlPkAE82W7wE9ZTDdrefNLxGRHFXH5R7CRNgF5rLvYy7LdycMsq8UIaHakDGZgLIkB9Q== +prettier-plugin-packagejson@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.1.2.tgz#910bb42f044fa0b634ba69e05de9255dcc5600b8" + integrity sha512-t2qnHPj3JbOgHLPaDCXnBpOabwM/RQlYGV0TBJXqxgXKJc6xvFW07C1JBznnOs5gZ3BLdVaBcuKD59OIv8Ezzg== dependencies: - sort-package-json "1.39.0" + sort-package-json "1.40.0" -prettier@1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08" + integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg== pretty-format@^25.1.0: version "25.1.0" @@ -8204,15 +8209,16 @@ sort-object-keys@^1.1.3: resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.3.tgz#bff833fe85cab147b34742e45863453c1e190b45" integrity sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg== -sort-package-json@1.39.0: - version "1.39.0" - resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.39.0.tgz#bd3ab45860db99cf22aaabca88bf1a5db8fc5698" - integrity sha512-/S/iwkf9lcb5Eb/l/BoImDIa4EJWd7is5yJ4oJShh0+sH5Iz5XJRbHpLkNpxuo850uoR6Ygbma9GwfMoEULwEQ== +sort-package-json@1.40.0: + version "1.40.0" + resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.40.0.tgz#81ad8c2bd7dd21b6a127ab4a26186a160f07a157" + integrity sha512-3Uc1kjmQ3SYuKziKghZvA23SihOqGxEjK2QPfFPmd7BMo9rWiJdC2FJWvAZbfhLWapuJrdmkUf6Kp0G4Wtuv5w== dependencies: detect-indent "^6.0.0" detect-newline "3.1.0" git-hooks-list "1.0.2" globby "10.0.1" + is-plain-obj "2.1.0" sort-object-keys "^1.1.3" sorted-object@~2.0.1: