Skip to content

Commit

Permalink
docs: remove configuration-files-new.md (#17907)
Browse files Browse the repository at this point in the history
* docs: remove configuration-files-new.md

* fix link in command-line-interface

* fix link in custom-rule-tutorial
  • Loading branch information
mdjermanovic committed Dec 27, 2023
1 parent 63ae191 commit f55881f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 690 deletions.
2 changes: 1 addition & 1 deletion docs/src/extend/custom-rule-tutorial.md
Expand Up @@ -284,7 +284,7 @@ You might want to use a locally defined plugin in one of the following scenarios
* You want to test the plugin before publishing it to npm.
* You want to use a plugin, but do not want to publish it to npm.

Before you can add the plugin to the project, create an ESLint configuration for your project using a [flat configuration file](../use/configure/configuration-files-new), `eslint.config.js`:
Before you can add the plugin to the project, create an ESLint configuration for your project using a [flat configuration file](../use/configure/configuration-files), `eslint.config.js`:

```shell
touch eslint.config.js
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/command-line-interface.md
Expand Up @@ -36,7 +36,7 @@ Please note that when passing a glob as a parameter, it is expanded by your shel
npx eslint "lib/**"
```

If you are using a [flat configuration file](./configure/configuration-files-new) (`eslint.config.js`), you can also omit the file arguments and ESLint will use `.`. For instance, these two lines perform the same operation:
If you are using a [flat configuration file](./configure/configuration-files) (`eslint.config.js`), you can also omit the file arguments and ESLint will use `.`. For instance, these two lines perform the same operation:

```shell
npx eslint .
Expand Down
679 changes: 0 additions & 679 deletions docs/src/use/configure/configuration-files-new.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/use/configure/ignore.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: ignore files
parent: configure
title: Ignore Files
order: 7
order: 6

---

Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/configure/language-options.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: configure language options
parent: configure
title: Configure Language Options
order: 3
order: 2
---

::: tip
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/configure/migration-guide.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: migration guide
parent: configure
title: Configuration Migration Guide
order: 8
order: 7
---

This guide provides an overview of how you can migrate your ESLint configuration file from the eslintrc format (typically configured in `.eslintrc.js` or `.eslintrc.json` files) to the new flat config format (typically configured in an `eslint.config.js` file).
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/configure/parser.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: configure parser
parent: configure
title: Configure a Parser
order: 6
order: 5
---

::: tip
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/configure/plugins.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: configure plugins
parent: configure
title: Configure Plugins
order: 5
order: 4

---

Expand Down
6 changes: 2 additions & 4 deletions docs/src/use/configure/rules.md
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: configure rules
parent: configure
title: Configure Rules
order: 4
order: 3

---

Expand Down Expand Up @@ -319,8 +319,6 @@ export default [
rules: {
"no-unused-expressions": "off"
}
"no-unused-expressions": "off"
}
}
];
```
Expand All @@ -339,7 +337,7 @@ export default [
rules: {
"no-unused-expressions": "error"
}
}
}
];
```

Expand Down

0 comments on commit f55881f

Please sign in to comment.