Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/focusaurus/eslint-formatter-comment
eslint formatter plugin that prints a JavaScript comment to disable the rule
https://github.com/focusaurus/eslint-formatter-comment
Last synced: 12 days ago
JSON representation
eslint formatter plugin that prints a JavaScript comment to disable the rule
- Host: GitHub
- URL: https://github.com/focusaurus/eslint-formatter-comment
- Owner: focusaurus
- License: mit
- Created: 2014-09-14T03:57:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T17:23:23.000Z (about 9 years ago)
- Last Synced: 2024-10-31T10:52:25.712Z (19 days ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# eslint comment formatter
Prints [eslint](http://eslint.org) errors in a way allowing:
- filename with line and column appended with colons as many editor CLIs will accept this as a command line argument and place the cursor exactly on the error using this information
- Allows copy/pasting of a complete JavaScript comment to disable this rule in a specific location.Note this is a copy and tweak job from the built-in "compact" eslint formatter.
## Example Output
```
app/entries/operations/index.js:1:26 Error - Strings must use singlequote. // eslint-disable-line quotes
app/entries/operations/index.js:2:38 Error - Extra semicolon. // eslint-disable-line semi
app/entries/operations/index.js:3:5 Error - foo is defined but never used // eslint-disable-line no-unused-vars
app/entries/operations/index.js:3:9 Error - Extra semicolon. // eslint-disable-line semi```
# License
This formatter is [MIT licensed](./LICENSE.txt). The [ESLint License](./ESLint.license) is included with this repository as well.