Scan your whole stack
From OX Research Newsroom
Are you using @amamo/oxlint-config?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.3.0
@amamo/oxlint-config was last scanned on 27 Nov 2026 at version 1.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.3.0 LATEST | 27 Nov 2026 | No rules fired |
| 1.2.0 | 22 Oct 2026 | No rules fired |
| 1.1.1 | 31 Aug 2026 | No rules fired |
| 1.0.1 | 11 Aug 2026 | Not shown |
Findings for v1.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
English | 简体中文 | Rule Explorer
@amamo/oxlint-config is an opinionated set of composable Oxlint presets with a safe Oxc
initializer. The default export builds an OxlintConfig; named exports expose the same stable
fragments for advanced composition.
import amamo from "@amamo/oxlint-config";
export default amamo();
The package configures linting. Oxfmt remains a separate formatter, and the optional initializer can install both tools and prepare a project without replacing an existing lint configuration.
oxlint-tsgolint.[!WARNING] This is a personal, opinionated configuration. Review changes when upgrading. If its decisions do not fit your project, override the relevant rules or fork the configuration. Native preset rules do not have a separate stability promise beyond the package's published version, and the JavaScript plugin adapters are explicitly Alpha.
| Requirement | Supported range | Notes |
|---|---|---|
| Node.js | >=22.18 |
Enforced by this package's engines field. |
oxlint |
>=1.95.0 <2.0.0 |
Required peer dependency and source of native plugins. |
oxfmt |
>=0.80.0 <1.0.0 |
Required peer dependency used by the initializer's formatting workflow. |
oxlint-tailwindcss |
^1.17.2 |
Optional; required only when tailwindcss is configured. |
oxlint-tsgolint |
^7.0.2008 |
Optional; required only when typeAware is enabled. |
The initializer supports pnpm, npm, Yarn, and Bun projects when it can identify one package
manager safely. Repository development uses pnpm 12.23.0.
For upstream behavior and supported syntax, consult the official Oxlint documentation and Oxfmt documentation.
Run the initializer from the project root:
pnpm dlx @amamo/oxlint-config init
The interactive flow shows detected manifests, stable ecosystems, experimental packages, package manager, planned files, install command, notices, and conflicts before asking for confirmation. Start with a dry run when evaluating it in an existing project:
pnpm dlx @amamo/oxlint-config init --dry-run --yes
Non-interactive use requires --yes. The initializer is a setup tool; amamo() itself does not
perform runtime framework detection.
Install the package with its required Oxlint and Oxfmt peers:
# pnpm
pnpm add --save-dev @amamo/oxlint-config oxlint oxfmt
# npm
npm install --save-dev @amamo/oxlint-config oxlint oxfmt
# Yarn
yarn add --dev @amamo/oxlint-config oxlint oxfmt
# Bun
bun add --dev @amamo/oxlint-config oxlint oxfmt
Create oxlint.config.ts in the project root:
import amamo from "@amamo/oxlint-config";
export default amamo();
Framework and test presets are explicit:
import amamo from "@amamo/oxlint-config";
export default amamo({
nextjs: true,
node: true,
reactPerf: true,
test: ["jest", "vitest"],
});
The initializer adds only missing script keys and preserves existing values:
{
"scripts": {
"lint": "oxlint .",
"lint:fix": "oxlint --fix .",
"format": "oxfmt .",
"format:check": "oxfmt --check ."
}
}
Use lint in CI for diagnostics and format:check to verify formatting without changing files.
lint:fix applies fixes supported by Oxlint; format runs Oxfmt independently.
amamo() always starts with Base and enables TypeScript, Imports, and Promise unless explicitly
disabled. Other integrations are opt-in, with React and Next.js dependency rules shown below.
| Preset or mode | Default | Selection behavior |
|---|---|---|
| Base | Always on | Enables the eslint, oxc, and unicorn native plugins and category severities. |
| TypeScript | On | Disable with typescript: false. |
| Imports | On | Disable with imports: false. |
| Promise | On | Disable with promise: false. |
| React | Off | Enable with react: true; also enables JSX A11y by default. |
| Next.js | Off | Enable with nextjs: true; also selects React and JSX A11y. |
| JSX A11y | Follows React/Next.js | Set jsxA11y explicitly to override the derived value. |
| Vue, Node, JSDoc, React Perf | Off | Enable each with its matching boolean option. |
| Tailwind CSS | Off | Pass its required Tailwind CSS v4 entry point through tailwindcss. |
| Jest, Vitest | Off | Select one or both through test. Duplicate entries are ignored. |
| Type-aware mode | Off | Enable with typeAware: true after installing oxlint-tsgolint. |
| Experimental adapters | Off | Each adapter must be installed and explicitly selected. |
Preset order is deterministic: Base, default native fragments, React-related fragments, Vue,
Tailwind CSS, Node, JSDoc, tests, experimental adapters, options.rules, then arbitrary trailing
overrides.
The default export accepts IAmamoOptions followed by any number of OxlintConfig overrides:
function amamo(options?: IAmamoOptions, ...overrides: OxlintConfig[]): OxlintConfig;
| Option | Type | Default | Effect |
|---|---|---|---|
experimental |
IExperimentalOptions |
{} |
Selects installed Alpha JavaScript plugin adapters. |
ignores |
string[] |
undefined |
Sets the root ignorePatterns. |
imports |
boolean |
true |
Selects the native Import plugin fragment. |
jsdoc |
boolean |
false |
Selects the JSDoc fragment for script files. |
jsxA11y |
boolean |
React/Next.js state | Selects or suppresses JSX accessibility rules. |
nextjs |
boolean |
false |
Selects Next.js and implies React. |
node |
boolean |
false |
Selects Node rules and the Node environment for script files. |
promise |
boolean |
true |
Selects Promise rules for script files. |
react |
boolean |
false |
Selects React rules and implies JSX A11y. |
reactPerf |
boolean |
false |
Selects explicit React allocation warnings. |
rules |
OxlintConfig["rules"] |
undefined |
Adds root rule settings after selected presets. |
tailwindcss |
ITailwindcssOptions |
undefined |
Enables oxlint-tailwindcss with an explicit v4 entry point. |
test |
"jest" \| "vitest" \| readonly ("jest" \| "vitest")[] \| false |
false |
Selects one or both test-runner fragments. |
typeAware |
boolean |
false |
Sets root options.typeAware. |
typescript |
boolean |
true |
Selects the TypeScript fragment. |
vue |
boolean |
false |
Selects Vue script-block rules. |
IExperimentalOptions has seven optional boolean keys, all disabled by default: cypress,
mocha, playwright, regexp, sonarjs, storybook, and testingLibrary.
Use rules for ordinary root-level changes:
import amamo from "@amamo/oxlint-config";
export default amamo({
rules: {
eqeqeq: "error",
"typescript/consistent-type-imports": "off",
},
});
Every additional argument is an arbitrary OxlintConfig applied last. This is the escape hatch for
settings, environments, globals, plugin configuration, or imported third-party config objects:
import amamo from "@amamo/oxlint-config";
export default amamo(
{ rules: { "no-console": "warn" } },
{
rules: { "no-console": "off" },
settings: { react: { linkComponents: [{ name: "Link", linkAttribute: "to" }] } },
},
);
For file-specific behavior, pass an Oxlint override with an explicit files scope:
import amamo from "@amamo/oxlint-config";
export default amamo(
{},
{
overrides: [
{
files: ["scripts/**/*.ts"],
rules: { "no-console": "off" },
},
],
},
);
Set project-level ignores through the first argument:
export default amamo({ ignores: ["dist/**", "coverage/**", "generated/**"] });
See the official Oxlint configuration guide
for the full OxlintConfig surface.
Named exports are the same fragments used by amamo(). Import them when you need manual
composition; the default factory is simpler for most projects.
| Export | Scope and explicit behavior |
|---|---|
base |
Native eslint, oxc, and unicorn; correctness errors, perf and suspicious warnings, other categories off. |
typescript |
TypeScript files; enforces separate type-only imports and rejects duplicate imports while allowing one type-only import from the same module. |
imports |
Enables the native import plugin. |
promise |
Script files; catch-or-return and no-return-wrap errors. |
react |
Script files; Hooks rules with exhaustive dependencies as a warning; supports the automatic JSX runtime. |
reactPerf |
JSX/TSX; warns about new JSX, array, function, and object values passed as props. |
nextjs |
JSX/TSX; async client component and duplicate head errors, HTML link warning. |
jsxA11y |
JSX/TSX; alt text, ARIA props/roles, and anchor validity checks. |
vue |
*.vue; Vue environment plus duplicate key, computed side effect, and defineProps validation rules. |
node |
Script files; Node environment, exports assignment error, and path concatenation warning. |
jsdoc |
Script files; warns on invalid JSDoc tag names. |
jest |
Test files; Jest environment, focused-test error, disabled-test and missing-expect warnings. |
vitest |
Test files; Vitest environment, focused-test error, disabled-test and missing-expect warnings. |
import { base, node, typescript } from "@amamo/oxlint-config";
import { defineConfig } from "oxlint";
export default defineConfig({ extends: [base, typescript, node] });
react: true applies Hooks rules to script files, supports the automatic JSX runtime, and enables
JSX A11y unless jsxA11y: false is explicit.
nextjs: true selects React first, then Next.js, and derives JSX A11y. It does not inspect the
runtime; the option or initializer-generated config is the source of truth.
vue: true selects Oxlint's native Vue plugin for *.vue script content and enables the Vue
environment. It does not add template-specific JavaScript-plugin rules.
Install the optional plugin and pass the CSS file that imports Tailwind CSS v4:
pnpm add --save-dev oxlint-tailwindcss
import amamo from "@amamo/oxlint-config";
export default amamo({
tailwindcss: { entryPoint: "src/index.css" },
});
For monorepos, entryPoint also accepts ordered { files, use } mappings. The preset enables a
focused set of the plugin's rules; use rules for severity changes. This includes rejecting
runtime-built class names such as bg-${color}-500: choose between complete class names instead,
so Tailwind can generate their CSS. Set lookupTablePatterns: ["_CLASSES$"] to also lint class
strings stored as values in objects such as TONE_CLASSES. Tailwind CSS v3 is not supported.
See the oxlint-tailwindcss setup guide. Because it runs
through Oxlint's JavaScript plugin API, that upstream API remains Alpha.
node: true applies the Node environment and Node rules to JavaScript and TypeScript script-file
patterns, including ESM and CommonJS extensions.
Use test: "jest" for Jest globals and rules on *.test.*, *.spec.*, and __tests__ script
files.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.