@statoscope/config
v5.28.1
Published
Statoscope config utils
Downloads
64,393
Readme
Config
Statoscope Config Helpers
Config format
export type Config = {
silent?: boolean;
validate?: {
plugins?: Array<string | [string, string]>;
warnAsError?: boolean;
reporters?: ReporterConfig[];
rules: Record<string, RuleDesc<unknown>>;
};
generate?: {
reports?: Report<unknown, unknown>;
},
};
silent
For now, it just suppresses stats-validators reporters
validator
Example:
module.exports = {
validate: {
plugins: ['@statoscope/webpack'],
rules: {
'@statoscope/webpack/restricted-modules': ['error', [/\/src\//]],
'@statoscope/webpack/restricted-packages': ['error', ['foo']],
},
},
};