You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says that the .secretlintrc can be of type {json,yml,js}, but I'm having trouble implementing a configuration of type .js in my project. I can't see or find any examples where a .js configuration has actually been implemented anywhere.
In the documentation it states that secretlint is ESM, but if I create a .secretlintrc.js file I get warnings about 'export' being an unexpected token when trying to execute the file.
It works using the old 'module.exports' syntax, but not the ESM syntax. Could you please provide a working template example or highlight where I might be going wrong? Thanks.
The text was updated successfully, but these errors were encountered:
The documentation says that the .secretlintrc can be of type {json,yml,js}, but I'm having trouble implementing a configuration of type .js in my project. I can't see or find any examples where a .js configuration has actually been implemented anywhere.
Package manager: PNPM v8
Node: v20
Type: "module".
In the documentation it states that secretlint is ESM, but if I create a .secretlintrc.js file I get warnings about 'export' being an unexpected token when trying to execute the file.
It works using the old 'module.exports' syntax, but not the ESM syntax. Could you please provide a working template example or highlight where I might be going wrong? Thanks.
The text was updated successfully, but these errors were encountered: