Skip to content

Commit c9c29a2

Browse files
authored
chore(ci): Aggregate lint-staged in top package.json (#2520)
1 parent a91a715 commit c9c29a2

File tree

12 files changed

+3
-34
lines changed

12 files changed

+3
-34
lines changed

layers/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"test:e2e": "jest --group=e2e",
1919
"createLayerFolder": "cdk synth --context BuildFromLocal=true"
2020
},
21-
"lint-staged": {
22-
"*.{js,ts}": "npm run lint-fix"
23-
},
21+
2422
"repository": {
2523
"type": "git",
2624
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@
7575
"typescript": "^5.4.5"
7676
},
7777
"lint-staged": {
78+
"*.{js,ts}": "eslint --fix",
7879
"*.md": "markdownlint-cli2 --fix"
7980
},
8081
"engines": {
8182
"node": ">=16"
8283
}
83-
}
84+
}

packages/batch/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2626
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2727
},
28-
"lint-staged": {
29-
"*.{js,ts}": "npm run lint-fix"
30-
},
3128
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/batch#readme",
3229
"license": "MIT-0",
3330
"type": "module",

packages/commons/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2424
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2525
},
26-
"lint-staged": {
27-
"*.{js,ts}": "npm run lint-fix"
28-
},
2926
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/commons#readme",
3027
"license": "MIT-0",
3128
"type": "module",

packages/idempotency/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2626
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2727
},
28-
"lint-staged": {
29-
"*.{js,ts}": "npm run lint-fix"
30-
},
3128
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/idempotency#readme",
3229
"license": "MIT-0",
3330
"type": "module",

packages/jmespath/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2323
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2424
},
25-
"lint-staged": {
26-
"*.{js,ts}": "npm run lint-fix"
27-
},
2825
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript",
2926
"license": "MIT-0",
3027
"type": "module",

packages/logger/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2626
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2727
},
28-
"lint-staged": {
29-
"*.{js,ts}": "npm run lint-fix"
30-
},
3128
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/logger#readme",
3229
"license": "MIT-0",
3330
"type": "module",

packages/metrics/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2525
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2626
},
27-
"lint-staged": {
28-
"*.{js,ts}": "npm run lint-fix"
29-
},
3027
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/metrics#readme",
3128
"license": "MIT-0",
3229
"type": "module",

packages/parameters/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2626
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2727
},
28-
"lint-staged": {
29-
"*.{js,ts}": "npm run lint-fix"
30-
},
3128
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/parameters#readme",
3229
"license": "MIT-0",
3330
"type": "module",

packages/parser/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2222
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2323
},
24-
"lint-staged": {
25-
"*.{js,ts}": "npm run lint-fix"
26-
},
2724
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/parser#readme",
2825
"license": "MIT-0",
2926
"type": "module",

packages/testing/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2121
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2222
},
23-
"lint-staged": {
24-
"*.{js,ts}": "npm run lint-fix"
25-
},
2623
"repository": {
2724
"type": "git",
2825
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"

packages/tracer/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
2626
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
2727
},
28-
"lint-staged": {
29-
"*.{js,ts}": "npm run lint-fix"
30-
},
3128
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/tracer#readme",
3229
"license": "MIT-0",
3330
"devDependencies": {

0 commit comments

Comments
 (0)