Commit 340d0ca2 authored by David Sveningsson's avatar David Sveningsson

fix(docs): update plugin docs

parent a5872397
Pipeline #97885915 passed with stages
in 9 minutes and 13 seconds
......@@ -14,7 +14,7 @@ export interface Plugin {
*
* Read-only property set by config.
*/
name: string;
name?: string;
/**
* Initialization callback.
......@@ -43,12 +43,12 @@ export interface Plugin {
*
* "extends": ["my-plugin:foobar"]
*/
configs: { [key: string]: ConfigData };
configs?: { [key: string]: ConfigData };
/**
* List of new rules present.
*/
rules: { [key: string]: RuleConstructor };
rules?: { [key: string]: RuleConstructor };
/**
* Transformer available in this plugin.
......@@ -72,7 +72,7 @@ export interface Plugin {
* "^.*\\.foo$": "my-plugin:foobar"
* }
*/
transformer: Transformer | Record<string, Transformer>;
transformer?: Transformer | Record<string, Transformer>;
/**
* Extend metadata validation schema.
......
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