Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0721a7

Browse files
authored
docs: fix double space in command (#19657)
* docs: fix double space in command* chore: format
1 parent1cfd702 commitc0721a7

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

‎docs/src/use/configure/migration-guide.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ To learn more about the flat config format, refer to [this blog post](https://es
1616

1717
For reference information on these configuration formats, refer to the following documentation:
1818

19-
-[eslintrc configuration files](configuration-files-deprecated)
20-
-[flat configuration files](configuration-files)
19+
-[eslintrc configuration files](configuration-files-deprecated)
20+
-[flat configuration files](configuration-files)
2121

2222
##Migrate Your Config File
2323

2424
To get started, use the[configuration migrator](https://npmjs.com/package/@eslint/migrate-config) on your existing configuration file (`.eslintrc`,`.eslintrc.json`,`.eslintrc.yml`), like this:
2525

2626
{{ npx_tabs({
27-
package:null,
28-
args:["@eslint/migrate-config", ".eslintrc.json"]
27+
package:"@eslint/migrate-config",
28+
args:[".eslintrc.json"]
2929
}) }}
3030

3131
This will create a starting point for your`eslint.config.js` file but is not guaranteed to work immediately without further modification. It will, however, do most of the conversion work mentioned in this guide automatically.
@@ -44,10 +44,10 @@ To use flat config with ESLint v8, place a `eslint.config.js` file in the root o
4444

4545
While the configuration file format has changed from eslintrc to flat config, the following has stayed the same:
4646

47-
-Syntax for configuring rules.
48-
-Syntax for configuring processors.
49-
-The CLI, except for the flag changes noted in[CLI Flag Changes](#cli-flag-changes).
50-
-Global variables are configured the same way, but on a different property (see[Configuring Language Options](#configuring-language-options)).
47+
- Syntax for configuring rules.
48+
- Syntax for configuring processors.
49+
- The CLI, except for the flag changes noted in[CLI Flag Changes](#cli-flag-changes).
50+
- Global variables are configured the same way, but on a different property (see[Configuring Language Options](#configuring-language-options)).
5151

5252
##Key Differences between Configuration Formats
5353

@@ -421,8 +421,8 @@ export default [
421421

422422
In eslintrc files, use the`extends` property to use predefined and shareable configs. ESLint comes with two predefined configs that you can access as strings:
423423

424-
-`"eslint:recommended"`: the rules recommended by ESLint.
425-
-`"eslint:all"`: all rules shipped with ESLint.
424+
-`"eslint:recommended"`: the rules recommended by ESLint.
425+
-`"eslint:all"`: all rules shipped with ESLint.
426426

427427
You can also use the`extends` property to extend a shareable config. Shareable configs can either be paths to local config files or npm package names.
428428

@@ -625,9 +625,9 @@ export default [
625625
626626
The following CLI flags are no longer supported with the flat config file format:
627627
628-
-`--rulesdir`
629-
-`--ext`
630-
-`--resolve-plugins-relative-to`
628+
-`--rulesdir`
629+
-`--ext`
630+
-`--resolve-plugins-relative-to`
631631
632632
The flag`--no-eslintrc` has been replaced with`--no-config-lookup`.
633633
@@ -691,9 +691,9 @@ With flat config, it's no longer possible to use a `package.json` file to config
691691
692692
The following changes have been made from the eslintrc to the flat config file format:
693693
694-
-The`root` option no longer exists. (Flat config files act as if`root:true` is set.)
695-
-The`files` option cannot be a single string anymore, it must be an array.
696-
-The`sourceType` option now supports the new value`"commonjs"` (`.eslintrc` supports it too, but it was never documented).
694+
- The`root` option no longer exists. (Flat config files act as if`root:true` is set.)
695+
- The`files` option cannot be a single string anymore, it must be an array.
696+
- The`sourceType` option now supports the new value`"commonjs"` (`.eslintrc` supports it too, but it was never documented).
697697
698698
## TypeScript Types for Flat Config Files
699699
@@ -718,6 +718,6 @@ In a future version of the ESLint plugin, you will no longer need to enable this
718718
719719
## Further Reading
720720
721-
-[Overview of the flat config file format blog post](https://eslint.org/blog/2022/08/new-config-system-part-2/)
722-
-[API usage of new configuration system blog post](https://eslint.org/blog/2022/08/new-config-system-part-3/)
723-
-[Background to new configuration system blog post](https://eslint.org/blog/2022/08/new-config-system-part-1/)
721+
- [Overview of the flat config file format blog post](https://eslint.org/blog/2022/08/new-config-system-part-2/)
722+
- [API usage of new configuration system blog post](https://eslint.org/blog/2022/08/new-config-system-part-3/)
723+
- [Background to new configuration system blog post](https://eslint.org/blog/2022/08/new-config-system-part-1/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp