diff --git a/.gitignore b/.gitignore index 559a93fa1..a193d0281 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ package-lock.json /.nyc_output /coverage +modules/**/node_modules +modules/**/build diff --git a/package.json b/package.json index 748d2c38b..85a13401d 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "bootstrap": "lerna bootstrap", "clean": "npm run clear-build-cache && lerna clean", "clear-build-cache": "rimraf ./modules/*/build/*", + "lint": "standard modules/**/src/*.ts modules/**/test/**/*.ts", "build": "tsc -b", - "pretest": "npm build", "test": "mocha --require ts-node/register modules/**/test/*test.ts" }, "repository": { @@ -19,15 +19,24 @@ "author": "aws-crypto-tools-team@amazon.com", "license": "UNLICENSED", "dependencies": { + "@typescript-eslint/eslint-plugin": "^1.4.2", + "@typescript-eslint/parser": "^1.4.2", "chai": "^4.1.2", "lerna": "^2.11.0", "mocha": "^5.2.0", "rimraf": "^2.6.2", + "standard": "^12.0.1", "ts-node": "^7.0.1", "tslib": "^1.9.3", "typescript": "^3.2.0" }, "workspaces": [ "modules/*" - ] + ], + "standard": { + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint" + ] + } } diff --git a/tsconfig.json b/tsconfig.json index 60e76359c..29f5e4882 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,19 @@ { + "extends": "./modules/tsconfig.settings.json", "files": [], "references": [ + + + + + + + + + + + + ] } \ No newline at end of file diff --git a/wallaby.conf.js b/wallaby.conf.js index c672cf90c..3631211cb 100644 --- a/wallaby.conf.js +++ b/wallaby.conf.js @@ -1,7 +1,9 @@ -const compilerOptions = Object.assign( - {"esModuleInterop": true} -) +const compilerOptions = Object.assign({ + "esModuleInterop": true, + "target": "esnext", + "module": "commonjs", + }) module.exports = function (wallaby) { return {