A plugin for ilib-lint that validates Apple platform string parameters, specifically ensuring Swift string interpolation placeholders like \(name) are correctly preserved in translated targets. Version 1.0.1 is current, with node.js 14+ and ESM support required. Unlike generic string linters, it targets Apple ecosystem files and provides a dedicated 'resource-swift-params' rule along with an 'apple' ruleset for easy integration into XLIFF file type checking.
npm install ilib-lint-appleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the plugin to validate Swift string parameters in XLIFF files.
Use import syntax or set type: 'module' in package.json. Alternatively, upgrade to Node 14+.
For Objective-C format specifiers, use additional rules from other plugins or configure ilib-lint's built-in format checking.
Ignore false positives via ilib-lint's inline suppression comments like // eslint-disable-next-line or resource-level ignore flags.
Change project to ESM (type: 'module' in package.json) or use dynamic import(). Ensure node version >=14.
Add 'ruleset': ['apple'] under the appropriate filetype in ilib-lint-config.json.
Reinstall ilib-lint-apple and ensure ilib-lint is up-to-date. Run npm install --save-dev ilib-lint-apple@latest.
Run npm install --save-dev ilib-lint-apple and verify the package is in package.json devDependencies.