1.2.2 • Published 5 years ago

@anireact/eslint-plugin v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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