Skip to content

Commit

Permalink
chore(v2): migrate babel-eslint to @babel/eslint-parser (#4453)
Browse files Browse the repository at this point in the history
* chore(v2): migrate babel-eslint to @babel/eslint-parser

* chore(v2): align facebook example packages

* chore(v2): lock babel-eslint for docusaurus-1x

* chore(v2): align pakcages in facebook init template

Co-authored-by: slorber <lorber.sebastien@gmail.com>
  • Loading branch information
armano2 and slorber authored Mar 19, 2021
1 parent 15107ee commit 357ea7d
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 435 deletions.
4 changes: 2 additions & 2 deletions examples/facebook/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

const OFF = 0;
const WARNING = 1;
// const WARNING = 1;
const ERROR = 2;

module.exports = {
Expand All @@ -19,7 +19,7 @@ module.exports = {
jest: true,
node: true,
},
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
},
Expand Down
18 changes: 9 additions & 9 deletions examples/facebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"eslint": "^6.7.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"@babel/eslint-parser": "^7.13.10",
"eslint": "^7.20.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"prettier": "^2.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.2.1",
"stylelint": "^13.2.1"
},
"browserslist": {
Expand Down
402 changes: 157 additions & 245 deletions examples/facebook/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"devDependencies": {
"@babel/cli": "^7.12.16",
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.13.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
"@babel/plugin-proposal-optional-chaining": "^7.12.16",
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
Expand Down Expand Up @@ -90,7 +91,6 @@
"@types/webpack-merge": "^4.1.5",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"babel-eslint": "^10.0.3",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"eslint": "^7.20.0",
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-1.x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"truncate-html": "^1.0.3"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"filepath": "^1.1.0",
"front-matter": "^3.0.2",
"glob-promise": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-init/templates/facebook/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
jest: true,
node: true,
},
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
},
Expand Down
18 changes: 9 additions & 9 deletions packages/docusaurus-init/templates/facebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"eslint": "^6.7.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"@babel/eslint-parser": "^7.13.10",
"eslint": "^7.20.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"prettier": "^2.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.2.1",
"stylelint": "^13.2.1"
},
"browserslist": {
Expand Down
Loading

0 comments on commit 357ea7d

Please sign in to comment.