Skip to content

Commit

Permalink
Updated lintstaged config to properly handle Verify files.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll authored Jun 6, 2022
1 parent 35765d7 commit 12cf69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function cleanupcode(filenames) {
}

module.exports = {
'*.cs': filenames => {
'!(*verified|*received).cs': filenames => {
return [`echo "'${filenames.join(`' '`)}'" | dotnet format --include -`].concat(cleanupcode(filenames));
},
'*.{csproj,targets,props,xml}': filenames => forEachChunk(filenames, chunk => [`prettier --write '${chunk.join(`' '`)}'`]),
'*.{js,ts,jsx,tsx,json,yml,yaml}': filenames => forEachChunk(filenames, chunk => [`prettier --write '${chunk.join(`' '`)}'`]),
};
};

0 comments on commit 12cf69f

Please sign in to comment.