Skip to content

Commit eab65c7

Browse files
authored
docs: update eslint versions in examples (#20664)
* chore: update `eslint` versions in examples * wip
1 parent 6b86fcf commit eab65c7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/_examples/custom-rule-tutorial-code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"eslint-plugin"
1111
],
1212
"peerDependencies": {
13-
"eslint": ">=9.0.0"
13+
"eslint": ">=10.0.0"
1414
},
1515
"scripts": {
1616
"test": "node enforce-foo-bar.test.js"
1717
},
1818
"author": "",
1919
"license": "ISC",
2020
"devDependencies": {
21-
"eslint": "^9.35.0"
21+
"eslint": "^10.0.0"
2222
}
2323
}

docs/_examples/integration-tutorial-code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"author": "",
1212
"license": "ISC",
1313
"dependencies": {
14-
"eslint": "^9.35.0"
14+
"eslint": "^10.0.0"
1515
}
1616
}

docs/src/extend/custom-rule-tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ To publish a plugin containing a rule to npm, you need to configure the `package
381381
1. `"name"`: A unique name for the package. No other package on npm can have the same name.
382382
1. `"main"`: The relative path to the plugin file. Following this example, the path is `"eslint-plugin-example.js"`.
383383
1. `"description"`: A description of the package that's viewable on npm.
384-
1. `"peerDependencies"`: Add `"eslint": ">=9.0.0"` as a peer dependency. Any version greater than or equal to that is necessary to use the plugin. Declaring `eslint` as a peer dependency requires that users add the package to the project separately from the plugin.
384+
1. `"peerDependencies"`: Add `"eslint": ">=10.0.0"` as a peer dependency. Any version greater than or equal to that is necessary to use the plugin. Declaring `eslint` as a peer dependency requires that users add the package to the project separately from the plugin.
385385
1. `"keywords"`: Include the standard keywords `["eslint", "eslintplugin", "eslint-plugin"]` to make the package easy to find. You can add any other keywords that might be relevant to your plugin as well.
386386

387387
A complete annotated example of what a plugin's `package.json` file should look like:
@@ -398,9 +398,9 @@ A complete annotated example of what a plugin's `package.json` file should look
398398
"scripts": {
399399
"test": "node enforce-foo-bar.test.js"
400400
},
401-
// Add eslint>=9.0.0 as a peer dependency.
401+
// Add eslint>=10.0.0 as a peer dependency.
402402
"peerDependencies": {
403-
"eslint": ">=9.0.0"
403+
"eslint": ">=10.0.0"
404404
},
405405
// Add these standard keywords to make plugin easy to find!
406406
"keywords": [
@@ -411,7 +411,7 @@ A complete annotated example of what a plugin's `package.json` file should look
411411
"author": "",
412412
"license": "ISC",
413413
"devDependencies": {
414-
"eslint": "^9.0.0"
414+
"eslint": "^10.0.0"
415415
}
416416
}
417417
```

docs/src/extend/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ In order to make your plugin available publicly, you have to publish it on npm.
385385
```json
386386
{
387387
"peerDependencies": {
388-
"eslint": ">=9.0.0"
388+
"eslint": ">=10.0.0"
389389
}
390390
}
391391
```

0 commit comments

Comments
 (0)