blob: e24750395f9088be26933f73c1e88e8ada52645e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { RULES } from "../constants";
import getEnvVarDependencies from "../utils/getEnvVarDependencies";
// Add the environment variables into the ESLint incremental cache key.
const envVars = getEnvVarDependencies({
cwd: process.cwd(),
});
const settings = {
turbo: {
envVars: envVars
? Object.values(envVars)
.flatMap((s) => Array.from(s))
.sort()
: [],
},
};
const config = {
settings,
plugins: ["turbo"],
rules: {
[`turbo/${RULES.noUndeclaredEnvVars}`]: "error",
},
};
export default config;
|