Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 79cf679

Browse files
committedMar 7, 2025··
chore: use flat entry for flat config verification
1 parent eb56a5e commit 79cf679

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎.eslintrc.base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// NOTE: Keep this file in sync with `./eslint.base.config.js`!
77

8-
const config = require(".");
8+
const config = require("./index.js");
99

1010
const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
1111

‎eslint.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
const globals = require("globals");
1212
const base = require("./eslint.base.config");
13-
const index = require("./index.js");
13+
const flat = require("./flat.js");
1414
const prettier = require("./prettier");
1515
const eslintrc = require("./.eslintrc");
1616

1717
module.exports = [
1818
...base,
19-
index,
19+
flat,
2020
prettier,
2121
{
2222
rules: eslintrc.rules,

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"scripts": {
4848
"prettier": "prettier --write .",
4949
"release": "clean-pkg-json && changeset publish",
50-
"test": "yarn test:prettier && ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=true yarn test:with-env && ESLINT_USE_FLAT_CONFIG=false yarn test:with-env && yarn build",
50+
"test": "yarn test:prettier && ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=true yarn test:with-env && ESLINT_USE_FLAT_CONFIG=false yarn test:with-env",
5151
"test:cli-sanity": "node ./bin/cli.js index.js",
5252
"test:cli-sanity-warning": "node ./bin/cli.js react.js ./bin/cli.js",
5353
"test:deprecated": "eslint-find-rules --deprecated index.js",

0 commit comments

Comments
 (0)
Please sign in to comment.