Skip to content

Commit

Permalink
6 ensure eslint8 compat (#7)
Browse files Browse the repository at this point in the history
* Replace babel-eslint with babel/eslint-parser

babel-eslint is no longer supported and babel recommends replacing it
with its eslint-parser instead.

* Updated `.eslintrc.json` with updated parser

* Update documentation for new `@babel/eslint-parser`

* Upgraded eslint `eslint` from ^7.23.0 to ^8.56.0

* Add changelog to show major changes from v2.1.0

* Add `babel-eslint` namechange to Changelog

* Add eslint v8 upgrade guide link

* Delete CHANGELOG.md

---------

Co-authored-by: Brandon Kalinowski <[email protected]>
  • Loading branch information
ericpoe and brandonkal authored Mar 15, 2024
1 parent 33f62e4 commit 93b074f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prettier"
],
"plugins": ["react", "import"],
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"rules": {
"react/prefer-stateless-function": "off",
"react/prop-types": "off",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ESLint rule configuration for Gatsby Sites. This rule set is designed to closely

This config is designed to be used in conjunction with prettier for automatic code formatting. Conflicting rules have been disabled through `eslint-config-prettier`. See the "Use With Atom" section below for a suggestion on how to implement this config with prettier for automatic linting and formatting.

`babel-eslint` is included to support new JavaScript features used in advanced Gatsby projects.
`@babel/eslint-parser` is included to support new JavaScript features used in advanced Gatsby projects.

## Usage

Expand Down Expand Up @@ -38,10 +38,10 @@ content

## Plugins Used:

- [@babel/eslint-plugin](https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin)
- [eslint-config-standard](https://www.npmjs.com/package/eslint-config-standard)
- [eslint-plugin-standard](https://www.npmjs.com/package/eslint-plugin-standard)
- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
- [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel)
- [eslint-config-standard-react](https://www.npmjs.com/package/eslint-config-standard-react)
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
- [eslint-plugin-node](https://www.npmjs.com/package/eslint-plugin-node)
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
},
"homepage": "https://github.com/brandonkal/eslint-config-gatsby-standard#readme",
"dependencies": {
"babel-eslint": "^10.0.1",
"eslint-config-prettier": "^8.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-config-standard-react": "^11.0.1",
"@babel/eslint-parser": "^7.16.5",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-react": "^13.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.23.1"
},
"peerDependencies": {
"eslint": "^7.23.0"
"eslint": "^8.56.0"
}
}

0 comments on commit 93b074f

Please sign in to comment.