Skip to content

Commit

Permalink
feat: Support Prettier v2 (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Toshihisa Tomatsu <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2020
1 parent 0da221f commit 64e5fbe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Airbnb's ESLint config with TypeScript and Prettier support.
Install `typescript`, `eslint` and `prettier`, `eslint-config-airbnb-typescript-prettier` and put it into your `.eslintrc.js`.

```bash
$ npm install [email protected] eslint@^6.8.0 prettier@^1.18.2 eslint-config-airbnb-typescript-prettier --save-dev
$ npm install [email protected] eslint@^6.8.0 prettier@2 eslint-config-airbnb-typescript-prettier --save-dev
```

`.eslintrc.js`
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
},
"peerDependencies": {
"eslint": "^5.16.0 || ^6.8.0",
"prettier": "^1.18.2",
"prettier": "^1.18.2 || ^2.0.0",
"typescript": ">=3.2.1 <3.7.4"
},
"devDependencies": {
"@types/react": "16.9.32",
"eslint": "6.8.0",
"prettier": "1.19.1",
"prettier": "2.0.5",
"react": "16.13.1",
"standard-version": "8.0.0",
"typescript": "3.7.3"
Expand Down
2 changes: 1 addition & 1 deletion test/sample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ const ComponentWithHooks = () => {
export default {
Component,
ComponentWithProps,
ComponentWithHooks
ComponentWithHooks,
};

0 comments on commit 64e5fbe

Please sign in to comment.