ESLint Shareable Config for IPFS project. Current stable version: 8.0.0. Release cadence: irregular, with major version bumps for breaking changes. Provides a curated set of ESLint rules tailored for JavaScript/TypeScript libraries in the IPFS ecosystem. Differentiators: built on eslint-config-love (replacing deprecated eslint-config-standard-with-typescript), enforces consistent type imports, and integrates seamlessly with AEgir build tool. Supports both .js and .ts files with separate rule sets. Requires Node >=16 and optional TypeScript peer dependency.
npm install eslint-config-ipfsVerified import paths — ran on the pinned version, not inferred.
Basic setup to use eslint-config-ipfs in any project. Install as devDependency, create .eslintrc with extends key, then lint.
Run eslint --fix to auto-fix new rules. Review any remaining errors manually.
Run eslint --fix to automatically update imports to match new rule.
Update to v7+ which uses eslint-config-love. If on v6, migrate to v7 or adopt eslint-config-love directly.
Use extends: 'ipfs' in your ESLint config.
Run `npm install typescript` and check for missing plugin warnings. Consider using AEgir to avoid this.
Run `npm install --save-dev eslint-config-ipfs`.
Ensure your .eslintrc has `"extends": "ipfs"` (without the 'eslint-config-' prefix).
Create a tsconfig.json file in your project root. Alternatively, set `parserOptions.project: false` in your ESLint overrides for TS files.
Install/update: `npm install --save-dev @typescript-eslint/eslint-plugin`.