diff --git a/packages/xarc-webapp/.gitignore b/packages/xarc-webapp/.gitignore new file mode 100644 index 000000000..464c2a76b --- /dev/null +++ b/packages/xarc-webapp/.gitignore @@ -0,0 +1,8 @@ +.nyc_output +coverage +dist +node_modules +# recommend avoid committing package-lock.* file because a module's CI +# should use latest dep, as an app that consumes a module would have its +# own lockfile, but remove this if you want to commit the package lock file. +*-lock* diff --git a/packages/xarc-webapp/package.json b/packages/xarc-webapp/package.json index 1af88278b..bcfb3773e 100644 --- a/packages/xarc-webapp/package.json +++ b/packages/xarc-webapp/package.json @@ -39,7 +39,15 @@ "@types/node": "^13.7.6", "@types/sinon": "^9.0.0", "@types/sinon-chai": "^3.2.4", + "@typescript-eslint/eslint-plugin": "^2.21.0", + "@typescript-eslint/parser": "^2.21.0", + "@xarc/module-dev": "^2.1.2", + "babel-eslint": "^10.1.0", "chai": "^4.2.0", + "eslint": "^6.8.0", + "eslint-config-walmart": "^2.2.1", + "eslint-plugin-filenames": "^1.1.0", + "eslint-plugin-jsdoc": "^21.0.0", "mocha": "^7.1.0", "nyc": "^15.0.0", "sinon": "^7.2.6", @@ -80,10 +88,18 @@ }, "mocha": { "require": [ + "./config/test/setup.js", "ts-node/register", "source-map-support/register", - "./config/test/setup.js" + "@xarc/module-dev/config/test/setup.js" ], "recursive": true + }, + "fyn": { + "dependencies": { + "@xarc/jsx-renderer": "../xarc-jsx-renderer", + "@xarc/render-context": "../xarc-render-context", + "@xarc/simple-renderer": "../xarc-simple-renderer" + } } } diff --git a/packages/xarc-webapp/src/http-status.ts b/packages/xarc-webapp/src/http-status.ts index 8c909b2c6..8bd55dc01 100644 --- a/packages/xarc-webapp/src/http-status.ts +++ b/packages/xarc-webapp/src/http-status.ts @@ -1,3 +1,4 @@ +// @ts-ignore import * as HttpStatusCode from "http-status-codes"; export default { diff --git a/packages/xarc-webapp/tsconfig.json b/packages/xarc-webapp/tsconfig.json index c1c76a700..45cbecf50 100644 --- a/packages/xarc-webapp/tsconfig.json +++ b/packages/xarc-webapp/tsconfig.json @@ -9,11 +9,11 @@ "sourceMap": true, "declaration": true, "types": ["node", "mocha"], - "jsx": "react", "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, - "alwaysStrict": true, - "strictFunctionTypes": true + "alwaysStrict": false, + "strictFunctionTypes": true, + "jsx": "react" }, "include": ["src"] }