@discord/eslint-plugin-discord-intl

0.10.0-rc.2 • Public • Published

eslint-plugin-discord-intl

An ESLint (v8) plugin for linting intl messages in the @discord/intl system. Currently this linter only checks best practices for messages like whitespace and access notation in other source files, but will eventually be able to lint the content of messages themselves using the database's validateMessages API.

Install

pnpm add -D @discord/eslint-plugin-discord-intl

Configure

module.exports = {
  // Extend the recommended plugin configuration
  extends: ['plugin:@discord/eslint-plugin-discord-intl/recommended'],
  // Optionally add configuration for all rules
  settings: {
    '@discord/discord-intl': {
      extraImports: {
        '@app/intl': ['t'],
      },
    },
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @discord/eslint-plugin-discord-intl

Weekly Downloads

4,870

Version

0.10.0-rc.2

License

MIT

Unpacked Size

27.1 kB

Total Files

12

Last publish

Collaborators

  • discord_npmjs