ESLint plugin for Office Add-ins development. Current stable version 4.0.7, released on an as-needed cadence. It enforces rules specific to Office.js APIs, ensuring best practices and compatibility with Office Add-in platform requirements. Differentiates from generic ESLint plugins by providing rules tailored to Office.js patterns, async Office.js usage, and manifest validation. Provides out-of-the-box configuration for Office Add-in projects, and the package ships with TypeScript type definitions for rule options.
npm install eslint-plugin-office-addinsVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to use the office-addins plugin with recommended rules and additional custom rules for Office.js best practices.
Upgrade ESLint to ^9.0.0, and update any legacy .eslintrc format if needed.
Use eslint.config.js with flat config structure; see ESLint flat config migration guide.
Replace 'office-addins/no-excel-in-auto-open' with 'office-addins/avoid-auto-open' in your config.
Either upgrade ESLint to 9+ or pin eslint-plugin-office-addins@3.x.
Run npm install eslint-plugin-office-addins --save-dev
Ensure you are using plugin v4 or later, and use 'plugin:office-addins/recommended' (flat config) or check documentation.
Check the list of available rules from the plugin documentation and correct the rule name.