Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eslint-community/eslint-formatter-table
ESLint’s official `table` formatter, extracted from ESLint 7
https://github.com/eslint-community/eslint-formatter-table
eslint eslint-formatter
Last synced: 2 days ago
JSON representation
ESLint’s official `table` formatter, extracted from ESLint 7
- Host: GitHub
- URL: https://github.com/eslint-community/eslint-formatter-table
- Owner: eslint-community
- License: other
- Created: 2021-08-03T11:54:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T21:33:32.000Z (8 months ago)
- Last Synced: 2024-10-13T03:40:11.137Z (about 1 month ago)
- Topics: eslint, eslint-formatter
- Language: JavaScript
- Homepage: https://npm.im/eslint-formatter-table
- Size: 32.2 KB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# eslint-formatter-table
> ESLint’s official `table` formatter, extracted from ESLint 7
This formatter has been removed from ESLint 8 so it lives as a standalone module here.
## Install
```sh
npm install --save-dev eslint-formatter-table
```## Usage
More information about formatters can be found on https://eslint.org/docs/user-guide/formatters/
```
eslint --format table
```## Example output
```
/var/lib/jenkins/workspace/Releases/eslint Release/eslint/fullOfProblems.js║ Line │ Column │ Type │ Message │ Rule ID ║
╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢
║ 1 │ 10 │ error │ 'addOne' is defined but never used. │ no-unused-vars ║
║ 2 │ 9 │ error │ Use the isNaN function to compare with NaN. │ use-isnan ║
║ 3 │ 16 │ error │ Unexpected space before unary operator '++'. │ space-unary-ops ║
║ 3 │ 20 │ warning │ Missing semicolon. │ semi ║
║ 4 │ 12 │ warning │ Unnecessary 'else' after 'return'. │ no-else-return ║
║ 5 │ 1 │ warning │ Expected indentation of 8 spaces but found 6. │ indent ║
║ 5 │ 7 │ error │ Function 'addOne' expected a return value. │ consistent-return ║
║ 5 │ 13 │ warning │ Missing semicolon. │ semi ║
║ 7 │ 2 │ error │ Unnecessary semicolon. │ no-extra-semi ║╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ 5 Errors ║
╟────────────────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ 4 Warnings ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
```## Links
- [Other official ESLint formatters as standalone modules](https://github.com/fregante/eslint-formatters)