You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
76
76
|[consistent-type-specifier-style](docs/rules/consistent-type-specifier-style.md)| Enforce or ban the use of inline type-only markers for named imports. |||| 🔧 |||
77
77
|[dynamic-import-chunkname](docs/rules/dynamic-import-chunkname.md)| Enforce a leading comment with the webpackChunkName for dynamic imports. ||||| 💡 ||
78
78
|[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. |||||||
79
+
|[extensions](docs/rules/extensions.md)| Ensure consistent use of file extension within the import path. ||||🔧|||
80
80
|[first](docs/rules/first.md)| Ensure all imports appear before other statements. |||| 🔧 |||
81
81
|[group-exports](docs/rules/group-exports.md)| Prefer named exports to be grouped together in a single export declaration |||||||
82
82
|[imports-first](docs/rules/imports-first.md)| Replaced by `import/first`. |||| 🔧 || ❌ |
Copy file name to clipboardExpand all lines: docs/rules/extensions.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# import/extensions
2
2
3
+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
4
+
3
5
<!-- end auto-generated rule header -->
4
6
5
7
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