
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.
@losant/eslint-config-losant
Advanced tools
ESLint config for all Losant projects.
npm install --save-dev @losant/eslint-config-losant
yarn add --dev @losant/eslint-config-losant
>=20.0.0
Node
import config from ' @losant/eslint-config-losant/env/node.js';
export default [
...config,
{
// custom overrides here
}
];
You should add an npm script to the package.json
of the project that specifies the eslint command. lint
is the barebones setup you'll need to then be able to do yarn run lint
. It's recommended that you add the other commands as well.
{
"scripts": {
"lint": "eslint \"**/*.js\" src test",
"lint:fix": "eslint --fix \"**/*.js\" src test",
"lint:staged": "lint-staged"
},
"lint-staged": {
"**/*.js": "eslint"
}
}
The resulting combination of extended rules, overrides, and plugins are documented together with their specified options:
Pre-Push hooks can be easily configured with Husky to encourage linting across a project. Simply add a dev dependency for Husky, and add configuration.
npm install --save-dev husky
yarn add --dev husky
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
Husky can be used for other Git Hooks as well. Check out their documentation for more details.
FAQs
Common eslint config for Losant
The npm package @losant/eslint-config-losant receives a total of 475 weekly downloads. As such, @losant/eslint-config-losant popularity was classified as not popular.
We found that @losant/eslint-config-losant demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.