nextcloud-libraries / nextcloud-libraries/eslint-config

[RFC] Add mixed js-ts config

Open
#1,004 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
9
Forks
4
Avg merge
5h 5m
Merged PRs (30d)
24

Description

There are some rules that are problematic in mixed JS-TS repositories, which is quite a wide case in our ecosystem.

While we can define different rules for .js and .ts files, we cannot do it for .vue files (they can be both JS and TS).

Currently we can:

  • Make TS config more friendly for mixed repos (less strict)
  • Force developers to override the config

Instead, we can provide a config for shared environments:

  • TS config is still strict
  • Developers don't need to make the same overrides

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

No files, tests, or entry points are named. Start by reviewing the existing JavaScript and TypeScript configurations and how Vue files are handled; done means providing a shared mixed JS-TS configuration that keeps TypeScript strict without requiring repeated overrides.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.