
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@2bad/axiom
Advanced tools
Effortless TypeScript linting with zero configuration
Axiom is a zero-configuration ESLint package that not only provides the best set of rules (inspired by StandardJS) but also manages other ESLint plugins. This removes the need for discussing and configuring ESLint rules, as well as maintaining and version tracking of various plugins.
With ESLint v9 flat configs, configurations can become complex, and mistakes can happen even in the setup. Axiom simplifies this process, allowing developers to focus on writing code rather than configuring linters.
npm install --save-dev @2bad/axiom
eslint.config.mjs
file in your project root:import { axiom } from '@2bad/axiom'
export default axiom(import.meta.dirname)
You can also customize which plugins to enable:
import { axiom } from '@2bad/axiom'
// Disable vitest and node plugins
export default axiom(import.meta.dirname, {
vitest: false,
node: false
})
// Or enable only specific plugins
export default axiom(import.meta.dirname, {
import: true,
jsdoc: false,
neostandard: false,
node: false,
promise: false,
vitest: false
})
package.json
:{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
npm run lint
Axiom aims to solve the following problems:
Configuration Overload: With the multitude of ESLint plugins and rules available, configuring a linter can be overwhelming. Axiom provides a curated set of rules out of the box.
Plugin Management: Keeping track of multiple ESLint plugins, their versions, and configurations can be time-consuming. Axiom manages this for you.
Consistency: By providing a standard set of rules, Axiom ensures consistency across projects and team members.
Focus on Code: Spend less time configuring and more time coding. Axiom handles the linting details so you can focus on writing great JavaScript.
In mathematics and logic, an axiom is a statement that is taken to be true without proof. Similarly, Axiom provides a set of linting rules that are considered best practices without the need for debate or configuration.
Contributions are welcome! Please check out the issues or submit a pull request.
FAQs
Effortless TypeScript linting with zero configuration
The npm package @2bad/axiom receives a total of 562 weekly downloads. As such, @2bad/axiom popularity was classified as not popular.
We found that @2bad/axiom 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.