Skip to content

Commit

Permalink
fix: Update plugins to resolve peer dependency warnings (#37)
Browse files Browse the repository at this point in the history
* Move typescript to dev dependencies

TypeScript projects will have it in their dependencies already, and
it's unnecessary for other non-TypeScript projects.

* Resolve plugin peer dependency warnings

Some plugins did not support ESLint 8, and `eslint-plugin-airbnb` needs
`eslint-plugin-react-hooks`.

* Update semantic-release (17.1.1 -> 19.0.3)

This fixes the final peer dependency warning.

* Move @typescript-eslint/parser to dev dependencies

* Include `typescript` in list of `mixins/ts` dependencies
  • Loading branch information
seb-cr authored Aug 11, 2022
1 parent 8298866 commit c3040f6
Show file tree
Hide file tree
Showing 3 changed files with 1,405 additions and 2,680 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ Some of the configurations require additional dependencies. They are not listed
```bash
yarn add --dev \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser
@typescript-eslint/parser \
typescript
```

## Development
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,25 @@
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"chai": "^4.3.6",
"eslint": "^8.21.0",
"semantic-release": "^17.1.1"
"semantic-release": "^19.0.3",
"typescript": "^4.7.4"
},
"dependencies": {
"@babel/eslint-parser": "^7.11.3",
"@babel/plugin-syntax-flow": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.18.10",
"@typescript-eslint/parser": "^4.7.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jsdoc": "^39.3.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sonarjs": "^0.13.0",
"eslint-plugin-unicorn": "^42.0.0",
"typescript": "^4.0.5"
"eslint-plugin-unicorn": "^42.0.0"
}
}
Loading

0 comments on commit c3040f6

Please sign in to comment.