Skip to content

Commit b93f408

Browse files
docs: update shared settings example (#18251)
* docs: update shared settings example * add indentation
1 parent 26384d3 commit b93f408

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/src/use/configure/configuration-files.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,26 @@ export default [
286286
{
287287
settings: {
288288
sharedData: "Hello"
289+
},
290+
plugins: {
291+
customPlugin: {
292+
rules: {
293+
"my-rule": {
294+
meta: {
295+
// custom rule's meta information
296+
},
297+
create(context) {
298+
const sharedData = context.settings.sharedData;
299+
return {
300+
// code
301+
};
302+
}
303+
}
304+
}
305+
}
306+
},
307+
rules: {
308+
"customPlugin/my-rule": "error"
289309
}
290310
}
291311
];

0 commit comments

Comments
 (0)