Skip to content

Commit

Permalink
chore: use flat entry for flat config verification
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Mar 7, 2025
1 parent eb56a5e commit 79cf679
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// NOTE: Keep this file in sync with `./eslint.base.config.js`!

const config = require(".");
const config = require("./index.js");

const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;

Expand Down
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

const globals = require("globals");
const base = require("./eslint.base.config");
const index = require("./index.js");
const flat = require("./flat.js");
const prettier = require("./prettier");
const eslintrc = require("./.eslintrc");

module.exports = [
...base,
index,
flat,
prettier,
{
rules: eslintrc.rules,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"scripts": {
"prettier": "prettier --write .",
"release": "clean-pkg-json && changeset publish",
"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",
"test": "yarn test:prettier && ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=true yarn test:with-env && ESLINT_USE_FLAT_CONFIG=false yarn test:with-env",
"test:cli-sanity": "node ./bin/cli.js index.js",
"test:cli-sanity-warning": "node ./bin/cli.js react.js ./bin/cli.js",
"test:deprecated": "eslint-find-rules --deprecated index.js",
Expand Down

0 comments on commit 79cf679

Please sign in to comment.