Changeset View
Changeset View
Standalone View
Standalone View
.lintstagedrc.js
Show All 32 Lines | '{keyserver,web,lib}/**/*.js': function keyserverFlow(files) { | ||||
return 'yarn workspace keyserver flow --quiet'; | return 'yarn workspace keyserver flow --quiet'; | ||||
}, | }, | ||||
'{keyserver,web,lib}/**/*.js': function keyserverTest(files) { | '{keyserver,web,lib}/**/*.js': function keyserverTest(files) { | ||||
return 'yarn workspace keyserver test'; | return 'yarn workspace keyserver test'; | ||||
}, | }, | ||||
'{landing,lib}/**/*.js': function landingFlow(files) { | '{landing,lib}/**/*.js': function landingFlow(files) { | ||||
return 'yarn workspace landing flow --quiet'; | return 'yarn workspace landing flow --quiet'; | ||||
}, | }, | ||||
'{native,services}/**/{CMakeLists.txt,*cmake}': function cmakeLint(files) { | |||||
return 'cmake-lint ' + files.join(' '); | |||||
}, | |||||
'{native,services}/**/*.{h,cpp,java,mm}': function clangFormat(files) { | '{native,services}/**/*.{h,cpp,java,mm}': function clangFormat(files) { | ||||
files = files.filter(path => { | files = files.filter(path => { | ||||
if (path.indexOf('generated') !== -1) { | if (path.indexOf('generated') !== -1) { | ||||
return false; | return false; | ||||
} | } | ||||
for (const allowedPath of getClangPaths()) { | for (const allowedPath of getClangPaths()) { | ||||
if (path.indexOf(allowedPath) !== -1) { | if (path.indexOf(allowedPath) !== -1) { | ||||
return true; | return true; | ||||
Show All 13 Lines |