Update checked-in dependencies
This commit is contained in:
parent
67f7ac2add
commit
02c45745e3
174 changed files with 2781 additions and 5722 deletions
10
node_modules/eslint-plugin-import/docs/rules/extensions.md
generated
vendored
10
node_modules/eslint-plugin-import/docs/rules/extensions.md
generated
vendored
|
|
@ -10,13 +10,13 @@ In order to provide a consistent use of file extensions across your code base, t
|
|||
|
||||
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.
|
||||
|
||||
```
|
||||
```json
|
||||
"import/extensions": [<severity>, "never" | "always" | "ignorePackages"]
|
||||
```
|
||||
|
||||
By providing an object you can configure each extension separately.
|
||||
|
||||
```
|
||||
```json
|
||||
"import/extensions": [<severity>, {
|
||||
<extension>: "never" | "always" | "ignorePackages"
|
||||
}]
|
||||
|
|
@ -26,7 +26,7 @@ By providing an object you can configure each extension separately.
|
|||
|
||||
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.
|
||||
|
||||
```
|
||||
```json
|
||||
"import/extensions": [
|
||||
<severity>,
|
||||
"never" | "always" | "ignorePackages",
|
||||
|
|
@ -40,7 +40,7 @@ For example, `["error", "never", { "svg": "always" }]` would require that all ex
|
|||
|
||||
`ignorePackages` can be set as a separate boolean option like this:
|
||||
|
||||
```
|
||||
```json
|
||||
"import/extensions": [
|
||||
<severity>,
|
||||
"never" | "always" | "ignorePackages",
|
||||
|
|
@ -62,7 +62,7 @@ When disallowing the use of certain extensions this rule makes an exception and
|
|||
|
||||
For example, given the following folder structure:
|
||||
|
||||
```
|
||||
```pt
|
||||
├── foo
|
||||
│ ├── bar.js
|
||||
│ ├── bar.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue