Skip to content

Commit 559ec3d

Browse files
committed
Fix linter running errors
Summary: Test Plan:
1 parent 5cacc4f commit 559ec3d

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/npm.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "v*"
88
permissions:
99
id-token: write # Required for OIDC NPMJS publishing
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
build:
@@ -33,13 +33,15 @@ jobs:
3333
- name: PIP Install
3434
run: |
3535
pip3 install awscli --upgrade --user
36-
- name: NVM Install
37-
run: |
38-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
39-
. $HOME/.nvm/nvm.sh
40-
nvm install
36+
- name: Setup NodeJS
37+
uses: actions/setup-node@v6
38+
with:
39+
node-version-file: .nvmrc
40+
registry-url: "https://registry.npmjs.org"
4141
- name: NPM Install
42-
run: npm ci
42+
run: |
43+
npm install --global npm@latest
44+
npm ci
4345
- name: Build and Test
4446
run: npm run build-and-test
4547
- name: Release

eslint.config.mts renamed to eslint.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export default defineConfig([
3838
sourceType: "script",
3939

4040
parserOptions: {
41-
// project: path.join(__dirname, "tsconfig.json"),
42-
projectService: true,
41+
projectService: {
42+
allowDefaultProject: ["*.mjs"],
43+
},
4344
},
4445
},
4546

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"files": [
88
"dist/layer.zip"
99
],
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/quittle/s3-upload-custom-resource-lambda-layer.git"
13+
},
1014
"scripts": {
1115
"build": "webpack",
1216
"test": "npm run unit-test && npm run integration-test",
@@ -15,8 +19,8 @@
1519
"integration-test:deploy-layer": "scripts/deploy_lambda_layer S3UploadCustomResourceBeta s3-upload-custom-resource-lambda-layer-beta",
1620
"integration-test:run": "LAYER_STACK_NAME=s3-upload-custom-resource-lambda-layer-beta jest tst",
1721
"package": "scripts/build_lambda_layer_zip",
18-
"lint": "eslint . --ext .js,.ts",
19-
"lint-fix": "eslint . --ext .js,.ts --fix",
22+
"lint": "eslint . --ext .mjs,.js,.ts",
23+
"lint-fix": "eslint . --ext .mjs,.js,.ts --fix",
2024
"prettier": "prettier --check '**'",
2125
"prettier-fix": "prettier --write '**'",
2226
"check": "npm run lint && npm run prettier && npm run unit-test",

0 commit comments

Comments
 (0)