diff --git a/packages/eslint-config-turbo/flat/index.js b/packages/eslint-config-turbo/flat/index.js new file mode 100644 index 0000000000000..833a8da2aebc2 --- /dev/null +++ b/packages/eslint-config-turbo/flat/index.js @@ -0,0 +1,12 @@ +const plugin = require("eslint-plugin-turbo"); + +module.exports = [ + { + plugins: { + turbo: plugin, + }, + rules: { + "turbo/no-undeclared-env-vars": "error", + }, + }, +]; diff --git a/packages/eslint-config-turbo/package.json b/packages/eslint-config-turbo/package.json index 5ffb56ad04179..40543c4e12bb9 100644 --- a/packages/eslint-config-turbo/package.json +++ b/packages/eslint-config-turbo/package.json @@ -22,6 +22,10 @@ "eslint-config" ], "main": "index.js", + "exports": { + "./flat": "./flat/index.js", + ".": "./index.js" + }, "author": "Vercel", "dependencies": { "eslint-plugin-turbo": "workspace:*"