diff --git a/.github/workflows/aws-lambda.yml b/.github/workflows/aws-lambda.yml index 09f390b..aea289a 100644 --- a/.github/workflows/aws-lambda.yml +++ b/.github/workflows/aws-lambda.yml @@ -22,7 +22,7 @@ jobs: working-directory: ./aws-lambda - run: npm test working-directory: ./aws-lambda -# - run: npm run eslint -# working-directory: ./aws-lambda + - run: npm run eslint + working-directory: ./aws-lambda # TODO: Setup eslint and prettier for AWS Lambda project diff --git a/aws-lambda/package.json b/aws-lambda/package.json index 34d783f..f2eaf1f 100644 --- a/aws-lambda/package.json +++ b/aws-lambda/package.json @@ -5,6 +5,8 @@ "main": "build/raygun.aws.js", "types": "build/raygun.aws.d.ts", "scripts": { + "//eslint": "performs static analysis over project files and examples", + "eslint": "eslint --fix lib/*.ts test/*.js", "//prepare": "prepare project for distribution", "prepare": "tsc", "//test": "runs tests on main project",