Skip to content

Commit

Permalink
Upgrade to eslint 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Oct 29, 2022
1 parent 27bf596 commit ebd9838
Show file tree
Hide file tree
Showing 10 changed files with 692 additions and 580 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.*/node_modules/@choojs/**/.*
.*/node_modules/config-chain/.*
.*/node_modules/graphviz/documentation.json
.*/node_modules/resolve/test/**/.*
<PROJECT_ROOT>/.nyc_output/.*
.*/tmp/**/.*
.*/.parcel-cache/.*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@parcel/babel-register": "2.7.0",
"@types/node": "^15.12.4",
"cross-env": "^7.0.0",
"eslint": "^7.20.0",
"eslint": "^8.26.0",
"flow-bin": "0.184.0",
"glob": "^7.1.6",
"gulp": "^4.0.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/utils/src/shared-buffer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @flow
/* global MessageChannel:readonly */

export let SharedBuffer: Class<ArrayBuffer> | Class<SharedArrayBuffer>;

// $FlowFixMe[prop-missing]
Expand Down
2 changes: 0 additions & 2 deletions packages/dev/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ module.exports = {
'plugin:monorepo/recommended',
'plugin:react/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
],
parser: '@babel/eslint-parser',
plugins: ['@parcel', 'flowtype', 'import', 'monorepo', 'react', 'mocha'],
Expand Down
14 changes: 8 additions & 6 deletions packages/dev/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"private": true,
"version": "2.7.0",
"dependencies": {
"@babel/eslint-parser": "^7.12.1",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@babel/plugin-syntax-flow": "^7.18.6",
"@parcel/eslint-plugin": "2.7.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-mocha": "^8.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-monorepo": "^0.3.2",
"eslint-plugin-react": "^7.22.0"
"eslint-plugin-react": "^7.31.10"
},
"peerDependencies": {
"@babel/core": "^7.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/dev/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/eslint-parser": "^7.12.1",
"eslint": "^7.20.0"
"@babel/eslint-parser": "^7.19.1",
"eslint": "^8.26.0"
}
}
2 changes: 1 addition & 1 deletion packages/runtimes/webextension/src/autoreload-bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global chrome, browser, addEventListener, fetch, Response, HMR_HOST, HMR_PORT */
/* global chrome, browser, addEventListener, Response, HMR_HOST, HMR_PORT */
var env = typeof chrome == 'undefined' ? browser : chrome;
env.runtime.onMessage.addListener(function (msg) {
if (msg.__parcel_hmr_reload__) {
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/parcel-lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"@types/node": "^12.11.7",
"@types/node-ipc": "^9.1.3",
"@types/vscode": "^1.67.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint": "^8.26.0",
"glob": "^7.1.6",
"typescript": "^4.6.4"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/parcelforvscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.67.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint": "^8.26.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.6.4",
Expand Down
1,233 changes: 673 additions & 560 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit ebd9838

Please sign in to comment.