Skip to content

Commit 5b24012

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

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
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:

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)