Skip to content

Commit 84b34e8

Browse files
author
Pete Gleeson
committed
[Docs] fixes problem with weird highlighting
1 parent efa1723 commit 84b34e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/extensions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ In order to provide a consistent use of file extensions across your code base, t
88

99
This rule either takes one string option, one object option, or a string and an object option. If it is the string `"never"` (the default value), then the rule forbids the use for any extension. If it is the string `"always"`, then the rule enforces the use of extensions for all import statements. If it is the string `"ignorePackages"`, then the rule enforces the use of extensions for all import statements except package imports.
1010

11-
```json
11+
```
1212
"import/extensions": [<severity>, "never" | "always" | "ignorePackages"]
1313
```
1414

1515
By providing an object you can configure each extension separately.
1616

17-
```json
17+
```
1818
"import/extensions": [<severity>, {
1919
<extension>: "never" | "always" | "ignorePackages"
2020
}]
@@ -24,7 +24,7 @@ By providing an object you can configure each extension separately.
2424

2525
By providing both a string and an object, the string will set the default setting for all extensions, and the object can be used to set granular overrides for specific extensions.
2626

27-
```json
27+
```
2828
"import/extensions": [
2929
<severity>,
3030
"never" | "always" | "ignorePackages",

0 commit comments

Comments
 (0)