@mctools/eslint-plugin-zs
v1.1.3
Published
ESLint plugin: lint and auto-format .zs (ZenScript) via @mctools/format
Maintainers
Readme
ESLint plugin: lint and auto-format .zs (ZenScript) via @mctools/format
The plugin lets eslint . (or eslint --fix .) participate in formatting .zs files alongside the host project's TS rules. The host project's flat config is reused verbatim against an in-process Linter to fix the marker-laden TypeScript produced from each .zs source — no second new ESLint(...) is created at runtime.
Requirements:
eslint@^9and@mctools/formatare peer dependencies.
Wiring:
// eslint.config.js
import antfu from '@antfu/eslint-config'
import zs from '@mctools/eslint-plugin-zs'
const tsConfig = await antfu({ /* your normal options */ })
export default [
...tsConfig,
...zs.defineConfig({ tsConfig }),
]defineConfig returns a flat-config fragment that registers the parser stub for *.zs, the plugin object, and the zs-format rule.
Usage
Author
- https://github.com/Krutoy242
Other tools
- @mctools/errors - Scan debug.log file to find unknown errors
- @mctools/format - Format .zs files by using ESLint for typescript
- @mctools/manifest -
manifest.jsongeneration tool - @mctools/modlist - Generate .md file with all mods listed
- @mctools/reducer - Partially disable minecraft mods
- @mctools/source - Locate, clone or decompile Minecraft mod source code
- @mctools/tcon - Tweaks Tinker Constructs' materials with csv tables
