Sim Greenbaum
12/27/2023, 5:25 PM'log' is not defined no-undeferictgrubaugh
12/27/2023, 5:29 PMsuitescript/no-log-module ruleSim Greenbaum
12/27/2023, 5:32 PMSim Greenbaum
12/27/2023, 5:32 PMrules: {
"suitescript/script-type": "error",
"suitescript/no-log-module": "error",
},erictgrubaugh
12/27/2023, 5:37 PMerictgrubaugh
12/27/2023, 5:37 PMerictgrubaugh
12/27/2023, 5:38 PMlog module in all your scripts that use iterictgrubaugh
12/27/2023, 5:38 PMdefine(['N/log'], (log) => { ...
log.debug(...);
})erictgrubaugh
12/27/2023, 5:39 PMno-undef rule to a warning or none, since it looks like that's actually the one triggering the error hereSim Greenbaum
12/27/2023, 5:46 PMerictgrubaugh
12/27/2023, 6:16 PMlog as an eslint globalerictgrubaugh
12/27/2023, 6:16 PMerictgrubaugh
12/27/2023, 6:16 PMSim Greenbaum
12/27/2023, 6:16 PMextends: ["plugin:suitescript/all", "eslint:recommended"],
plugins: ["suitescript"],erictgrubaugh
12/27/2023, 6:17 PMerictgrubaugh
12/27/2023, 6:18 PM