eslint-plugin-coherence

ESLint plugin to restrict confusing usages

Usage no npm install needed!

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

README

eslint-plugin-coherence

npm Build Status Code Coverage

named after the micro-budget movie.

Rules

no-const-enum

Disallow all usages of const enum in TypeScript code. It's not supported by babel.

no-confusing-enum

Ensures all enum values matches their keys. This simplifies porting plain javascript code by avoiding pitfalls of passing enums to Object.keys and related methods.

License

MIT