5.28.1 • Published 2 years ago

@statoscope/config v5.28.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Config

npm version Financial Contributors on Open Collective

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

See stats-validator readme

Example:

module.exports = {
  validate: {
    plugins: ['@statoscope/webpack'],
    rules: {
      '@statoscope/webpack/restricted-modules': ['error', [/\/src\//]],
      '@statoscope/webpack/restricted-packages': ['error', ['foo']],
    },
  },
};
5.28.1

2 years ago

5.27.0

2 years ago

5.22.0

3 years ago

5.18.0

4 years ago

5.14.1

4 years ago

5.13.1

4 years ago

5.12.1

4 years ago

5.9.0

4 years ago

5.7.2

4 years ago

5.7.1

4 years ago

5.7.0

4 years ago

5.7.0-alpha.0

4 years ago