Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eslint/eslint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.1.0
Choose a base ref
...
head repository: eslint/eslint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b4d2512809a1b28466ad1ce5af9d01c181b9bf9e
Choose a head ref
  • 3 commits
  • 9 files changed
  • 2 contributors

Commits on Apr 22, 2024

  1. fix: use @eslint/create-config latest (#18373)

    * docs: use @eslint/create-config latest
    
    refs: #18369, #18361,
    
    * chore: review suggestions
    aladdin-add authored Apr 22, 2024
    Copy the full SHA
    a26b402 View commit details
  2. Build: changelog update for 9.1.1

    Jenkins committed Apr 22, 2024
    Copy the full SHA
    ef36aa4 View commit details
  3. 9.1.1

    Jenkins committed Apr 22, 2024
    Copy the full SHA
    b4d2512 View commit details
Showing with 14 additions and 10 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +2 −2 bin/eslint.js
  4. +1 −1 docs/package.json
  5. +1 −1 docs/src/_data/versions.json
  6. +1 −1 docs/src/use/formatters/html-formatter-example.html
  7. +2 −2 docs/src/use/getting-started.md
  8. +1 −1 messages/no-config-found.js
  9. +1 −1 package.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v9.1.1 - April 22, 2024

* [`a26b402`](https://github.com/eslint/eslint/commit/a26b40279f283853717236b44602b27b57f0b627) fix: use @eslint/create-config latest (#18373) (唯然)

v9.1.0 - April 19, 2024

* [`d9a2983`](https://github.com/eslint/eslint/commit/d9a2983e1301599117cf554aa6a9bd44b84f2e55) chore: upgrade @eslint/js to v9.1.1 (#18367) (Francesco Trotta)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1
You can install and configure ESLint using this command:

```shell
npm init @eslint/config
npm init @eslint/config@latest
```

After that, you can run ESLint on any file or directory like this:
4 changes: 2 additions & 2 deletions bin/eslint.js
Original file line number Diff line number Diff line change
@@ -140,11 +140,11 @@ ${getErrorMessage(error)}`;
if (process.argv.includes("--init")) {

// `eslint --init` has been moved to `@eslint/create-config`
console.warn("You can also run this command directly using 'npm init @eslint/config'.");
console.warn("You can also run this command directly using 'npm init @eslint/config@latest'.");

const spawn = require("cross-spawn");

spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
spawn.sync("npm", ["init", "@eslint/config@latest"], { encoding: "utf8", stdio: "inherit" });
return;
}

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs-eslint",
"private": true,
"version": "9.1.0",
"version": "9.1.1",
"description": "",
"main": "index.js",
"keywords": [],
2 changes: 1 addition & 1 deletion docs/src/_data/versions.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"path": "/docs/head/"
},
{
"version": "9.1.0",
"version": "9.1.1",
"branch": "latest",
"path": "/docs/latest/"
},
2 changes: 1 addition & 1 deletion docs/src/use/formatters/html-formatter-example.html
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@
<div id="overview" class="bg-2">
<h1>ESLint Report</h1>
<div>
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Apr 19 2024 21:29:08 GMT+0000 (Coordinated Universal Time)
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Mon Apr 22 2024 19:21:47 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<table>
4 changes: 2 additions & 2 deletions docs/src/use/getting-started.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ To use ESLint, you must have [Node.js](https://nodejs.org/en/) (`^18.18.0`, `^20
You can install and configure ESLint using this command:

```shell
npm init @eslint/config
npm init @eslint/config@latest
```

If you want to use a specific shareable config that is hosted on npm, you can use the `--config` option and specify the package name:
@@ -30,7 +30,7 @@ If you want to use a specific shareable config that is hosted on npm, you can us
# use `eslint-config-standard` shared config

# npm 7+
npm init @eslint/config -- --config eslint-config-standard
npm init @eslint/config@latest -- --config eslint-config-standard

```

2 changes: 1 addition & 1 deletion messages/no-config-found.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ module.exports = function(it) {
return `
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
npm init @eslint/config
npm init @eslint/config@latest
ESLint looked for configuration files in ${directoryPath} and its ancestors. If it found none, it then looked in your home directory.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "9.1.0",
"version": "9.1.1",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
"description": "An AST-based pattern checker for JavaScript.",
"bin": {