diff --git a/.eslintrc.base.js b/.eslintrc.base.js index 0b80fb9..f8bf114 100644 --- a/.eslintrc.base.js +++ b/.eslintrc.base.js @@ -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; diff --git a/eslint.config.js b/eslint.config.js index 9bc1e6f..372f9e9 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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, diff --git a/package.json b/package.json index e695539..c0a6449 100644 --- a/package.json +++ b/package.json @@ -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",