Skip to content

Commit

Permalink
fix(flowtype): switch to @babel/eslint-parser (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Apr 26, 2021
1 parent d493015 commit 09bc833
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Below is a complete list of the configs provided, and their dependencies:
- `@typescript-eslint/parser`
- `ackama/flowtype`
- `eslint-plugin-flowtype`
- `babel-eslint`
- `@babel/eslint-parser`
- `ackama/jest`
- `eslint-plugin-jest`
- `eslint-plugin-jest-formatting`
Expand Down
2 changes: 1 addition & 1 deletion flowtype.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('eslint').Linter.Config} */
const config = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
plugins: ['flowtype'],
extends: ['plugin:flowtype/recommended', 'prettier/flowtype'],
rules: {
Expand Down
47 changes: 25 additions & 22 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-config-prettier": "^6.10.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.13.14",
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"@semantic-release/changelog": "^5.0.1",
Expand All @@ -64,7 +65,6 @@
"@types/node": "^14.14.1",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.21.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-config": "^2.0.0",
Expand Down

0 comments on commit 09bc833

Please sign in to comment.