Skip to content

Commit

Permalink
docs: update shared settings example (#18251)
Browse files Browse the repository at this point in the history
* docs: update shared settings example

* add indentation
  • Loading branch information
Tanujkanti4441 committed Apr 1, 2024
1 parent 26384d3 commit b93f408
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/src/use/configure/configuration-files.md
Expand Up @@ -286,6 +286,26 @@ export default [
{
settings: {
sharedData: "Hello"
},
plugins: {
customPlugin: {
rules: {
"my-rule": {
meta: {
// custom rule's meta information
},
create(context) {
const sharedData = context.settings.sharedData;
return {
// code
};
}
}
}
}
},
rules: {
"customPlugin/my-rule": "error"
}
}
];
Expand Down

0 comments on commit b93f408

Please sign in to comment.