Allow configuration of default JS file types
See original GitHub issuePer https://github.com/eslint/eslint/issues/2388#issuecomment-98183996:
Let’s allow configuration of the file suffixes, maybe in the .eslintrc file.
The problem was that I was not including the jsx files at the command line. Almost all my JS files have suffix JSX.
So this works:
#!/bin/sh
eslint . --ext .jsx,.js
jscs .
On a separate note, if team members don’t want to install eslint globally, any disadvantage to doing this:
npm run eslint . -- --ext .jsx,.js
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Configuration Files - ESLint - Pluggable JavaScript Linter
ESLint supports adding shared settings into configuration files. Plugins use settings to specify the information that should be shared across all of its...
Read more >Properly configuring server MIME types - MDN Web Docs
Server default configurations vary wildly and set different default MIME-type values for files with no defined content type.
Read more >Creating configuration files in Node.js using node-config
Node-config allows you to create configuration files in your Node application for different deployment environments. With it, you can define ...
Read more >jsconfig.json Reference - Visual Studio Code
Enable type checking on JavaScript files. experimentalDecorators, Enables experimental support for proposed ES decorators. allowSyntheticDefaultImports, Allow ...
Read more >TSConfig Reference - Docs on every TSConfig option
All relative paths found in the configuration file will be resolved ... extensions are included (e.g. .ts , .tsx , and .d.ts by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We don’t plan to address this until we look at redoing how configuration is done, so no immediate changes are expected here.
We will look into this after 2.0.0, unless someone wants to investigate in the meantime.