Skip to content

Conversation

amanokh
Copy link
Collaborator

@amanokh amanokh commented Sep 15, 2025

What was mainly changed:

  • eslint config was refactored to use common languageOptions
  • enforced kebab-style (like name-of-component.utils.tsx) to filenames in /src
  • enforced singlequote strings
  • enforced consistent type definitions (type/interface)
  • fixed prettier config
  • enforced usage of === instead ==, all occurrences of checking the value != null were changed either to !!value or value !== null && value !== undefined (the second is for cases when the value could be an empty string or 0, this should be rewritten in future to use only undefined for types)
  • added max-lines=400 limit for all files
  • enforced typed imports
  • added some stylelint rules
  • added autofixing on save for WebStorm configs

@amanokh amanokh requested a review from Hypnosphi September 15, 2025 13:50
@amanokh amanokh marked this pull request as draft September 15, 2025 14:09
@amanokh amanokh force-pushed the amanokh/eslint-config branch from 911f76e to 25ee3a4 Compare September 15, 2025 14:14
@amanokh amanokh marked this pull request as ready for review September 15, 2025 14:15
@amanokh amanokh changed the title refactor(eslint): Refactor ESLint config, enforce more strict rules refactor(eslint): RG-2636 Refactor ESLint config, enforce more strict rules Sep 15, 2025
@amanokh amanokh merged commit d98016b into master Sep 15, 2025
3 checks passed
@amanokh amanokh deleted the amanokh/eslint-config branch September 15, 2025 15:22
this._data.push(sendingData);

if (this._flushMaxPackSize != null && this._data.length >= this._flushMaxPackSize) {
if (this._flushMaxPackSize && this._data.length >= this._flushMaxPackSize) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think flushMaxPackSize can be 0 as well

@amanokh can you please bring back the checks for null and undefined in all places where you removed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants