File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/eslint-plugin/docs/rules Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,22 @@ or more of the following you may pass an object with the options set as follows:
18
18
- ` allowDefinitionFiles ` set to ` true ` will allow you to ` declare ` and use custom TypeScript modules and namespaces
19
19
inside definition files (Default: ` true ` ).
20
20
21
- Examples of ** incorrect** code for the default ` { "allowDeclarations": false, "allowDefinitionFiles": false } ` options:
21
+ Examples of ** incorrect** code for the default ` { "allowDeclarations": false, "allowDefinitionFiles": true } ` options:
22
22
23
23
``` ts
24
24
module foo {}
25
25
namespace foo {}
26
26
27
27
declare module foo {}
28
28
declare namespace foo {}
29
-
30
- // anything inside a d.ts file
31
29
```
32
30
33
- Examples of ** correct** code for the default ` { "allowDeclarations": false, "allowDefinitionFiles": false } ` options:
31
+ Examples of ** correct** code for the default ` { "allowDeclarations": false, "allowDefinitionFiles": true } ` options:
34
32
35
33
``` ts
36
34
declare module ' foo' {}
35
+
36
+ // anything inside a d.ts file
37
37
```
38
38
39
39
### ` allowDeclarations `
You can’t perform that action at this time.
0 commit comments