question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow configuration of default JS file types

See original GitHub issue

Per 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:closed
  • Created 8 years ago
  • Reactions:5
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
nzakascommented, Apr 18, 2016

We don’t plan to address this until we look at redoing how configuration is done, so no immediate changes are expected here.

1reaction
nzakascommented, Sep 3, 2015

We will look into this after 2.0.0, unless someone wants to investigate in the meantime.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found