@hystax/eslint-config-server
v2.0.0
Published
Server ESLint config for Hystax projects
Maintainers
Readme
📦 @hystax/eslint-config-server
Shared Server ESLint configuration for Hystax projects
This package provides a shared ESLint configuration used across Hystax repositories — ready to use and easy to customize.
⚙️ Requirements
- Node.js: ≥ 22
- ESLint: ≥ 9
🚀 Installation
npm install -D @hystax/eslint-config-server⚙️ Usage
In your project’s eslint.config.mjs, import and use the shared configuration.
Basic example (Server project)
import config from "@hystax/eslint-config-server";
// The config is an array; the first element contains global ignore
export default config;🧩 Combining with other configs or local overrides
import config from "@hystax/eslint-config-server";
export default [
...config,
{
// Add or override rules here
rules: {
"no-console": "warn",
"import/order": [
"error",
{ groups: ["builtin", "external", "internal"] },
],
},
},
];🧩 Add or override global ignores
import config from "@hystax/eslint-config-server";
const globalIgnores = config[0];
const configRules = config.slice(1);
export default [
{
// Extend existing global ignores or override them
...globalIgnores,
ignores: [...(globalIgnores.ignores || []), "./dist"],
},
...configRules,
];📝 Notes
ESLint flat config format (v9) is used — no "extends" field needed.
Works with Node.js, TypeScript, and Prettier.
Designed for consistency across all Hystax frontend projects.
The first element of the exported array contains global ignores, so it’s important to spread the array if adding additional rules.
