Skip to content

Commit d84fbfa

Browse files
docs: update generated docs for import/extensions rule
1 parent 4978163 commit d84fbfa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
6969
| [no-useless-path-segments](docs/rules/no-useless-path-segments.md) | Forbid unnecessary path segments in import and require statements. | | | | 🔧 | | |
7070
| [no-webpack-loader-syntax](docs/rules/no-webpack-loader-syntax.md) | Forbid webpack loader syntax in imports. | | | | | | |
7171

72+
### Static Analysis
73+
74+
| Name       | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 ||
75+
| :------------------------------------- | :--------------------------------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- |
76+
| [extensions](docs/rules/extensions.md) | Enforce that import statements either always include or never include allowed file extensions. | | | | 🔧 | | |
77+
7278
### Style guide
7379

7480
| Name                            | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 ||
7581
| :------------------------------------------------------------------------------- | :------------------------------------------------------------------------- | :- | :---- | :- | :- | :- | :- |
7682
| [consistent-type-specifier-style](docs/rules/consistent-type-specifier-style.md) | Enforce or ban the use of inline type-only markers for named imports. | | | | 🔧 | | |
7783
| [dynamic-import-chunkname](docs/rules/dynamic-import-chunkname.md) | Enforce a leading comment with the webpackChunkName for dynamic imports. | | | | | 💡 | |
7884
| [exports-last](docs/rules/exports-last.md) | Ensure all exports appear after other statements. | | | | | | |
79-
| [extensions](docs/rules/extensions.md) | Ensure consistent use of file extension within the import path. | | | | | | |
8085
| [first](docs/rules/first.md) | Ensure all imports appear before other statements. | | | | 🔧 | | |
8186
| [group-exports](docs/rules/group-exports.md) | Prefer named exports to be grouped together in a single export declaration | | | | | | |
8287
| [imports-first](docs/rules/imports-first.md) | Replaced by `import/first`. | | | | 🔧 | ||

docs/rules/extensions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# import/extensions
22

3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
4+
35
<!-- end auto-generated rule header -->
46

57
Some file resolve algorithms allow you to omit the file extension within the import source path. For example the `node` resolver (which does not yet support ESM/`import`) can resolve `./foo/bar` to the absolute path `/User/someone/foo/bar.js` because the `.js` extension is resolved automatically by default in CJS. Depending on the resolver you can configure more extensions to get resolved automatically.

0 commit comments

Comments
 (0)