Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days 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 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T16:57:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-19T15:22:04.726Z (24 days ago)
- Topics: eslint, eslint-plugin, eslint-rules, typescript
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-coherence
[![npm](https://img.shields.io/npm/v/eslint-plugin-coherence)](https://www.npmjs.com/package/eslint-plugin-coherence)
[![Build Status](https://travis-ci.com/leonardodino/eslint-plugin-coherence.svg?branch=master)](https://travis-ci.com/leonardodino/eslint-plugin-coherence)
[![Code Coverage](https://badgen.net/codecov/c/github/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`