sindresorhus / Eslint Formatter Pretty
Licence: mit
Pretty ESLint formatter
Stars: ✭ 361
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Eslint Formatter Pretty
Eslint Plugin Node
Additional ESLint's rules for Node.js
Stars: ✭ 740 (+104.99%)
Mutual labels: eslint, npm-package
Eslint Plugin Vue
Official ESLint plugin for Vue.js
Stars: ✭ 3,592 (+895.01%)
Mutual labels: eslint, npm-package
Eslint Plugin Eslint Comments
Additional ESLint rules for directive comments of ESLint.
Stars: ✭ 221 (-38.78%)
Mutual labels: eslint, npm-package
Mevn Cli
Light speed setup for MEVN(Mongo Express Vue Node) Apps
Stars: ✭ 696 (+92.8%)
Mutual labels: eslint, npm-package
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-91.14%)
Mutual labels: eslint, npm-package
typescript-npm-package-template
Boilerplate to kickstart creating an npm package using TypeScript
Stars: ✭ 122 (-66.2%)
Mutual labels: eslint, npm-package
Eslint Plugin Html
An ESLint plugin to extract and lint scripts from HTML files.
Stars: ✭ 333 (-7.76%)
Mutual labels: eslint
Wasmer Js
Monorepo for Javascript WebAssembly packages by Wasmer
Stars: ✭ 352 (-2.49%)
Mutual labels: npm-package
Ngx Meta
Dynamic page title & meta tags utility for Angular (w/server-side rendering)
Stars: ✭ 331 (-8.31%)
Mutual labels: npm-package
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+5087.53%)
Mutual labels: eslint
Node Tail
The zero dependency Node.js module for tailing a file
Stars: ✭ 335 (-7.2%)
Mutual labels: npm-package
Squirrelly
Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript ⛺
Stars: ✭ 359 (-0.55%)
Mutual labels: npm-package
Typescript Webpack Starter
⚡ create-ts-lib: A Starter Kit and a CLI to create your TypeScript / ES6 module bundled by Webpack without thinking about build or unit tests configurations. 🏠
Stars: ✭ 358 (-0.83%)
Mutual labels: npm-package
Tslint Config Standard
A TSLint config for JavaScript Standard Style
Stars: ✭ 358 (-0.83%)
Mutual labels: eslint
Eslint Nibble
Ease into ESLint, by fixing one rule at a time
Stars: ✭ 322 (-10.8%)
Mutual labels: eslint
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (-0.83%)
Mutual labels: eslint
eslint-formatter-pretty
Pretty formatter for ESLint
Highlights
- Pretty output.
- Sorts results by severity.
- Stylizes inline codeblocks in messages.
- Command-click a rule ID to open its docs.
- Command-click a header to reveal the first error in your editor. (iTerm-only)
Install
$ npm install --save-dev eslint-formatter-pretty
Usage
XO
Nothing to do. It's the default formatter.
ESLint CLI
$ eslint --format=pretty file.js
grunt-eslint
grunt.initConfig({
eslint: {
target: ['file.js'].
options: {
format: 'pretty'
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('default', ['eslint']);
gulp-eslint
const gulp = require('gulp');
const eslint = require('gulp-eslint');
gulp.task('lint', () =>
gulp.src('file.js')
.pipe(eslint())
.pipe(eslint.format('pretty'))
);
eslint-loader (webpack)
module.exports = {
entry: ['file.js'],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-pretty')
}
}
]
}
};
Tips
In iTerm, Command-click the filename header to open the file in your editor.
In terminals with support for hyperlinks, Command-click the rule ID to open its docs.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].