Comments (2)
@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:
- Understand the Differences:
- CommonJS uses
require()
for importing modules andmodule.exports
orexports
for exporting. - ESM introduces the import and export syntax natively to JavaScript.
- ESM offers better performance, compatibility, and static analysis benefits.
- Update Your Code:
- Start by converting your module syntax from
require
toimport
. - Rename files to use the
.mjs
extension (or adjust thetype
property inpackage.json
if you prefer.js
for ESM).
- Package.json Configuration (optional):
- Set
"type": "module"
in yourpackage.json
to enable ESM.
Ensure backward compatibility by specifying.js
or.mjs
extensions for ESM files.
from apicenter-analyzer.
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
from apicenter-analyzer.
Related Issues (8)
- `azd up` went wrong when choosing existing apic resource HOT 3
- An extra slash in `main.bicep`
- Fail to run the command `azd pipeline config`
- Unable to configure eventgrid subscription HOT 1
- Action required: migrate or opt-out of migration to GitHub inside Microsoft HOT 2
- Register azd template in `awesome-azd` repo HOT 1
- Bug: API Definition is Analyzer is not in pretty format, HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apicenter-analyzer.