Sharable ESLint config for the Headless WordPress ecosystem. Extends WordPress Coding Standards with built-in TypeScript support.
Warning
🐉 There be dragons! This project is in active development and considered experimental. Some features may be incomplete, unstable, or subject to change.
Run the following command:
npm install @snapwp/eslint-config --save-dev
Add this to your project's .eslintrc.js
:
module.exports = {
extends: [ '@snapwp/eslint-config' ],
};
For a real-world example, see the configuration file in SnapWP's NextJS Starter example.
This package is part of SnapWP's monorepo and is actively maintained by rtCamp. Packages are published to npm from the packages
directory, and can be used standalone in the headless WordPress ecosystem or as part of SnapWP's framework.
Contributions are welcome and encouraged! To learn more about contributing to this package or SnapWP as a whole, please read the Contributing Guide.
For development guidelines, please refer to our Development Guide.