Skip to content

Commit 01a7dbe

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

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"integration-test:deploy-layer": "scripts/deploy_lambda_layer S3UploadCustomResourceBeta s3-upload-custom-resource-lambda-layer-beta",
1616
"integration-test:run": "LAYER_STACK_NAME=s3-upload-custom-resource-lambda-layer-beta jest tst",
1717
"package": "scripts/build_lambda_layer_zip",
18-
"lint": "eslint . --ext .js,.ts",
19-
"lint-fix": "eslint . --ext .js,.ts --fix",
18+
"lint": "eslint . --ext .mjs,.js,.ts",
19+
"lint-fix": "eslint . --ext .mjs,.js,.ts --fix",
2020
"prettier": "prettier --check '**'",
2121
"prettier-fix": "prettier --write '**'",
2222
"check": "npm run lint && npm run prettier && npm run unit-test",

0 commit comments

Comments
 (0)