eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

js file extension not used

Open
#1,012 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
201
Forks
76
Avg merge
4d 7h
Merged PRs (30d)
21

Description

On default ESLint is not working for files with the extension js.

To get it working, i have to modify the plugin.xml of org.eclipse.wst.jsdt.core to change its file extension from js to js_

In addition i need to patch org.eclipse.wst.jsdt.internal.core.util.Util.getJavaLikeExtensions().

I wonder why others have no problems like this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating how default ESLint handles .js files, then inspect the plugin.xml for org.eclipse.wst.jsdt.core and Java org.eclipse.wst.jsdt.internal.core.util.Util.getJavaLikeExtensions(). Compare the current behavior with the reported workaround. Done means JavaScript files with the .js extension work with default ESLint without either manual patch.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, java, javascript
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.