zuke.tools.eslint
@zuke/eslint 1.1.0: @zuke/eslint — typed eslint task wrappers for Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class EslintSettings(ToolSettings) Settings for an eslint run.
-
paths(*values: str) -> SelfFiles, directories, or globs to lint (positional); repeatable.
-
config(path: str) -> SelfUse an explicit config file (
-c/--config). -
ext(*extensions: str) -> SelfAdditional file extensions to lint (
--ext); repeatable. -
fix() -> SelfApply automatic fixes (
--fix). -
fix_dry_run() -> SelfCompute fixes without writing them (
--fix-dry-run). -
fix_type(*types: str) -> SelfRestrict fixes to the given types (
--fix-type); repeatable. -
quiet_warnings() -> SelfReport errors only, suppressing warnings (
--quiet). -
max_warnings(count: float) -> SelfFail once this many warnings are reached (
--max-warnings). -
format(value: str) -> SelfOutput format, e.g.
stylish,json(-f/--format). -
output_file(path: str) -> SelfWrite the report to a file (
-o/--output-file). -
cache() -> SelfCache results between runs (
--cache). -
cache_location(path: str) -> SelfWhere to store the cache (
--cache-location). -
ignore_path(path: str) -> SelfRead ignore globs from a file (
--ignore-path). -
ignore_pattern(glob: str) -> SelfIgnore files matching a glob (
--ignore-pattern); repeatable. -
no_ignore() -> SelfDisable all ignore handling (
--no-ignore). -
no_config_lookup() -> SelfDo not search for a config file (
--no-config-lookup). -
report_unused_disable_directives() -> SelfReport unused
eslint-disabledirectives (--report-unused-disable-directives).
class EslintTasks Typed task functions for the eslint linter.
-
static async lint(ctx: ServiceContext, configure: Callable[[EslintSettings], EslintSettings] | None=None) -> ExecResultLint with
eslint.