https://github.com/leonardodino/eslint-plugin-coherence
:anguished: ESLint plugin to restrict confusing usages
https://github.com/leonardodino/eslint-plugin-coherence
eslint eslint-plugin eslint-rules typescript
Last synced: 4 months ago
JSON representation
:anguished: ESLint plugin to restrict confusing usages
- Host: GitHub
- URL: https://github.com/leonardodino/eslint-plugin-coherence
- Owner: leonardodino
- License: mit
- Created: 2020-03-03T14:51:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T16:57:52.000Z (over 4 years ago)
- Last Synced: 2025-03-29T08:03:08.744Z (4 months ago)
- Topics: eslint, eslint-plugin, eslint-rules, typescript
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-coherence
[](https://www.npmjs.com/package/eslint-plugin-coherence)
[](https://travis-ci.com/leonardodino/eslint-plugin-coherence)
[](https://codecov.io/gh/leonardodino/eslint-plugin-coherence)named after the [micro-budget movie](https://www.imdb.com/title/tt2866360/).
## 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`