UNPKG

eslint-formatter-table

Version:

ESLint’s official `table` formatter, extracted from ESLint 7

51 lines (35 loc) 3.73 kB
# 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. **Warning:** This module is not maintained. If you're an ESLint contributor or dependable open-sourcerer, open an issue here and I'll pass you this repo and npm name. You can also ping me on Twitter [@fregante](https://twitter.com/fregante) ## 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 ║ ╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢ ║ 110 │ error │ 'addOne' is defined but never used. │ no-unused-vars ║ ║ 29 │ error │ Use the isNaN function to compare with NaN. │ use-isnan ║ ║ 316 │ error │ Unexpected space before unary operator '++'. │ space-unary-ops ║ ║ 320 │ warning │ Missing semicolon. │ semi ║ ║ 412 │ warning │ Unnecessary 'else' after 'return'. │ no-else-return ║ ║ 51 │ warning │ Expected indentation of 8 spaces but found 6. │ indent ║ ║ 57 │ error │ Function 'addOne' expected a return value. │ consistent-return ║ ║ 513 │ warning │ Missing semicolon. │ semi ║ ║ 72 │ error │ Unnecessary semicolon. │ no-extra-semi ║ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ ║ 5 Errors ║ ╟────────────────────────────────────────────────────────────────────────────────────────────────────────────────╢ ║ 4 Warnings ║ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ ``` ## Links - [Other official ESLint formatters as standalone modules](https://github.com/fregante/eslint-formatters)