@anireact/eslint-plugin

Custom ESLint rules.

Usage no npm install needed!

<script type="module">
  import anireactEslintPlugin from 'https://cdn.skypack.dev/@anireact/eslint-plugin';
</script>

README

@anireact/eslint-plugin

Custom ESLint rules.

yarn add -D @anireact/eslint-plugin

Rules

@anireact/no-todo

module.exports = {
    ...other,
    rules: {
        ...other.rules,
        '@anireact/no-todo': [
            'error',
            {
                patterns: [{ test: /\bTODO\b/, flags: 'u', name: 'TODO' }],
            },
        ],
    },
};
// Invalid:
// TODO: Description.
// TODO

// Valid:
// FUTURE: Description.
// Todo: future versions of this plugin will be able to ban malformed todo-comments.

License

MIT