All Projects → pinterest → Esprint

pinterest / Esprint

Licence: apache-2.0
Fast eslint runner

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Esprint

eslint-config-kingstinct-react-native
Eslint configuration for React-native based on Airbnb with some great tweaks
Stars: ✭ 23 (-95.86%)
Mutual labels:  eslint, linter
elint
A easy way to lint your code
Stars: ✭ 38 (-93.17%)
Mutual labels:  eslint, linter
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (-84.53%)
Mutual labels:  eslint, linter
Eslint Plugin Sonarjs
SonarJS rules for ESLint
Stars: ✭ 458 (-17.63%)
Mutual labels:  eslint, linter
Awesome Standard
Documenting the explosion of packages in the standard ecosystem!
Stars: ✭ 300 (-46.04%)
Mutual labels:  eslint, linter
Eslint Plugin Markdown
Lint JavaScript code blocks in Markdown documents
Stars: ✭ 242 (-56.47%)
Mutual labels:  eslint, linter
standard-packages
List of packages that use `standard`
Stars: ✭ 32 (-94.24%)
Mutual labels:  eslint, linter
Eslint Watch
ESLint with simple watching capabilities
Stars: ✭ 159 (-71.4%)
Mutual labels:  eslint, linter
Lint Review
An automated code linting bot that integrates various code lint tools with github pull requests.
Stars: ✭ 279 (-49.82%)
Mutual labels:  eslint, linter
awesome-react-app
Always the latest version of "create-react-app" with awesome configurations (lint, commit lint, husk, editor config, etc)
Stars: ✭ 44 (-92.09%)
Mutual labels:  eslint, linter
Grunt Eslint
Validate files with ESLint
Stars: ✭ 189 (-66.01%)
Mutual labels:  eslint, linter
Lynt
✨ A zero config JavaScript linter with support for Typescript, Flow, and React.
Stars: ✭ 390 (-29.86%)
Mutual labels:  eslint, linter
Eslint Config Standard
ESLint Config for JavaScript Standard Style
Stars: ✭ 2,229 (+300.9%)
Mutual labels:  eslint, linter
arcanist-linters
A collection of custom Arcanist linters
Stars: ✭ 64 (-88.49%)
Mutual labels:  eslint, linter
Poetic
Automatically install and maintain ESLint, Prettier, EditorConfig and Airbnb rules for JavaScript, TypeScript and React.
Stars: ✭ 165 (-70.32%)
Mutual labels:  eslint, linter
eslint-config
An ESLint shareable config that I used in my projects
Stars: ✭ 15 (-97.3%)
Mutual labels:  eslint, linter
Eslint Plugin I18n Json
Fully extendable eslint plugin for JSON i18n translation files.
Stars: ✭ 101 (-81.83%)
Mutual labels:  eslint, linter
Zoe
🌀 Zero-config ESLint toolchain with sensible defaults.
Stars: ✭ 113 (-79.68%)
Mutual labels:  eslint, linter
gandalf-lint
Bad Code Shall Not Pass
Stars: ✭ 29 (-94.78%)
Mutual labels:  eslint, linter
Eslint
Find and fix problems in your JavaScript code.
Stars: ✭ 19,665 (+3436.87%)
Mutual labels:  eslint, linter

esprint - a fast eslint runner GitHub Workflow Status npm version

esprint (pronounced E-S-sprint) speeds up eslint by running the linting engine across multiple threads. esprint sets up a server daemon to cache the lint status of each file in memory. It uses a watcher to determine when files change, to only lint files as necessary. It also has a CI mode where it does not set up a daemon and just lints in parallel.

Configuration

In order to use esprint, first place an .esprintrc file in the root directory your project. This is similar to a .flowconfig if you use flow types. The .esprintrc file describes which paths to lint and which paths to ignore. You can also override the port to start the background server on. A sample .esprintrc file:

{
  "paths": ["foo/*.js", "bar/**/*.js"],
  "ignored": ["**/node_modules/**/*"],
  "port": 5004
}

Options:

Name Type Description
paths {Array<String>} Glob-style paths for files to include when linting
ignored {Array<String>} Glob-style paths to ignore (not watch) during dev mode for better performance (.eslintignore applies as normal)
port {Number} (optional) Run the esprint background server on a specific port
formatter {string} (optional) Use a specific output format - default: stylish
quiet {boolean} (optional) Report errors only - default: false
maxWarnings {number} (optional) The max number of warnings that should trigger a failure. The default is to not fail on warnings

Usage

Default mode

To run esprint, use the following command anywhere in your project:

$ esprint

esprint will find the root of your project automatically and lint the whole project. In default mode, esprint will start a background server to watch source files and cache lint results in memory.

By default, esprint will split up linting duties across all CPUs in your machine. You can manually override this via the cli with the following argument:

$ esprint --workers=[num_workers]

To kill the esprint server in the background & clear the cache, use the following command:

$ esprint stop

You can run esprint from any subdirectory that .esprintrc is located in, and it will still properly lint all files as specified.

CI Mode

In CI environments, it is not always appropriate (or necessary) to start a background server. In this case, you can use the following command, which simply lints in parallel without setting up a background server:

$ esprint check

CLI Options

Auto fix

To use the eslint auto fix feature, add --fix when starting the server

$ esprint --fix

or when running in CI mode

$ esprint check --fix

Developing for esprint

Refer to CONTRIBUTING

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].