@discord/eslint-plugin-discord-intl

0.13.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

3,044

Version

0.13.2

License

MIT

Unpacked Size

33.5 kB

Total Files

16

Last publish

Collaborators

  • discord_npmjs