@getkist/action-eslint
v1.0.8
Published
ESLint linting actions for kist
Maintainers
Readme
@getkist/action-eslint
ESLint linting actions for kist.
Installation
npm install @getkist/action-eslintUsage
As a kist plugin
# kist.yml
plugins:
- "@getkist/action-eslint"
pipeline:
- action: LintAction
options:
targetFiles:
- "src/**/*.ts"
- "src/**/*.js"
fix: false
configPath: "eslint.config.js"Standalone usage
import { LintAction } from "@getkist/action-eslint";
const action = new LintAction();
await action.execute({
targetFiles: ["src/**/*.ts"],
fix: true,
configPath: "eslint.config.js"
});Actions
LintAction
Runs ESLint on specified files and directories, with optional auto-fixing.
Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| targetFiles | string[] | ["src/**/*.ts"] | Files or glob patterns to lint |
| fix | boolean | false | Whether to automatically fix issues |
| configPath | string | "eslint.config.js" | Path to ESLint config file |
Configuration Examples
Lint TypeScript and JavaScript files
- action: LintAction
options:
targetFiles:
- "src/**/*.ts"
- "src/**/*.tsx"
- "src/**/*.js"
- "src/**/*.jsx"Auto-fix issues
- action: LintAction
options:
targetFiles:
- "src/**/*.ts"
fix: trueUse custom config
- action: LintAction
options:
targetFiles:
- "src/**/*.ts"
configPath: "config/eslint.custom.js"License
MIT
