Open UniperMaster opened 7 months ago
@UniperMaster : Thank you so much for reaching out. Functions will work with the ruleset.
You are currently using the SimpleJS syntax and in order for our linter to work, it needs ES syntax. Our current recommendation is for you to transition from SimpleJS to ES syntax.
Transitioning from SimpleJS syntax (which is similar to CommonJS) to ES Modules (ESM) involves a few steps. Let’s explore how you can make this transition:
require()
for importing modules and module.exports
or exports
for exporting.require
to import
..mjs
extension (or adjust thetype
property in package.json
if you prefer.js
for ESM)."type": "module"
in your package.json
to enable ESM.
Ensure backward compatibility by specifying .js
or .mjs
extensions for ESM files.For the future: we are currently having conversations about supporting this in the future. In the mean time, I will add a note to the readme file
Do you have an example of using function in the workset
I tried with the following ruleset and function but it fails to run
and function
This is based upon the azure ruleset azure-api-style-guide
Ive also attached the azure fucntions logs query_data.csv log