{"id":26958,"library":"eslint-plugin-foundry-vtt","title":"ESLint Plugin Foundry VTT","description":"An ESLint plugin for linting Foundry Virtual Tabletop (VTT) modules. v0.0.1 is the initial release. It provides rules and configurations that enforce best practices specific to Foundry VTT development, such as avoiding deprecated APIs and following module conventions. The plugin is designed to be used with ESLint 0.10.0 or later and ships with a 'recommended' configuration. As an early release, users should expect potential breaking changes.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-foundry-vtt","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-foundry-vtt","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-foundry-vtt","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for plugin to function","package":"eslint","optional":false}],"imports":[{"note":"ESLint automatically resolves the 'eslint-plugin-' prefix.","wrong":"Using full name like 'eslint-plugin-foundry-vtt' in extends","symbol":"plugin","correct":"In .eslintrc: { \"extends\": [\"plugin:foundry-vtt/recommended\"] }"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": [\n    \"plugin:foundry-vtt/recommended\"\n  ]\n}\n\n// Install\ngit init\nnpm init -y\nnpm install eslint eslint-plugin-foundry-vtt --save-dev\nnpx eslint .","lang":"javascript","description":"Shows how to install and configure the ESLint plugin for Foundry VTT modules using the recommended ruleset."},"warnings":[{"fix":"Pin version and test thoroughly.","message":"Initial release (v0.0.1) may have unstable rules or configurations.","severity":"breaking","affected_versions":"0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install eslint-plugin-foundry-vtt --save-dev` in your project directory.","cause":"Plugin not installed or installed globally while ESLint is local.","error":"Failed to load plugin 'foundry-vtt' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-foundry-vtt'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}