Registry / testing / lint-repository-sui

lint-repository-sui

JSON →
library1.13.0jsnpmunverified

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.

npm install lint-repository-sui
INSTALL
IMPORT
SIG · LINT-REPOSITORY-SU
L
lint-repository-sui
testingjavascriptv1.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import lintSui from 'lint-repository-sui'
Package likely exports a single function or object for running lint checks.
LintConfig
import { LintConfig } from 'lint-repository-sui'
const LintConfig = require('lint-repository-sui').LintConfig;
Both ESM and CJS may be supported; check docs.
rules
import { rules } from 'lint-repository-sui'
import rules from 'lint-repository-sui/rules'
Rules are exported directly from the package root.

Shows basic usage of lint checking a directory of Move files.

import lint from 'lint-repository-sui'; const results = lint.checkFiles('./contracts/**/*.move'); if (results.length > 0) { console.log('Lint issues found:', results); } else { console.log('No issues.'); }
Debug
Known issues
gotchaRules are designed for Sui Move files; applying to other languages may produce unexpected results.
fix
Only run on appropriate file extensions.
affects: >=0.0.0
breakingVersion 2.0 renamed the main export from 'lintSui' to 'lint'.
fix
Update imports to use 'lint' instead of 'lintSui'.
affects: >=2.0.0
gotchaRequires Node.js 14+; some features may not work on older versions.
fix
Upgrade Node.js to version 14 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'lint-repository-sui'
Package not installed or incorrect import path.
fix
Run npm install lint-repository-sui and verify import statement.
TypeError: lint.checkFiles is not a function
Incorrect import of default export (e.g., using named import as default).
fix
Use correct import: import lint from 'lint-repository-sui'.
Upgrade
Version history
1.13.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
lint-repository-sui — npm install lint-repository-sui · libregistry