@inflexa-ai/oxlint-plugin
v0.9.0
Published
The oxlint rules and configuration of Inflexa for TypeScript, and the guard of their disable directives.
Readme
@inflexa-ai/oxlint-plugin
The oxlint rules and the shared oxlint configuration for TypeScript, and the guard of their disable directives.
Install
npm install --save-dev @inflexa-ai/oxlint-plugin oxlint oxlint-tsgolintPin oxlint and oxlint-tsgolint to exact versions, because JS plugins and type-aware rules are not under semver.
Use
Call the factory in oxlint.config.ts:
import { typescript, vitest } from '@inflexa-ai/oxlint-plugin'
export default typescript({
overrides: [{ files: ['**/*.test.ts'], ...vitest }],
})oxlint gives a JS plugin no type information. Thus the command inflexa-typecheck of @inflexa-ai/typecheck runs the rules that read types, through typecheck.config.ts.
Run the three tools in this sequence:
oxlint && inflexa-typecheck && directive-guarddirective-guard reports each oxlint-disable or typecheck-disable-next-line directive that switches off a rule of @inflexa-ai/ or a typed rule of @inflexa-ai/typecheck with no entry in the lint configuration, and each eslint-disable, typecheck-disable or typecheck-disable-line directive, because no tool reads those forms.
Documentation
License
Apache-2.0
