Skip to content

Commit

Permalink
[lint-staged] Lint Terraform files in subdirs
Browse files Browse the repository at this point in the history
Summary: Noticed that lint is not running in subdirs after I moved config donwn the tree. This diff fixes that.

Test Plan: Changed terraform files in `services/terraform/remote`, then `git commit` - lint was running as expected.

Reviewers: varun, atul, michal, jon

Reviewed By: jon

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8584
  • Loading branch information
barthap committed Jul 21, 2023
1 parent 6c0a013 commit b4f53d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = {
const paths = new Set(files.map(findRustProjectPath).filter(Boolean));
return `yarn rust-pre-commit ${Array.from(paths).join(' ')}`;
},
'services/terraform/*.tf': function checkTerraform(files) {
'services/terraform/**/*.tf': function checkTerraform(files) {
return 'yarn terraform-pre-commit';
},
};

0 comments on commit b4f53d4

Please sign in to comment.