
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@condor-labs/matchbox
Advanced tools
Helper module to automatically configure Prettier and ESLInt using the standard configuration for every Condor Labs project.
Currently, when development teams have many projects, it is very tedious to create a configuration for each project to maintain a clear and understandable code. This module helps to create the configuration of Prettier, ESLint, and Git Hooks, with the packages of @condor-labs/prettier-config and @condor-labs/eslint-config to solve the problems without the need for the developer to make manual configurations.
NOTE: Install and configure Matchbox using Node version 15.14.0. After this, you can use the Node version your project needs to run.
To use the library you just need to follow the following steps:
npx @condor-labs/matchbox@latest
1. Install everything
Important! If you continue with the installation, the husky package will not be installed, and you won't have the pre-commit git hook set up.
Are you sure you want to continue? (y/n) [y]:
Does your project is or includes a Frontend? (y/n) [y]:
y in the previous step, indicate whether your frontend app is based on reactDoes it include React? (y/n) [y]:
Does your project is or includes a Backend? (y/n) [y]:
JavaScript or TypeScript? (js/ts) [js]:
TIP: Run npm list --depth=1 to see the dependencies of your dependencies (like react-scripts for Create React App and gatsby for Gatsby JS). Like for these two examples, the eslint version might be buried a bit deeper in your dependency tree.
Eslint version (default 7.23.0)
Omit directories or files (node_modules included by default) (separate with space): node_modules dist *.svg
Important! When applying these changes in your project, keep in mind that this is a 2-step process:
When you install matchbox, it runs prettier automatically on all the files but only reports on warnings and errors found by ESLint
For this, you can run npm run lint to run ESLint again and automatically fix some warnings. The rest need to be fixed manually.
Note: To analyze and correct errors with ESLint run the following script npm run lint
The script makes the following changes to our project
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
Important! If, after running npm start or npm run build, you get package dependency errors, we recommend that you delete the package-lock.json file and run npm install.
If you cloned a repo that has Matchbox installed, and you have problems with the git precommit hook, just choose 3 in the main menu.
3. Install/Reconfigure Husky
Warning: The 'uninstall' command deletes the package-lock.json. If you don't have the exact versions of your dependencies in the package.json file, in other words, if you have versions like this ^1.2.3, abstain from running this command.
npx @condor-labs/matchbox@latest
2 to uninstall everything from the main menu.2. Uninstall everything
To upgrade to the latest version of Matchbox, just run npx @condor-labs/matchbox and install it again.
package-lock.json fileYou will need to update the package.json file placed in the root folder.
Identify the property version and increase the right number for the version bump.
npm login
[Enter username]
[Enter password]
[Enter email]
If everything is ok, the console will show you something like this: Logged in as USERNAME on https://registry.npmjs.org/.
npm publish --access public
Ref: https://docs.npmjs.com/getting-started/publishing-npm-packages
Note: you will need to have an NPM account. If you don't have one, create one here: https://www.npmjs.com/signup
The original author and current lead maintainer of this module is the @condor-labs development team.
More about Condor Labs Here.
FAQs
Helper module to automatically configure Prettier and ESLInt using the standard configuration for every Condor Labs project.
The npm package @condor-labs/matchbox receives a total of 13 weekly downloads. As such, @condor-labs/matchbox popularity was classified as not popular.
We found that @condor-labs/matchbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.