Merged
Conversation
c680bb4 to
1f34c53
Compare
som-sm
commented
Mar 29, 2026
| '@stylistic/function-paren-newline': 'off', | ||
| '@stylistic/object-curly-newline': 'off', | ||
| '@stylistic/curly-newline': 'off', | ||
| '@stylistic/operator-linebreak': ['error', 'before', {overrides: {'=': 'after'}}], |
Collaborator
Author
| '@typescript-eslint/consistent-indexed-object-style': 'off', | ||
| '@typescript-eslint/unified-signatures': 'off', // Temp | ||
| '@typescript-eslint/no-unnecessary-type-arguments': 'off', | ||
| '@typescript-eslint/no-unsafe-type-assertion': 'off', |
Collaborator
Author
There was a problem hiding this comment.
Can't have this because we have assertions like {} as ... everywhere in tests. And in source files, there's no scope for assertions.
| '@stylistic/quote-props': 'off', | ||
| '@stylistic/function-paren-newline': 'off', | ||
| '@stylistic/object-curly-newline': 'off', | ||
| '@stylistic/curly-newline': 'off', |
Collaborator
Author
There was a problem hiding this comment.
Turned this off because it seems to have conflicts with other rules. And also there's no good default for this rule for our codebase.
xo.config.js
Outdated
| '@stylistic/curly-newline': 'off', | ||
| '@stylistic/operator-linebreak': ['error', 'before', {overrides: {'=': 'after'}}], | ||
| 'n/file-extension-in-import': 'off', | ||
| 'unicorn/require-module-specifiers': 'off', |
Collaborator
Author
There was a problem hiding this comment.
Turned this off because source files have export {}.
1f34c53 to
a30b733
Compare
a30b733 to
8da93e0
Compare
som-sm
commented
Mar 29, 2026
| paths: ['tsd', 'expect-type'], | ||
| }, | ||
| ], | ||
| 'unicorn/require-module-specifiers': 'off', |
Collaborator
Author
There was a problem hiding this comment.
Can't have this in .d.ts files because there we have export {}.
Comment on lines
61
to
125
| @@ -110,6 +121,7 @@ const xoConfig = [ | |||
| '@stylistic/eol-last': 'off', | |||
| 'capitalized-comments': 'off', | |||
| 'unicorn/prefer-structured-clone': 'off', | |||
| 'unicorn/no-immediate-mutation': 'off', | |||
| }, | |||
Collaborator
Author
There was a problem hiding this comment.
Can't have unicorn/no-immediate-mutation enabled in tests and JSDoc codeblocks because we need this at times.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Update to XO v2 & ESLint v10.
Majority of the changes in this PR are styling-related. The ones which are not are also pretty simple, like:
.sortwith.toSorted.BigIntconstructor calls to bigint literals.vflag to regular expression.