@round-core/lint
v0.1.1
Published
ESLint processor for RoundJS files
Readme
@round-core/lint
ESLint plugin for RoundJS. Enables linting for .round files using standard JavaScript parsers (espree).
How it works
- Preprocessing: Transforms the
.roundfile into valid JSX. - Global Injection: Automatically detects loop variables (like
tinfor(t in list)) and injects/* globals */comments at the end of the file to prevent "undefined variable" errors. - Component Tracking: Identifies JSX-style component usage within RoundJS blocks and ensures ESLint doesn't mark them as unused variables.
- 1:1 Mapping: Using the
SourceMapper, ESLint reported errors are translated back to the original.roundfile lines and columns, ensuring perfectly aligned highlights in VS Code.
Configuration
Recommended usage is via the eslint.config.js generated by the RoundJS CLI.
