aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorbbsteventill <still3@bloomberg.net>2018-03-31 13:01:17 -0400
committerMarkus Doits <doits@users.noreply.github.com>2018-03-31 19:01:17 +0200
commit12df00b5e5ac8287afad0f2d52aa0f35a6e8a2ee (patch)
tree4e261ede9bd5e6f254aca842b3826b68eddaf1bf /README.md
parentf411af6f829477af0bdca765eb5cc3d40c104294 (diff)
downloadpronto-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.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index f5b0d5e..508080b 100644
--- a/README.md
+++ b/README.md
@@ -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
38Example configuration to call custom eslint executable and only lint files ending with `.my_custom_extension`: 39Example 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
42eslint_executable: '/my/custom/node/path/.bin/eslint' 43eslint_executable: '/my/custom/node/path/.bin/eslint'
43files_to_lint: '\.my_custom_extension$' 44files_to_lint: '\.my_custom_extension$'
45cmd_line_opts: '--ext .html,.js,.es6'
44``` 46```