source: frontend/node_modules/eslint-plugin-import/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 27.9 KB
Line 
1# eslint-plugin-import
2
3[![github actions][actions-image]][actions-url]
4[![travis-ci](https://travis-ci.org/import-js/eslint-plugin-import.svg?branch=main)](https://travis-ci.org/import-js/eslint-plugin-import)
5[![coverage][codecov-image]][codecov-url]
6[![win32 build status](https://ci.appveyor.com/api/projects/status/3mw2fifalmjlqf56/branch/main?svg=true)](https://ci.appveyor.com/project/import-js/eslint-plugin-import/branch/main)
7[![npm](https://img.shields.io/npm/v/eslint-plugin-import.svg)](https://www.npmjs.com/package/eslint-plugin-import)
8[![npm downloads](https://img.shields.io/npm/dt/eslint-plugin-import.svg?maxAge=2592000)](https://www.npmtrends.com/eslint-plugin-import)
9
10This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All the goodness that the ES2015+ static module syntax intends to provide, marked up in your editor.
11
12**IF YOU ARE USING THIS WITH SUBLIME**: see the [bottom section](#sublimelinter-eslint) for important info.
13
14## Rules
15
16<!-- begin auto-generated rules list -->
17
18💼 Configurations enabled in.\
19⚠️ Configurations set to warn in.\
20🚫 Configurations disabled in.\
21❗ Set in the `errors` configuration.\
22☑️ Set in the `recommended` configuration.\
23⌨️ Set in the `typescript` configuration.\
24🚸 Set in the `warnings` configuration.\
25🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
26💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\
27❌ Deprecated.
28
29### Helpful warnings
30
31| Name                       | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
32| :--------------------------------------------------------------------- | :------------------------------------------------------------------------------------ | :--- | :---- | :- | :- | :- | :- |
33| [export](docs/rules/export.md) | Forbid any invalid exports, i.e. re-export of the same name. | ❗ ☑️ | | | | | |
34| [no-deprecated](docs/rules/no-deprecated.md) | Forbid imported names marked with `@deprecated` documentation tag. | | | | | | |
35| [no-empty-named-blocks](docs/rules/no-empty-named-blocks.md) | Forbid empty named import blocks. | | | | 🔧 | 💡 | |
36| [no-extraneous-dependencies](docs/rules/no-extraneous-dependencies.md) | Forbid the use of extraneous packages. | | | | | | |
37| [no-mutable-exports](docs/rules/no-mutable-exports.md) | Forbid the use of mutable exports with `var` or `let`. | | | | | | |
38| [no-named-as-default](docs/rules/no-named-as-default.md) | Forbid use of exported name as identifier of default export. | | ☑️ 🚸 | | | | |
39| [no-named-as-default-member](docs/rules/no-named-as-default-member.md) | Forbid use of exported name as property of default export. | | ☑️ 🚸 | | | | |
40| [no-unused-modules](docs/rules/no-unused-modules.md) | Forbid modules without exports, or exports without matching import in another module. | | | | | | |
41
42### Module systems
43
44| Name                     | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
45| :----------------------------------------------------------------- | :------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- |
46| [no-amd](docs/rules/no-amd.md) | Forbid AMD `require` and `define` calls. | | | | | | |
47| [no-commonjs](docs/rules/no-commonjs.md) | Forbid CommonJS `require` calls and `module.exports` or `exports.*`. | | | | | | |
48| [no-import-module-exports](docs/rules/no-import-module-exports.md) | Forbid import statements with CommonJS module.exports. | | | | 🔧 | | |
49| [no-nodejs-modules](docs/rules/no-nodejs-modules.md) | Forbid Node.js builtin modules. | | | | | | |
50| [unambiguous](docs/rules/unambiguous.md) | Forbid potentially ambiguous parse goal (`script` vs. `module`). | | | | | | |
51
52### Static analysis
53
54| Name                        | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
55| :----------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------- | :--- | :- | :- | :- | :- | :- |
56| [default](docs/rules/default.md) | Ensure a default export is present, given a default import. | ❗ ☑️ | | | | | |
57| [enforce-node-protocol-usage](docs/rules/enforce-node-protocol-usage.md) | Enforce either using, or omitting, the `node:` protocol when importing Node.js builtin modules. | | | | 🔧 | | |
58| [named](docs/rules/named.md) | Ensure named imports correspond to a named export in the remote file. | ❗ ☑️ | | ⌨️ | | | |
59| [namespace](docs/rules/namespace.md) | Ensure imported namespaces contain dereferenced properties as they are dereferenced. | ❗ ☑️ | | | | | |
60| [no-absolute-path](docs/rules/no-absolute-path.md) | Forbid import of modules using absolute paths. | | | | 🔧 | | |
61| [no-cycle](docs/rules/no-cycle.md) | Forbid a module from importing a module with a dependency path back to itself. | | | | | | |
62| [no-dynamic-require](docs/rules/no-dynamic-require.md) | Forbid `require()` calls with expressions. | | | | | | |
63| [no-internal-modules](docs/rules/no-internal-modules.md) | Forbid importing the submodules of other modules. | | | | | | |
64| [no-relative-packages](docs/rules/no-relative-packages.md) | Forbid importing packages through relative paths. | | | | 🔧 | | |
65| [no-relative-parent-imports](docs/rules/no-relative-parent-imports.md) | Forbid importing modules from parent directories. | | | | | | |
66| [no-restricted-paths](docs/rules/no-restricted-paths.md) | Enforce which files can be imported in a given folder. | | | | | | |
67| [no-self-import](docs/rules/no-self-import.md) | Forbid a module from importing itself. | | | | | | |
68| [no-unresolved](docs/rules/no-unresolved.md) | Ensure imports point to a file/module that can be resolved. | ❗ ☑️ | | | | | |
69| [no-useless-path-segments](docs/rules/no-useless-path-segments.md) | Forbid unnecessary path segments in import and require statements. | | | | 🔧 | | |
70| [no-webpack-loader-syntax](docs/rules/no-webpack-loader-syntax.md) | Forbid webpack loader syntax in imports. | | | | | | |
71
72### Style guide
73
74| Name                            | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
75| :------------------------------------------------------------------------------- | :------------------------------------------------------------------------- | :- | :---- | :- | :- | :- | :- |
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| [dynamic-import-chunkname](docs/rules/dynamic-import-chunkname.md) | Enforce a leading comment with the webpackChunkName for dynamic imports. | | | | | 💡 | |
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. | | | | | | |
80| [first](docs/rules/first.md) | Ensure all imports appear before other statements. | | | | 🔧 | | |
81| [group-exports](docs/rules/group-exports.md) | Prefer named exports to be grouped together in a single export declaration | | | | | | |
82| [imports-first](docs/rules/imports-first.md) | Replaced by `import/first`. | | | | 🔧 | | ❌ |
83| [max-dependencies](docs/rules/max-dependencies.md) | Enforce the maximum number of dependencies a module can have. | | | | | | |
84| [newline-after-import](docs/rules/newline-after-import.md) | Enforce a newline after import statements. | | | | 🔧 | | |
85| [no-anonymous-default-export](docs/rules/no-anonymous-default-export.md) | Forbid anonymous values as default exports. | | | | | | |
86| [no-default-export](docs/rules/no-default-export.md) | Forbid default exports. | | | | | | |
87| [no-duplicates](docs/rules/no-duplicates.md) | Forbid repeated import of the same module in multiple places. | | ☑️ 🚸 | | 🔧 | | |
88| [no-named-default](docs/rules/no-named-default.md) | Forbid named default exports. | | | | | | |
89| [no-named-export](docs/rules/no-named-export.md) | Forbid named exports. | | | | | | |
90| [no-namespace](docs/rules/no-namespace.md) | Forbid namespace (a.k.a. "wildcard" `*`) imports. | | | | 🔧 | | |
91| [no-unassigned-import](docs/rules/no-unassigned-import.md) | Forbid unassigned imports | | | | | | |
92| [order](docs/rules/order.md) | Enforce a convention in module import order. | | | | 🔧 | | |
93| [prefer-default-export](docs/rules/prefer-default-export.md) | Prefer a default export if module exports a single name or multiple names. | | | | | | |
94
95<!-- end auto-generated rules list -->
96
97## `eslint-plugin-import` for enterprise
98
99Available as part of the Tidelift Subscription.
100
101The maintainers of `eslint-plugin-import` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-eslint-plugin-import?utm_source=npm-eslint-plugin-import&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
102
103## Installation
104
105```sh
106# inside your project's working tree
107npm install eslint-plugin-import --save-dev
108```
109
110### Config - Legacy (`.eslintrc`)
111
112All rules are off by default. However, you may extend one of the preset configs, or configure them manually in your `.eslintrc.(yml|json|js)`.
113
114 - Extending a preset config:
115
116```jsonc
117{
118 "extends": [
119 "eslint:recommended",
120 "plugin:import/recommended",
121 ],
122}
123```
124
125 - Configuring manually:
126
127```jsonc
128{
129 "rules": {
130 "import/no-unresolved": ["error", { "commonjs": true, "amd": true }],
131 "import/named": "error",
132 "import/namespace": "error",
133 "import/default": "error",
134 "import/export": "error",
135 // etc...
136 },
137},
138```
139
140### Config - Flat (`eslint.config.js`)
141
142All rules are off by default. However, you may configure them manually in your `eslint.config.(js|cjs|mjs)`, or extend one of the preset configs:
143
144```js
145import importPlugin from 'eslint-plugin-import';
146import js from '@eslint/js';
147
148export default [
149 js.configs.recommended,
150 importPlugin.flatConfigs.recommended,
151 {
152 files: ['**/*.{js,mjs,cjs}'],
153 languageOptions: {
154 ecmaVersion: 'latest',
155 sourceType: 'module',
156 },
157 rules: {
158 'no-unused-vars': 'off',
159 'import/no-dynamic-require': 'warn',
160 'import/no-nodejs-modules': 'warn',
161 },
162 },
163];
164```
165
166## TypeScript
167
168You may use the following snippet or assemble your own config using the granular settings described below it.
169
170Make sure you have installed [`@typescript-eslint/parser`] and [`eslint-import-resolver-typescript`] which are used in the following configuration.
171
172```jsonc
173{
174 "extends": [
175 "eslint:recommended",
176 "plugin:import/recommended",
177// the following lines do the trick
178 "plugin:import/typescript",
179 ],
180 "settings": {
181 "import/resolver": {
182 // You will also need to install and configure the TypeScript resolver
183 // See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
184 "typescript": true,
185 "node": true,
186 },
187 },
188}
189```
190
191[`@typescript-eslint/parser`]: https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser
192[`eslint-import-resolver-typescript`]: https://github.com/import-js/eslint-import-resolver-typescript
193
194### Config - Flat with `config()` in `typescript-eslint`
195
196If you are using the `config` method from [`typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint), ensure that the `flatConfig` is included within the `extends` array.
197
198```js
199import tseslint from 'typescript-eslint';
200import importPlugin from 'eslint-plugin-import';
201import js from '@eslint/js';
202
203export default tseslint.config(
204 js.configs.recommended,
205 // other configs...
206 {
207 files: ['**/*.{ts,tsx}'],
208 extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript],
209 // other configs...
210 }
211);
212```
213
214## Resolvers
215
216With the advent of module bundlers and the current state of modules and module
217syntax specs, it's not always obvious where `import x from 'module'` should look
218to find the file behind `module`.
219
220Up through v0.10ish, this plugin has directly used substack's [`resolve`] plugin,
221which implements Node's import behavior. This works pretty well in most cases.
222
223However, webpack allows a number of things in import module source strings that
224Node does not, such as loaders (`import 'file!./whatever'`) and a number of
225aliasing schemes, such as [`externals`]: mapping a module id to a global name at
226runtime (allowing some modules to be included more traditionally via script tags).
227
228In the interest of supporting both of these, v0.11 introduces resolvers.
229
230Currently [Node] and [webpack] resolution have been implemented, but the
231resolvers are just npm packages, so [third party packages are supported](https://github.com/import-js/eslint-plugin-import/wiki/Resolvers) (and encouraged!).
232
233You can reference resolvers in several ways (in order of precedence):
234
235 - as a conventional `eslint-import-resolver` name, like `eslint-import-resolver-foo`:
236
237 ```jsonc
238// .eslintrc
239{
240 "settings": {
241 // uses 'eslint-import-resolver-foo':
242 "import/resolver": "foo",
243 },
244}
245```
246
247```yaml
248# .eslintrc.yml
249settings:
250 # uses 'eslint-import-resolver-foo':
251 import/resolver: foo
252```
253
254```js
255// .eslintrc.js
256module.exports = {
257 settings: {
258 'import/resolver': {
259 foo: { someConfig: value }
260 }
261 }
262}
263```
264
265 - with a full npm module name, like `my-awesome-npm-module`:
266
267```jsonc
268// .eslintrc
269{
270 "settings": {
271 "import/resolver": "my-awesome-npm-module",
272 },
273}
274```
275
276```yaml
277# .eslintrc.yml
278settings:
279 import/resolver: 'my-awesome-npm-module'
280```
281
282```js
283// .eslintrc.js
284module.exports = {
285 settings: {
286 'import/resolver': {
287 'my-awesome-npm-module': { someConfig: value }
288 }
289 }
290}
291```
292
293 - with a filesystem path to resolver, defined in this example as a `computed property` name:
294
295```js
296// .eslintrc.js
297module.exports = {
298 settings: {
299 'import/resolver': {
300 [path.resolve('../../../my-resolver')]: { someConfig: value }
301 }
302 }
303}
304```
305
306Relative paths will be resolved relative to the source's nearest `package.json` or
307the process's current working directory if no `package.json` is found.
308
309If you are interesting in writing a resolver, see the [spec](./resolvers/README.md) for more details.
310
311[`resolve`]: https://www.npmjs.com/package/resolve
312[`externals`]: https://webpack.github.io/docs/library-and-externals.html
313
314[Node]: https://www.npmjs.com/package/eslint-import-resolver-node
315[webpack]: https://www.npmjs.com/package/eslint-import-resolver-webpack
316
317## Settings
318
319You may set the following settings in your `.eslintrc`:
320
321### `import/extensions`
322
323A list of file extensions that will be parsed as modules and inspected for
324`export`s.
325
326This defaults to `['.js']`, unless you are using the `react` shared config,
327in which case it is specified as `['.js', '.jsx']`. Despite the default,
328if you are using TypeScript (without the `plugin:import/typescript` config
329described above) you must specify the new extensions (`.ts`, and also `.tsx`
330if using React).
331
332```js
333"settings": {
334 "import/extensions": [
335 ".js",
336 ".jsx"
337 ]
338}
339```
340
341If you require more granular extension definitions, you can use:
342
343```js
344"settings": {
345 "import/resolver": {
346 "node": {
347 "extensions": [
348 ".js",
349 ".jsx"
350 ]
351 }
352 }
353}
354```
355
356Note that this is different from (and likely a subset of) any `import/resolver`
357extensions settings, which may include `.json`, `.coffee`, etc. which will still
358factor into the `no-unresolved` rule.
359
360Also, the following `import/ignore` patterns will overrule this list.
361
362### `import/ignore`
363
364A list of regex strings that, if matched by a path, will
365not report the matching module if no `export`s are found.
366In practice, this means rules other than [`no-unresolved`](./docs/rules/no-unresolved.md#ignore) will not report on any
367`import`s with (absolute filesystem) paths matching this pattern.
368
369`no-unresolved` has its own [`ignore`](./docs/rules/no-unresolved.md#ignore) setting.
370
371```jsonc
372{
373 "settings": {
374 "import/ignore": [
375 "\.coffee$", // fraught with parse errors
376 "\.(scss|less|css)$", // can't parse unprocessed CSS modules, either
377 ],
378 },
379}
380```
381
382### `import/core-modules`
383
384An array of additional modules to consider as "core" modules--modules that should
385be considered resolved but have no path on the filesystem. Your resolver may
386already define some of these (for example, the Node resolver knows about `fs` and
387`path`), so you need not redefine those.
388
389For example, Electron exposes an `electron` module:
390
391```js
392import 'electron' // without extra config, will be flagged as unresolved!
393```
394
395that would otherwise be unresolved. To avoid this, you may provide `electron` as a
396core module:
397
398```jsonc
399// .eslintrc
400{
401 "settings": {
402 "import/core-modules": ["electron"],
403 },
404}
405```
406
407In Electron's specific case, there is a shared config named `electron`
408that specifies this for you.
409
410Contribution of more such shared configs for other platforms are welcome!
411
412### `import/external-module-folders`
413
414An array of folders. Resolved modules only from those folders will be considered as "external". By default - `["node_modules"]`. Makes sense if you have configured your path or webpack to handle your internal paths differently and want to consider modules from some folders, for example `bower_components` or `jspm_modules`, as "external".
415
416This option is also useful in a monorepo setup: list here all directories that contain monorepo's packages and they will be treated as external ones no matter which resolver is used.
417
418If you are using `yarn` PnP as your package manager, add the `.yarn` folder and all your installed dependencies will be considered as `external`, instead of `internal`.
419
420Each item in this array is either a folder's name, its subpath, or its absolute prefix path:
421
422 - `jspm_modules` will match any file or folder named `jspm_modules` or which has a direct or non-direct parent named `jspm_modules`, e.g. `/home/me/project/jspm_modules` or `/home/me/project/jspm_modules/some-pkg/index.js`.
423
424 - `packages/core` will match any path that contains these two segments, for example `/home/me/project/packages/core/src/utils.js`.
425
426 - `/home/me/project/packages` will only match files and directories inside this directory, and the directory itself.
427
428Please note that incomplete names are not allowed here so `components` won't match `bower_components` and `packages/ui` won't match `packages/ui-utils` (but will match `packages/ui/utils`).
429
430### `import/parsers`
431
432A map from parsers to file extension arrays. If a file extension is matched, the
433dependency parser will require and use the map key as the parser instead of the
434configured ESLint parser. This is useful if you're inter-op-ing with TypeScript
435directly using webpack, for example:
436
437```jsonc
438// .eslintrc
439{
440 "settings": {
441 "import/parsers": {
442 "@typescript-eslint/parser": [".ts", ".tsx"],
443 },
444 },
445}
446```
447
448In this case, [`@typescript-eslint/parser`](https://www.npmjs.com/package/@typescript-eslint/parser)
449must be installed and require-able from the running `eslint` module's location
450(i.e., install it as a peer of ESLint).
451
452This is currently only tested with `@typescript-eslint/parser` (and its predecessor,
453`typescript-eslint-parser`) but should theoretically work with any moderately
454ESTree-compliant parser.
455
456It's difficult to say how well various plugin features will be supported, too,
457depending on how far down the rabbit hole goes. Submit an issue if you find strange
458behavior beyond here, but steel your heart against the likely outcome of closing
459with `wontfix`.
460
461### `import/resolver`
462
463See [resolvers](#resolvers).
464
465### `import/cache`
466
467Settings for cache behavior. Memoization is used at various levels to avoid the copious amount of `fs.statSync`/module parse calls required to correctly report errors.
468
469For normal `eslint` console runs, the cache lifetime is irrelevant, as we can strongly assume that files should not be changing during the lifetime of the linter process (and thus, the cache in memory)
470
471For long-lasting processes, like [`eslint_d`] or [`eslint-loader`], however, it's important that there be some notion of staleness.
472
473If you never use [`eslint_d`] or [`eslint-loader`], you may set the cache lifetime to `Infinity` and everything should be fine:
474
475```jsonc
476// .eslintrc
477{
478 "settings": {
479 "import/cache": {
480 "lifetime": "∞", // or Infinity, in a JS config
481 },
482 },
483}
484```
485
486Otherwise, set some integer, and cache entries will be evicted after that many seconds have elapsed:
487
488```jsonc
489// .eslintrc
490{
491 "settings": {
492 "import/cache": {
493 "lifetime": 5, // 30 is the default
494 },
495 },
496}
497```
498
499[`eslint_d`]: https://www.npmjs.com/package/eslint_d
500[`eslint-loader`]: https://www.npmjs.com/package/eslint-loader
501
502### `import/internal-regex`
503
504A regex for packages should be treated as internal. Useful when you are utilizing a monorepo setup or developing a set of packages that depend on each other.
505
506By default, any package referenced from [`import/external-module-folders`](#importexternal-module-folders) will be considered as "external", including packages in a monorepo like yarn workspace or lerna environment. If you want to mark these packages as "internal" this will be useful.
507
508For example, if your packages in a monorepo are all in `@scope`, you can configure `import/internal-regex` like this
509
510```jsonc
511// .eslintrc
512{
513 "settings": {
514 "import/internal-regex": "^@scope/",
515 },
516}
517```
518
519### `import/node-version`
520
521A string that represents the version of Node.js that you are using.
522A falsy value will imply the version of Node.js that you are running ESLint with.
523
524```jsonc
525// .eslintrc
526{
527 "settings": {
528 "import/node-version": "22.3.4",
529 },
530}
531```
532
533## SublimeLinter-eslint
534
535SublimeLinter-eslint introduced a change to support `.eslintignore` files
536which altered the way file paths are passed to ESLint when linting during editing.
537This change sends a relative path instead of the absolute path to the file (as ESLint
538normally provides), which can make it impossible for this plugin to resolve dependencies
539on the filesystem.
540
541This workaround should no longer be necessary with the release of ESLint 2.0, when
542`.eslintignore` will be updated to work more like a `.gitignore`, which should
543support proper ignoring of absolute paths via `--stdin-filename`.
544
545In the meantime, see [roadhump/SublimeLinter-eslint#58](https://github.com/roadhump/SublimeLinter-eslint/issues/58)
546for more details and discussion, but essentially, you may find you need to add the following
547`SublimeLinter` config to your Sublime project file:
548
549```json
550{
551 "folders":
552 [
553 {
554 "path": "code"
555 }
556 ],
557 "SublimeLinter":
558 {
559 "linters":
560 {
561 "eslint":
562 {
563 "chdir": "${project}/code"
564 }
565 }
566 }
567}
568```
569
570Note that `${project}/code` matches the `code` provided at `folders[0].path`.
571
572The purpose of the `chdir` setting, in this case, is to set the working directory
573from which ESLint is executed to be the same as the directory on which SublimeLinter-eslint
574bases the relative path it provides.
575
576See the SublimeLinter docs on [`chdir`](https://www.sublimelinter.com/en/latest/linter_settings.html#chdir)
577for more information, in case this does not work with your project.
578
579If you are not using `.eslintignore`, or don't have a Sublime project file, you can also
580do the following via a `.sublimelinterrc` file in some ancestor directory of your
581code:
582
583```json
584{
585 "linters": {
586 "eslint": {
587 "args": ["--stdin-filename", "@"]
588 }
589 }
590}
591```
592
593I also found that I needed to set `rc_search_limit` to `null`, which removes the file
594hierarchy search limit when looking up the directory tree for `.sublimelinterrc`:
595
596In Package Settings / SublimeLinter / User Settings:
597
598```json
599{
600 "user": {
601 "rc_search_limit": null
602 }
603}
604```
605
606I believe this defaults to `3`, so you may not need to alter it depending on your
607project folder max depth.
608
609[codecov-image]: https://codecov.io/gh/import-js/eslint-plugin-import/branch/main/graphs/badge.svg
610[codecov-url]: https://app.codecov.io/gh/import-js/eslint-plugin-import/
611[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/import-js/eslint-plugin-import
612[actions-url]: https://github.com/import-js/eslint-plugin-import
Note: See TracBrowser for help on using the repository browser.