
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@madgex/eslint-config-madgex
Advanced tools
ESLint rules related to Madgex projects.
npm install eslint@9 @madgex/eslint-config-madgex -save-dev
Use the official VSCode ESLint Extension v3.0.5+ (you might need to switch to pre-release version)
⚠️ Recomended to use only 1 type of source file in your repo, either
commonjs
ormodule
(esm).eslint
&eslint-plugin-n
(this config depends on) has difficulty supporting both at the same time in a monorepo.
eslint-plugin-n
which is a part of our config, reads the package.json for node version, and what type
of JS files you use (ESM or commonjs).
// package.json
{
...
"type": "module", // "module" (ESM), or "commonjs" - you cant use both
{
"engines": {
"node": ">=18"
}
},
...
}
eslint-plugin-n
also recognises .npmignore
files which will silence warnings of missing dependancies when they are installed as devDependancies
.
// eslint.config.js
import configMadgex from '@madgex/eslint-config-madgex';
export default [...configMadgex];
config order matters.
// eslint.config.js
import configMadgex from '@madgex/eslint-config-madgex';
import pluginVue from 'eslint-plugin-vue';
// pluginVue.configs['flat/recommended'] has prettier conflicts
export default [...configMadgex, ...pluginVue.configs['flat/essential']];
Notes regarding specific rules enforced in this config:
no-param-reassign
- Disallow reassigning function parameters, except for accu
which is the accumulator in a .reduce()
e.g.
Array.reduce((accu, key) => {
accu[key] = getVal(key);
return accu;
}, {});
no-unused-vars
- Disallow unused variables, except for request
and h
as found on hapi.js route handlers.
FAQs
Madgex ESLint config - based on eslint-config-airbnb
The npm package @madgex/eslint-config-madgex receives a total of 59 weekly downloads. As such, @madgex/eslint-config-madgex popularity was classified as not popular.
We found that @madgex/eslint-config-madgex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.