Basic information
About s2-lint
Guidelines for writing and maintaining unit tests in the S2 project. Use when modifying source code to ensure proper test coverage.
s2-lint is an agent skill listed in the AddMCP.net directory, published by antvis. Runtime: TypeScript. License: MIT. The repository has 1,697 GitHub stars. Source code is hosted on github.com. Related topics: canvas, editable-table, javascript, pivot-grid, pivot-tables.
Overview
What is s2-lint?
name: s2-lint description: After modifying S2 project code, you must run lint to ensure there are no errors, avoiding issues when pushing to git.
S2 Lint
When to use this skill
After modifying any code files in the packages/ directory, you must use this skill before finishing the task.
This includes but is not limited to:
- Modifying
.ts,.tsx,.vuefiles - Adding new source code files
- Modifying type definition files (
.d.ts) - Modifying import/export statements
- Modifying
.lessstyle files - Modifying
.mddocumentation files
Execution Steps
After completing all code modifications, run the following command in the project root:
pnpm lint
This command runs the following checks sequentially:
lint:type- TypeScript type checkinglint:script- ESLint code style checkinglint:style- Stylelint CSS/LESS checkinglint:docs- MarkdownLint documentation checkinglint:word- Case-police word casing checking
Handling Errors
If the command reports errors:
- Carefully read the error message to determine the location and cause of the error.
- Fix all errors to ensure code quality.
- Re-run
pnpm lintto confirm all errors are fixed. - The task is considered complete only after lint passes.
Notes
- Do not ignore lint errors; they may cause build failures in the CI/CD pipeline.
- If some errors are difficult to fix, inform the user and discuss solutions.
- This check is a necessary step before pushing code to git.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In