diff options
author | bbsteventill <still3@bloomberg.net> | 2018-03-31 13:01:17 -0400 |
---|---|---|
committer | Markus Doits <doits@users.noreply.github.com> | 2018-03-31 19:01:17 +0200 |
commit | 12df00b5e5ac8287afad0f2d52aa0f35a6e8a2ee (patch) | |
tree | 4e261ede9bd5e6f254aca842b3826b68eddaf1bf /README.md | |
parent | f411af6f829477af0bdca765eb5cc3d40c104294 (diff) | |
download | pronto-hlint-12df00b5e5ac8287afad0f2d52aa0f35a6e8a2ee.tar.gz pronto-hlint-12df00b5e5ac8287afad0f2d52aa0f35a6e8a2ee.tar.zst pronto-hlint-12df00b5e5ac8287afad0f2d52aa0f35a6e8a2ee.zip |
added ability to set config opts to eslint (#9)
* added ability to set config opts to eslint
* add spec for eslint command line
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -34,6 +34,7 @@ Following options are available: | |||
34 | | ----------------- | ---------------------------------------------------------------------------------------- | ----------------------------------- | | 34 | | ----------------- | ---------------------------------------------------------------------------------------- | ----------------------------------- | |
35 | | eslint_executable | ESLint executable to call. | `eslint` (calls `eslint` in `PATH`) | | 35 | | eslint_executable | ESLint executable to call. | `eslint` (calls `eslint` in `PATH`) | |
36 | | files_to_lint | What files to lint. Absolute path of offending file will be matched against this Regexp. | `(\.js|\.es6)$` | | 36 | | files_to_lint | What files to lint. Absolute path of offending file will be matched against this Regexp. | `(\.js|\.es6)$` | |
37 | | cmd_line_opts | Command line options to pass to eslint when running | '' | | ||
37 | 38 | ||
38 | Example configuration to call custom eslint executable and only lint files ending with `.my_custom_extension`: | 39 | Example configuration to call custom eslint executable and only lint files ending with `.my_custom_extension`: |
39 | 40 | ||
@@ -41,4 +42,5 @@ Example configuration to call custom eslint executable and only lint files endin | |||
41 | # .pronto_eslint_npm.yml | 42 | # .pronto_eslint_npm.yml |
42 | eslint_executable: '/my/custom/node/path/.bin/eslint' | 43 | eslint_executable: '/my/custom/node/path/.bin/eslint' |
43 | files_to_lint: '\.my_custom_extension$' | 44 | files_to_lint: '\.my_custom_extension$' |
45 | cmd_line_opts: '--ext .html,.js,.es6' | ||
44 | ``` | 46 | ``` |