Comments (5)
I'm planning on looking into this and making a pull request.
from eslint-watch.
Can you post the version of eslint and eslint-watch you know you are using? Also posting the debug log.
DEBUG=esw:* esw -w --ext .js,.jsx
from eslint-watch.
Calvins-MacBook-Pro:eslint-watch calvinwoo$ DEBUG=esw:* esw -w --ext .js,.jsx .
esw:eslint-cli Loaded +0ms
esw:eslint-cli EsLint path: /Users/calvinwoo/Gitprojects/eslint-watch/node_modules/.bin/eslint +3ms
esw:eslint-help Loaded +35ms
esw:options Loaded +27ms
esw:watcher Loaded +242ms
esw:arg-parser Loaded +26ms
esw:esw-cli Loaded +0ms
esw:eslint-help Executing help +1ms
esw:eslint-cli Linting: undefined +0ms
esw:eslint-help Help text received +265ms
esw:eslint-help noAlias +1ms false
esw:eslint-help Alias found: -c +0ms
esw:eslint-help Parsing --config +1ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --no-eslintrc +1ms
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 --cache +0ms
esw:eslint-help noAlias +1ms true
esw:eslint-help Parsing --cache-file +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --cache-location +0ms
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 +0ms 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 +1ms
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 +0ms false
esw:eslint-help Alias found: -f +0ms
esw:eslint-help Parsing --format +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --no-color +0ms
esw:eslint-help Parsing no option +0ms --no-color
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --init +0ms
esw:eslint-help noAlias +0ms true
esw:eslint-help Parsing --fix +1ms
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:esw-cli Arguments passed: [ '/Users/calvinwoo/.nvm/versions/node/v4.2.1/bin/node', '/usr/local/bin/esw', '-w', '--ext', '.js,.jsx', '.' ] +5ms
esw:esw-cli Parsing args +3ms
esw:arg-parser Directories to check: [ '.' ] +1ms
esw:arg-parser Args [ '-w', '--ext', '.js,.jsx', '.' ] +0ms
esw:arg-parser Pushing item: --ext +0ms
esw:arg-parser Pushing item: .js,.jsx +0ms
esw:arg-parser Pushing item: . +0ms
esw:arg-parser setting custom formatter +0ms
esw:arg-parser GetPath: simple-detail +0ms
esw:esw-cli Running initial lint +0ms
esw:esw-cli [ '--ext', '.js,.jsx', '.', '-f', '/usr/local/lib/node_modules/eslint-watch/src/formatters/simple-detail' ] +1ms
esw:eslint-cli Linting: [ '.' ] +0ms
esw:esw-cli -w seen +2ms
esw:watcher Watching: [ '.' ] +5ms
✓ Clean (9:59:59 AM)
esw:esw-cli Setting exit code to: 0 +668ms
esw:watcher Changed: +699ms src/.watcher.js.swp
esw:watcher Changed: +3ms test/.test.jsx.swp
esw:watcher Changed: +8s src/watcher.js
esw:watcher lintFile: src/watcher.js +93ms
esw:watcher result: { filePath: '/Users/calvinwoo/Gitprojects/eslint-watch/src/watcher.js', messages: [], errorCount: 0, warningCount: 0 } +85ms
✓ /Users/calvinwoo/Gitprojects/eslint-watch/src/watcher.js (10:00:08 AM)
esw:watcher Changed: +2s test/test.jsx
NodeJS version 4.2.1
, ESLint version 1.10.3
.
As you can see from last couple lines of the debug log, Chokidar is detecting all file changes. It runs the linter for the .js
file, but not for the .jsx
file.
from eslint-watch.
@calvinwoo Its been released with version 2.1.7
from eslint-watch.
from eslint-watch.
Related Issues (20)
- esw --watch throws EPERM on Windows HOT 4
- Doesn't track file changes with --ext js,jsx HOT 4
- esw results are doubled/shown twice HOT 6
- Option to not print "clean" message; only errors HOT 4
- Changing branches on git triggers dozens of concurrent `eslint` processes to be created HOT 3
- Hope to have more comfortable information. HOT 2
- npm audit high priority warning HOT 1
- Error parsing '--rule' CLI option HOT 2
- Missing Module HOT 3
- Running `esw --changed -w` causes non-JS files to attempt to be linted HOT 4
- `--clear --color -w` causes duplicated output HOT 4
- Slowness, maybe because it's not just linting an individual file? not sure HOT 1
- Watch mode does print to the console HOT 4
- ESLint 8 support HOT 2
- "The --print-config option must be used with exactly one file name." HOT 1
- Nothing happens HOT 6
- `ENOENT` of `eslint` causes a silent exit rather than an expected error message to install `eslint`
- Print a message upon file watch trigger HOT 3
- --watch-ignore should include by default the ignored patterns
- Tried it and had to uninstall it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-watch.