Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@companion-module/tools
Advanced tools
This is a collection of tools used for developing and verifying Companion modules.
This is a collection of tools used for developing and verifying Companion modules.
When used, this will build a module ready for distribution.
More information on this command is available on the wiki.
Generate the new format manifest from an old package.json
.
v2.0 of this library includes some breaking changes to how eslint and prettier handled. Instead of it being installed as a dependency and being directly usable by modules, it has to be explicitly installed by modules.
This change was done for two reasons:
To resolve this, you will need to do a yarn add --dev eslint prettier
in your modules to install the dependencies, and update any scripts to remove the invocation hacks.
This also allows for eslint to be updated to v9, which requires a new config format. This unfortunately means that your config file needs to be replaced.
A new basic config should be called eslint.config.mjs
(remove any existing .eslintrc.json
or .eslintrc.cjs
) and could contain:
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'
export default generateEslintConfig({})
If using TypeScript, you should specify a typescriptRoot
:
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'
export default generateEslintConfig({
enableTypescript: true,
})
You can easily override rules in this setup with:
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'
const baseConfig = await generateEslintConfig({
enableTypescript: true,
})
const customConfig = [
...baseConfig,
{
rules: {
'n/no-missing-import': 'off',
'node/no-unpublished-import': 'off',
},
},
]
export default customConfig
More options are available for the generateEslintConfig
function, check the wiki or the method signature to see what is available.
FAQs
This is a collection of tools used for developing and verifying Companion modules.
The npm package @companion-module/tools receives a total of 273 weekly downloads. As such, @companion-module/tools popularity was classified as not popular.
We found that @companion-module/tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.