{"id":25875,"library":"lint-repository-sui","title":"lint-repository-sui","description":"Provides a set of Sui-specific lint rules for repository code quality, targeting linting of Move smart contracts and related files. Current stable version 1.13.0. Primarily used within Sui ecosystem projects. Differentiates by offering pre-configured rules tailored to Sui development practices.","status":"active","version":"1.13.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install lint-repository-sui","lang":"bash","label":"npm"},{"cmd":"yarn add lint-repository-sui","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-repository-sui","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package likely exports a single function or object for running lint checks.","symbol":"default","correct":"import lintSui from 'lint-repository-sui'"},{"note":"Both ESM and CJS may be supported; check docs.","wrong":"const LintConfig = require('lint-repository-sui').LintConfig;","symbol":"LintConfig","correct":"import { LintConfig } from 'lint-repository-sui'"},{"note":"Rules are exported directly from the package root.","wrong":"import rules from 'lint-repository-sui/rules'","symbol":"rules","correct":"import { rules } from 'lint-repository-sui'"}],"quickstart":{"code":"import lint from 'lint-repository-sui';\nconst results = lint.checkFiles('./contracts/**/*.move');\nif (results.length > 0) {\n  console.log('Lint issues found:', results);\n} else {\n  console.log('No issues.');\n}","lang":"typescript","description":"Shows basic usage of lint checking a directory of Move files."},"warnings":[{"fix":"Only run on appropriate file extensions.","message":"Rules are designed for Sui Move files; applying to other languages may produce unexpected results.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Update imports to use 'lint' instead of 'lintSui'.","message":"Version 2.0 renamed the main export from 'lintSui' to 'lint'.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Upgrade Node.js to version 14 or higher.","message":"Requires Node.js 14+; some features may not work on older versions.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install lint-repository-sui and verify import statement.","cause":"Package not installed or incorrect import path.","error":"Cannot find module 'lint-repository-sui'"},{"fix":"Use correct import: import lint from 'lint-repository-sui'.","cause":"Incorrect import of default export (e.g., using named import as default).","error":"TypeError: lint.checkFiles is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}