A configuration package that provides ESLint and Prettier integration for Office Add-in projects. Current stable version is 3.0.7, with monthly releases. It simplifies setting up linting and formatting by bundling shared ESLint configs, Prettier options, and TypeScript support. Differentiates from raw ESLint/Prettier by providing pre-tuned rules for Office Add-in development and automatic dependency management.
npm install office-addin-lintVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use the configure function to set up ESLint and Prettier options.
Use import syntax instead of require(). Ensure your project is configured for ESM (e.g., type: 'module' in package.json).
Replace officeAddinLint() with configure() as shown in the quickstart.
Run npm install eslint prettier --save-dev in your project.
Run npm install office-addin-lint --save-dev then clear cache with npm cache clean --force
Use configure() instead of officeAddinLint(). See documentation.