Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
bumo npm deps and fix flow and eslint linters
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Feb 21, 2020
1 parent adae0e1 commit efff0aa
Show file tree
Hide file tree
Showing 5 changed files with 2,636 additions and 2,206 deletions.
5 changes: 2 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parser": "babel-eslint",
"extends": [
"airbnb"
"eslint-config-airbnb-base"
],
"env": {
"jest": true
Expand All @@ -12,7 +12,6 @@
},
"plugins": [
"flowtype",
"import",
"babel"
],
"rules": {
Expand All @@ -39,7 +38,7 @@
}
],
"object-curly-newline": 0,
"babel/array-bracket-spacing": 2,
"array-bracket-spacing": 2,
"implicit-arrow-linebreak": 0,
"operator-linebreak": 0,
"import/no-cycle": 0,
Expand Down
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[ignore]
# <PROJECT_ROOT>/node_modules/.*
<PROJECT_ROOT>/node_modules/module-deps
<PROJECT_ROOT>/target/.*
<PROJECT_ROOT>/LUMO__INTERNAL__CLASSPATH/.*
<PROJECT_ROOT>/tmp/.*
Expand All @@ -15,4 +15,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.98.0
^0.117.0
73 changes: 35 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,50 +37,47 @@
"postinstall": "node download/install.js || nodejs download/install.js"
},
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.5",
"@babel/preset-stage-2": "^7.0.0",
"@babel/runtime": "^7.1.5",
"async-retry": "^1.2.3",
"@babel/core": "^7.8.4",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-stage-2": "^7.8.3",
"@babel/runtime": "^7.8.4",
"async-retry": "^1.3.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.4",
"babel-eslint": "^10.0.3",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"chalk": "^2.4.1",
"cross-env": "^5.2.0",
"chalk": "^3.0.0",
"cross-env": "^7.0.0",
"death": "^1.1.0",
"eslint": "^5.8.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"flow-bin": "0.98.1",
"google-closure-compiler-js": "20170910.0.1",
"jest-cli": "^24.7.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-import": "^2.20.1",
"flow-bin": "0.118.0",
"google-closure-compiler-js": "20200204.0.0",
"jest-cli": "^25.1.0",
"jszip": "github:anmonteiro/jszip#patch-1",
"nexe": "./vendor/nexe",
"node-fetch": "^2.2.1",
"paredit.js": "^0.3.4",
"node-fetch": "^2.6.0",
"paredit.js": "^0.3.6",
"posix-getopt": "github:anmonteiro/node-getopt#master",
"prettier": "^1.15.1",
"progress": "^2.0.0",
"read-pkg": "^5.1.1",
"rollup": "^1.9.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel-minify": "^8.0.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-replace": "^2.1.1",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"prettier": "^1.19.1",
"progress": "^2.0.3",
"read-pkg": "^5.2.0",
"rollup": "^1.31.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-babel-minify": "^9.1.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11",
"which-promise": "^1.0.0"
},
"jest": {
Expand Down
5 changes: 2 additions & 3 deletions src/js/cljs.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function lumoEval(
if (execPath != null) {
const filename = path.resolve(execPath);
const dirname = path.dirname(filename);
// $FlowFixMe: strangely, module 'module' isn't built-in
const module = new Module(filename);

module.filename = filename;
Expand Down Expand Up @@ -490,9 +491,7 @@ async function initSocketRepl(
// versions and jest does not allow yet to specify the snapshot name at runtime.
// It's been worked on though, see:
// https://github.com/facebook/jest/pull/5838#issuecomment-382476612
const errorMsg = `Port should be > 0 and < 65536. Received ${
parsedOpts.port
}.`;
const errorMsg = `Port should be > 0 and < 65536. Received ${parsedOpts.port}.`;
if (Number.isNaN(replOpts.port)) {
throw new Error(errorMsg);
} else if (replOpts.port < 1 || replOpts.port > 65536) {
Expand Down
Loading

0 comments on commit efff0aa

Please sign in to comment.