eslint-watch: Error parsing type '--no-color'
I’m not specifying any options, but I’m getting this error on esw
Node version: v5.10.1 eslint version: v2.9.0
Logs: (ran DEBUG=* esw
)
esw:eslint-cli Loaded +0ms
esw:eslint-cli EsLint path: /Users/ben/frontend/node_modules/.bin/eslint +3ms
esw:eslint-help Loaded +33ms
esw:options Loaded +18ms
esw:success-formatter loaded +226ms
esw:simple-detail loaded +2ms
esw:watcher Loaded +0ms
esw:arg-parser Loaded +0ms
esw:esw-cli Loaded +1ms
esw:esw-cli Eslint-Watch: 2.1.10 +0ms
esw:eslint-help Executing help +0ms
esw:eslint-cli eslint: [ '--help' ] +0ms
esw:eslint-help Help text received +254ms
esw:eslint-help noAlias +1ms false
esw:eslint-help Alias found: -c +0ms
esw:eslint-help Parsing --config +0ms
esw:eslint-help noAlias +1ms true
esw:eslint-help Parsing --no-eslintrc +0ms
esw:eslint-help Parsing no option +0ms --no-eslintrc
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --env +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --ext +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --global +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --parser +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --parser-options +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --cache +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --cache-file +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --cache-location +1ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --rulesdir +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --plugin +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --rule +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --ignore-path +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --no-ignore +0ms
esw:eslint-help Parsing no option +0ms --no-ignore
esw:eslint-help noAlias +1ms true
esw:eslint-help Parsing --ignore-pattern +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --stdin +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --stdin-filename +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --quiet +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --max-warnings +0ms
esw:eslint-help noAlias +0ms false
esw:eslint-help Alias found: -o +0ms
esw:eslint-help Parsing --output-file +0ms
esw:eslint-help noAlias +1ms false
esw:eslint-help Alias found: -f +0ms
esw:eslint-help Parsing --format +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --color +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --init +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --fix +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --debug +0ms
esw:eslint-help noAlias +0ms false
esw:eslint-help Alias found: -h +0ms
esw:eslint-help Parsing --help +0ms
esw:eslint-help noAlias +0ms false
esw:eslint-help Alias found: -v +0ms
esw:eslint-help Parsing --version +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --no-inline-config +0ms
esw:eslint-help Parsing no option +0ms --no-inline-config
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --print-config +0ms
[Error: Option 'color': Error parsing type '--no-color': Unexpected character: - - Remaining tokens: ["-","-","no","-","color"] - Initial input: '--no-color']
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- Making tests fail by testing against eslint v2 #81 — committed to rizowski/eslint-watch by rizowski 8 years ago
- Fixing --color, --no-color #81 (#83) * Making tests fail by testing against eslint v2 #81 * Adding tests around the issue * Updating dependencies and cleaning files — committed to rizowski/eslint-watch by rizowski 8 years ago
Cool, I am going to pull this in and publish 2.1.11
This issue most likely resides in the help parser. Formatting or spaces might have changed. It will be the first thing to break since it needs to run before anything else can occur.