npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@canva/app-eslint-plugin

v1.0.0

Published

ESLint rules and shareable config for building with Canva's Apps SDK

Readme

@canva/app-eslint-plugin

ESLint plugin for working with Canva.

ESLint TypeScript

Table of contents

Introduction

The @canva/app-eslint-plugin package is an ESLint plugin that supplies configuration defaults and rules for working with Canva.

Setup

If you're using the Canva Apps SDK starter kit, or you've used the Canva CLI to create a Canva SDK app, the @canva/app-eslint-plugin package should already be installed and configured for you.

1. Install

You can migrate an existing Canva SDK app, or use the @canva/app-eslint-plugin package in an app not based on the starter kit or generated from the Canva CLI. First install the package as a development dependency:

npm install @canva/app-eslint-plugin --save-dev

2. Configure

You can use the ESLint plugin by importing the @canva/app-eslint-plugin package into your ESlint config, and applying the provided shareable config. To import the package to your ESlint flat config:

// eslint.config.js
import canva from "@canva/app-eslint-plugin";

export default [
  ...canva.configs.apps,
  // your existing eslint config
];

To opt in to stricter linting, use the strict configuration:

// eslint.config.mjs
import canva from "@canva/app-eslint-plugin";

export default [...canva.configs.apps_strict];

Strict linting adds import validation, React Hooks and accessibility rules, Testing Library rules, snake-case TypeScript filenames, and absolute imports between directories. It does not prescribe a test runner.

Shareable Configuration

This package provides the following configuration sets:

  • apps - For creating and maintaining high-quality Canva Apps SDK apps.
  • apps_strict - The apps configuration with additional strict lint rules.
  • apps_no_i18n - This is the same as the apps configuration but without the requirement to translate the app. Most apps should support internationalization, however due to constraints on the number of messages some apps may not be able to be translated at this time.
  • apps_i18n - This is just the parts of the apps config that aren't included in the apps_no_i18n configuration. Generally it's better to use the apps config directly.

These sets include the following configuration sets provided by other packages:

Additionally, the following rules are configured:

  • 💼 Configuration sets the rule is enabled in:
    • 📦 apps and apps_no_i18n
    • 🌐 apps and apps_i18n

| Plugin | Rule | 💼 | | -------------------------------- | ----------------------------- | --- | | @typescript-eslint/eslint-plugin | no-non-null-assertion | 📦 | | @typescript-eslint/eslint-plugin | no-empty-function | 📦 | | @typescript-eslint/eslint-plugin | consistent-type-imports | 📦 | | @typescript-eslint/eslint-plugin | no-explicit-any | 📦 | | @typescript-eslint/eslint-plugin | no-empty-interface | 📦 | | @typescript-eslint/eslint-plugin | consistent-type-definitions | 📦 | | @typescript-eslint/eslint-plugin | explicit-member-accessibility | 📦 | | @typescript-eslint/eslint-plugin | naming-convention | 📦 | | eslint | no-invalid-this | 📦 | | @typescript-eslint/eslint-plugin | no-invalid-this | 📦 | | @typescript-eslint/eslint-plugin | no-unused-expressions | 📦 | | eslint | no-unused-vars | 📦 | | @typescript-eslint/eslint-plugin | no-unused-vars | 📦 | | @typescript-eslint/eslint-plugin | no-require-imports | 📦 | | eslint-plugin-jest | no-restricted-matchers | 📦 | | react | jsx-curly-brace-presence | 📦 | | react | jsx-tag-spacing | 📦 | | react | self-closing-comp | 📦 | | react | no-unescaped-entities | 📦 | | react | jsx-uses-react | 📦 | | react | react-in-jsx-scope | 📦 | | eslint | default-case | 📦 | | eslint | eqeqeq | 📦 | | eslint | no-caller | 📦 | | eslint | no-console | 📦 | | eslint | no-eval | 📦 | | eslint | no-inner-declarations | 📦 | | eslint | no-new-wrappers | 📦 | | eslint | no-restricted-globals | 📦 | | eslint | no-restricted-properties | 📦 | | eslint | no-restricted-syntax | 📦 | | eslint | no-restricted-imports | 📦 | | eslint | no-return-await | 📦 | | eslint | no-throw-literal | 📦 | | eslint | no-undef-init | 📦 | | eslint | no-var | 📦 | | eslint | object-shorthand | 📦 | | eslint | prefer-const | 📦 | | eslint | prefer-object-spread | 📦 | | eslint | prefer-rest-params | 📦 | | eslint | prefer-spread | 📦 | | eslint | radix | 📦 | | eslint-plugin-unicorn | prefer-node-protocol | 📦 | | react | no-deprecated | 📦 | | react | forbid-elements | 📦 | | eslint-plugin-unicorn | filename-case | 📦 | | @typescript-eslint/eslint-plugin | no-require-imports | 📦 | | eslint | no-console | 📦 | | eslint-plugin-formatjs | no-invalid-icu | 🌐 | | eslint-plugin-formatjs | no-literal-string-in-jsx | 🌐 | | eslint-plugin-formatjs | enforce-description | 🌐 | | eslint-plugin-formatjs | enforce-default-message | 🌐 | | eslint-plugin-formatjs | enforce-placeholders | 🌐 | | eslint-plugin-formatjs | no-id | 🌐 | | eslint-plugin-formatjs | no-emoji | 🌐 | | eslint-plugin-formatjs | no-useless-message | 🌐 | | eslint-plugin-formatjs | no-multiple-plurals | 🌐 | | eslint-plugin-formatjs | no-offset | 🌐 | | eslint-plugin-formatjs | blocklist-elements | 🌐 | | eslint-plugin-formatjs | no-complex-selectors | 🌐 | | eslint-plugin-formatjs | no-literal-string-in-object | 🌐 |

Changelog

See the CHANGELOG.md file.

Contributing

We're actively developing this package but are not currently accepting third-party contributions. If you'd like to request any changes or additions to the package, submit a feature request via the Canva Developers Community.

License

See the LICENSE.md file.