@fauziralpiandi/eslint-config
v2.0.0
Published
ESLint config for @fauziralpiandi
Maintainers
Readme
@fauziralpiandi/eslint-config
Personal ESLint baseline for my own projects.
Install
pnpm add -D @fauziralpiandi/eslint-config[!NOTE]
Requires
eslint: ^9, and TypeScript configs needtypescript: >=5.
Usage
import config from "@fauziralpiandi/eslint-config";
export default config({
// env: "node",
// ignores: [],
// strict: false,
// stylistic: false,
// project: false | ["./tsconfig.json"],
// overrides: []
});Contents
- ESLint 9 flat config.
@eslint/jsrecommended rules.- TypeScript configs via
typescript-eslintwhentypescriptis installed (skips if not). - Type-checked configs when a
tsconfig*.json(including.jsonc/.json5) is in the project root, unless you override with theprojectoption.
Options
env:"node" | "browser" | "worker" | Array<"node" | "browser" | "worker">Defaults to"node". Applies globally to JS and TS configs.ignores:string[]Global ignore patterns. Defaults to a list of common build outputs and caches.strict:booleanIncreases TypeScript correctness by usingtypescript-eslintstrict configs when available (no JS strict preset applied).stylistic:booleanAdds TypeScript stylistic rules (type-checked when atsconfigis present).project:string[] | falseOverrides type-checked detection. Usefalseto force non-type-checked configs even if atsconfigexists, or passtsconfigpaths to force type-checked configs.overrides:Config[]Extra flat configs inserted before any user-provided configs. The type can be imported from this package:import type { Config } from "@fauziralpiandi/eslint-config";
