Registry / testing / eslint-plugin-foundry-vtt

eslint-plugin-foundry-vtt

JSON →
library0.0.1jsnpmunverified

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.

npm install eslint-plugin-foundry-vtt
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-FOUN
E
eslint-plugin-foundry-vtt
testingjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
In .eslintrc: { "extends": ["plugin:foundry-vtt/recommended"] }
Using full name like 'eslint-plugin-foundry-vtt' in extends
ESLint automatically resolves the 'eslint-plugin-' prefix.

Shows how to install and configure the ESLint plugin for Foundry VTT modules using the recommended ruleset.

// .eslintrc.json { "extends": [ "plugin:foundry-vtt/recommended" ] } // Install git init npm init -y npm install eslint eslint-plugin-foundry-vtt --save-dev npx eslint .
Debug
Known issues
breakingInitial release (v0.0.1) may have unstable rules or configurations.
fix
Pin version and test thoroughly.
affects: 0.0.1
Errors
Common errors & fixes
Failed to load plugin 'foundry-vtt' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-foundry-vtt'
Plugin not installed or installed globally while ESLint is local.
fix
Run `npm install eslint-plugin-foundry-vtt --save-dev` in your project directory.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required for plugin to function
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-foundry-vtt — npm install eslint-plugin-foundry-vtt · libregistry