File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const { name, version } =
1616 require ( "../package.json" ) as typeof import ( "../package.json" ) ;
1717
1818const plugin : Plugin = {
19+ /**
20+ * TODO: Add configs (recommended, etc.)
21+ * @see https://github.com/typescript-eslint/examples/blob/main/packages/eslint-plugin-example-typed-linting/src/index.ts
22+ */
1923 meta : {
2024 name,
2125 version,
Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ export const myRule = createRule<Options, MessageIds>({
5353 ] ,
5454 type : "suggestion" ,
5555 } ,
56+ /**
57+ * About `defaultOptions`:
58+ * - `defaultOptions` is not used in the generated documentation
59+ * - `defaultOptions` is used when options are not provided in the rules configuration
60+ * - If some configuration is provided as the second argument, it is ignored, not merged
61+ * - In other words, the `defaultOptions` is only used when the rule is used without configuration
62+ */
5663 defaultOptions : [ { someBool : false , someEnum : "always" } ] ,
5764 create : ( context , options ) => {
5865 return {
You can’t perform that action at this time.
0 commit comments