FlowFuse / FlowFuse/flowfuse

Add no-trailing-spaces rule to our standard linting configuration

Open
#1,098 4 comments 0 reactions 0 assignees View on GitHub
type:feature
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Description

#### Proposal No 1.
The lint rule preventing trailing spaces prevents line breaks in JSDoc

_JSDOC: two spaces at the end of a comment == newline_

I would like to propose we change `no-trailing-spaces` to `"ignoreComments": true` (allows trailing whitespace in comment blocks)

REF: https://eslint.org/docs/latest/rules/no-trailing-spaces#options


---

_Widen scope to capture other ideas that fall under this umbrella_
_e.g: env `es2022`? ecmaVersion `'13'` or `"latest"` etc_

Contributor guide

Open the contributing guide

Research direction

Locate the repository's standard ESLint configuration and inspect the current no-trailing-spaces setting. Clarify whether the intended scope is only allowing trailing whitespace in JSDoc comments or also the additional environment and ECMAScript-version ideas; done means the agreed configuration is updated and lint behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.