Skip to content

Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX

License

Notifications You must be signed in to change notification settings

GlauberrBatista/pronto-eslint_npm

 
 

Repository files navigation

Pronto runner for ESLint (using eslint from npm)

Pronto runner for ESlint, pluggable linting utility for JavaScript and JSX. What is Pronto?

Uses official eslint executable installed by npm in contrast to pronto-eslint.

Prerequisites

You'll need to install eslint by yourself with npm. If eslint is in your PATH, everything will simply work, otherwise you have to provide pronto-eslint-npm your custom executable path (see below).

Configuration of ESLint

Configuring ESLint via .eslintrc and consorts and excludes via .eslintignore will work just fine with pronto-eslint-npm.

Configuration of ESLintNPM

pronto-eslint-npm can be configured by placing a .pronto_eslint_npm.yml inside the directory where pronto is run.

Following options are available:

Option Meaning Default
eslint_executable ESLint executable to call. eslint (calls eslint in PATH)
files_to_lint What files to lint. Absolute path of offending file will be matched against this Regexp. (\.js|\.es6)$
cmd_line_opts Command line options to pass to eslint when running ''
multi_project_folders Array of projects inside the repo. eslint will run inside those dirs []

Example configuration to call custom eslint executable and only lint files ending with .my_custom_extension:

# .pronto_eslint_npm.yml
eslint_executable: '/my/custom/node/path/.bin/eslint'
files_to_lint: '\.my_custom_extension$'
cmd_line_opts: '--ext .html,.js,.es6'
multi_project_folders:
  project1: {}
  project2:
    ccmd_line_opts: '--ext .js' # will override the default cmd_line_opts

About

Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%