Commit a5872397 authored by David Sveningsson's avatar David Sveningsson

fix(plugin): make all fields optional

parent 09a7b79f
Pipeline #97881149 passed with stages
in 9 minutes and 32 seconds
......@@ -15,7 +15,7 @@ export interface Plugin {
*
* Read-only property set by config.
*/
name: string;
name?: string;
/**
* Initialization callback.
......@@ -44,12 +44,12 @@ export interface Plugin {
*
* "extends": ["my-plugin:foobar"]
*/
configs: { [key: string]: ConfigData };
configs?: Record<string, ConfigData>;
/**
* List of new rules present.
*/
rules: { [key: string]: RuleConstructor };
rules?: Record<string, RuleConstructor>;
/**
* Transformer available in this plugin.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment