Repository navigation
v1.3.0
Minor Changes
-
#15
6572309Thanks @stevensacks! - Convert the default export to agaiaLint(opts?)factory. Accepts a
sourceDiroption (default'app') that scopes filename conventions,
hook-folder rules, andno-relative-import-pathsto the consumer's
source root — so projects usingsrc/(or any other layout) can drop
ingaiaLint({sourceDir: 'src'})without per-rule overrides.includeIgnoreFileis now imported from@eslint/config-helpers
instead of the deprecated re-export in@eslint/compat.@eslint/compat
has been dropped as a dependency.ignoresis now dual-shape: spread it directly for the default case
(...lint.ignores) —.gitignoreis auto-detected and silently
no-ops if the resolved path doesn't exist — or call it with options to
override (...lint.ignores({extra: ['.gaia/**']})). Pass
{gitignore: false}to opt out of the gitignore merge entirely, or
{gitignore: 'path/...'}for a non-standard location.Breaking: the named static config exports (
base,react,
styleHygiene,guardrails,testing,storybook,playwright,
prettier,betterTailwind,ignores) are gone. Access them off the
bundle returned by the factory:- import gaiaLint from '@gaia-react/lint'; + import gaiaLint from '@gaia-react/lint'; + const lint = gaiaLint(); export default defineConfig([ - ...gaiaLint.ignores({gitignore: '.gitignore'}), - ...gaiaLint.base, - ...gaiaLint.react, + ...lint.ignores, + ...lint.base, + ...lint.react, // ... ]);
Patch Changes
- #15
6572309Thanks @stevensacks! - Bump@vitest/eslint-pluginto 1.6.18 andtypescript-eslintto 8.60.0.
No rule-default changes.