
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.
eslint-plugin-use-macros
Advanced tools
ESLint rules for libraries which supports the babel-macros
This plugin provides the rules to use the babel macros for specific libraries (such as styled-components and graphql-tag.)
// invalid
import gql from "graphql-tag";
const QUERY = gql`
query getUser {
user {
id
title
}
}
`;
š
// valid
import { gql } from "graphql.macro";
const QUERY = gql`
query getUser {
user {
id
title
}
}
`;
npm install --save eslint-plugin-use-macros
# or
yarn add eslint-plugin-use-macros
import pluginUseMacros from "eslint-plugin-use-macros";
export default [
{
plugins: {
"use-macros": pluginUseMacros,
},
rules: {
"use-macros/styled-components": "error",
},
},
];
{
"plugins": ["use-macros"],
"rules": {
"use-macros/styled-components": "error"
}
}
FAQs
ESLint rules for libraries which supports the babel-macros
The npm package eslint-plugin-use-macros receives a total of 4,738 weekly downloads. As such, eslint-plugin-use-macros popularity was classified as popular.
We found that eslint-plugin-use-macros demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 2 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.