diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..7d60351 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "printWidth": 100, + "tabWidth": 4, + "singleQuote": true, + "trailingComma": "es5", + "jsxBracketSameLine": true +} diff --git a/package.json b/package.json index 79694d1..b6bc7e0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Store implementation for functional reactive flux.", "lint-staged": { "*.{ts,tsx}": [ - "prettier --tab-width 4 --print-width 100 --write --trailing-comma es5 --jsx-bracket-same-line --single-quote", + "prettier --write", "git add" ] }, @@ -34,7 +34,7 @@ "mobx": "^4.4.0", "mobx-react": "^5.2.0", "npm-run-all": "^4.0.2", - "prettier": "~1.5.2", + "prettier": "^1.19.1", "react": "15.4.2", "react-addons-test-utils": "~15.4.0", "react-dom": "15.4.2", @@ -57,4 +57,4 @@ "registry": "https://registry.npmjs.org" }, "license": "MIT" -} \ No newline at end of file +} diff --git a/src/getRootStore.ts b/src/getRootStore.ts index 9df2f84..b85fb23 100644 --- a/src/getRootStore.ts +++ b/src/getRootStore.ts @@ -8,4 +8,4 @@ import { getGlobalContext } from './globalContext'; */ export default function getRootStore() { return getGlobalContext().rootStore; -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index e63d002..1c476c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3262,9 +3262,10 @@ prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" -prettier@~1.5.2: - version "1.5.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.3.tgz#59dadc683345ec6b88f88b94ed4ae7e1da394bfe" +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== pretty-format@^24.5.0: version "24.5.0"