Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependencies): update eslint 8->9 #296

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hlolli
Copy link
Contributor

@hlolli hlolli commented Jan 30, 2025

following the migration guide https://eslint.org/docs/latest/use/configure/migration-guide

added two packages that the migration required, ran a migration script that moved .eslintrc to a new eslint mjs file. Some automated (and few manual) linter fixes.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.45%. Comparing base (a2194db) to head (392cb79).

Files with missing lines Patch % Lines
src/lib/validation.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #296   +/-   ##
========================================
  Coverage    72.45%   72.45%           
========================================
  Files           40       40           
  Lines        10153    10155    +2     
  Branches       586      586           
========================================
+ Hits          7356     7358    +2     
  Misses        2793     2793           
  Partials         4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@djwhitt djwhitt force-pushed the feature/PE-7535_major_1 branch from 3415a8b to 1853eb1 Compare January 30, 2025 20:32
Base automatically changed from feature/PE-7535_major_1 to develop January 30, 2025 20:36
@djwhitt djwhitt force-pushed the feature/PE-7535_major_2 branch from fb1dcb8 to 06b382c Compare January 30, 2025 21:47
Copy link
Contributor

coderabbitai bot commented Jan 30, 2025

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

error @permaweb/[email protected]: The engine "yarn" is incompatible with this module. Expected version "please-use-npm". Got "1.22.22"
error Found incompatible module.

📝 Walkthrough

Walkthrough

This pull request introduces a comprehensive update to the ESLint configuration for the project. The primary changes include replacing the legacy .eslintrc configuration with a new eslint.config.mjs file, which adopts the latest ESLint flat configuration approach. The package dependencies for ESLint and related plugins have been updated to their latest versions. Additionally, several files across the project have been modified to remove ESLint-related comments and non-null assertions, reflecting a refinement of linting practices and code style.

Changes

File Change Summary
.eslintrc Deleted legacy ESLint configuration file
eslint.config.mjs New ESLint configuration file using flat config approach
package.json Updated ESLint-related dependencies and versions
src/data/ar-io-data-source.ts Replaced shorthand interval clearing with explicit if statement
src/data/gateways-data-source.test.ts Removed ESLint disable comments
src/data/read-through-data-cache.test.ts Removed non-null assertion operators in test assertions
src/lib/validation.ts Modified condition for checking block.height
src/store/kv-debounce-store.test.ts Removed ESLint disable comments
src/store/lmdb-kv-store.test.ts Removed ESLint disable comments
src/workers/*-worker.ts Replaced shorthand interval clearing with explicit if statements
test/sqlite-helpers.ts Removed ESLint disable comment

Possibly related PRs

Suggested reviewers

  • karlprieb

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
eslint.config.mjs (1)

49-73: Document rationale for disabled rules.

Several TypeScript and ESLint rules are disabled without explanation:

  • @typescript-eslint/no-explicit-any
  • @typescript-eslint/no-unused-vars
  • no-unused-vars
  • no-console

Consider adding comments explaining why these rules are disabled or enable them if possible.

src/store/lmdb-kv-store.test.ts (1)

44-44: Consider using type guards instead of non-null assertions.

While the non-null assertions are safe here due to the preceding checks, consider using type guards for better type safety:

-    assert.equal(toB64Url(result!), 'test');
+    if (result) {
+      assert.equal(toB64Url(result), 'test');
+    }

This pattern would be more explicit and type-safe, eliminating the need for non-null assertions.

Also applies to: 64-64, 77-77

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b82345 and 06b382c.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (13)
  • .eslintrc (0 hunks)
  • eslint.config.mjs (1 hunks)
  • package.json (2 hunks)
  • src/data/ar-io-data-source.ts (1 hunks)
  • src/data/gateways-data-source.test.ts (1 hunks)
  • src/data/read-through-data-cache.test.ts (4 hunks)
  • src/lib/validation.ts (1 hunks)
  • src/store/kv-debounce-store.test.ts (6 hunks)
  • src/store/lmdb-kv-store.test.ts (3 hunks)
  • src/workers/sqlite-wal-cleanup-worker.ts (1 hunks)
  • src/workers/transaction-offset-repair-worker.ts (1 hunks)
  • src/workers/transaction-repair-worker.ts (1 hunks)
  • test/sqlite-helpers.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • test/sqlite-helpers.ts
  • .eslintrc
✅ Files skipped from review due to trivial changes (4)
  • src/data/ar-io-data-source.ts
  • src/store/kv-debounce-store.test.ts
  • src/data/read-through-data-cache.test.ts
  • src/data/gateways-data-source.test.ts
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test (macos-latest)
  • GitHub Check: test (ubuntu-latest)
🔇 Additional comments (5)
eslint.config.mjs (1)

15-16: Consider tracking the header plugin workaround.

The workaround for the header plugin's schema validation might need to be removed once issue #57 is resolved.

✅ Verification successful

Workaround is the current recommended solution

The workaround for the header plugin's schema validation is the officially recommended solution, as confirmed in the issue discussion. While there are ongoing efforts to implement a proper fix, this approach remains the standard solution for ESLint v9 compatibility.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if the issue is still open
gh issue view 57 --repo Stuk/eslint-plugin-header

Length of output: 1407


Script:

#!/bin/bash
# Check the latest comments on the issue
gh issue view 57 --repo Stuk/eslint-plugin-header --comments

Length of output: 7596

src/workers/sqlite-wal-cleanup-worker.ts (1)

52-54: LGTM! Improved readability of interval clearing.

The explicit if statement is clearer than the previous ternary operator.

src/workers/transaction-repair-worker.ts (1)

57-59: LGTM! Consistent with other interval clearing changes.

The explicit if statement matches the pattern used in other workers.

src/workers/transaction-offset-repair-worker.ts (1)

54-56: LGTM! Maintains consistency across workers.

The explicit if statement follows the same pattern used in other worker classes.

package.json (1)

58-59: Verify compatibility between updated dependencies.

The ESLint upgrade includes several major version jumps:

Let's verify the compatibility of these versions:

Additionally, ensure that:

  1. All ESLint rules still work as expected after the upgrade
  2. The new ESLint configuration is tested across different file types
  3. CI pipeline includes linting checks

Also applies to: 77-78, 81-82, 86-86

✅ Verification successful

Dependencies compatibility verified ✓

All version requirements are met:

  • ESLint v9 is supported by all plugins
  • TypeScript v5.7.3 is compatible with @typescript-eslint v8
  • No deprecation notices found
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for any peer dependency warnings or compatibility issues
npm info [email protected] peerDependencies
npm info @typescript-eslint/[email protected] peerDependencies
npm info [email protected] peerDependencies

# Check if there are any deprecation notices
npm view [email protected] deprecated
npm view @typescript-eslint/[email protected] deprecated
npm view [email protected] deprecated

Length of output: 477


Script:

#!/bin/bash
# Extract typescript version from package.json
jq -r '.dependencies.typescript // .devDependencies.typescript' package.json

Length of output: 85

Comment on lines +39 to +47
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
project: 'tsconfig.json',
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Update language options for modern TypeScript.

The current configuration might be too restrictive:

  • ecmaVersion: 5 is outdated for a TypeScript project
  • sourceType: 'script' could cause issues with ES modules

Apply this diff to align with modern TypeScript practices:

    languageOptions: {
      parser: tsParser,
-     ecmaVersion: 5,
-     sourceType: 'script',
+     ecmaVersion: 2022,
+     sourceType: 'module',

      parserOptions: {
        project: 'tsconfig.json',
      },
    },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: 'script',
parserOptions: {
project: 'tsconfig.json',
},
},
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
project: 'tsconfig.json',
},
},

@@ -44,7 +44,7 @@ export function sanityCheckBlock(block: PartialJsonBlock) {
throw new Error("Invalid block: invalid 'indep_hash' format");
}

if (!block.height === undefined) {
if (!block.height === false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix the block height validation logic.

The current condition if (!block.height === false) is confusing and potentially error-prone. It's equivalent to checking if block.height is truthy, which isn't the intended validation.

Consider this clearer alternative:

-  if (!block.height === false) {
+  if (block.height === undefined) {
     throw new Error("Invalid block: missing 'height'");
   }

This explicitly checks for undefined, making the validation more straightforward and maintainable.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if (!block.height === false) {
if (block.height === undefined) {

@djwhitt
Copy link
Collaborator

djwhitt commented Jan 31, 2025

@hlolli I'm in favor of upgrading, but I get the following when I run yarn lint:check on this branch:

yarn lint:check
yarn run v1.22.22
$ eslint src test
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.7.3

Please only submit bug reports when using the officially supported version.

=============

/home/djwhitt/Work/pds/ar-io-node/src/data/ar-io-data-source.ts
  97:9  error  'cursor' is never reassigned. Use 'const' instead  prefer-const

/home/djwhitt/Work/pds/ar-io-node/src/data/gateways-data-source.test.ts
  30:27  error  Unexpected empty method 'use'  @typescript-eslint/no-empty-function
  31:28  error  Unexpected empty method 'use'  @typescript-eslint/no-empty-function

/home/djwhitt/Work/pds/ar-io-node/src/data/read-through-data-cache.test.ts
  176:24  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  195:24  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  230:24  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  232:24  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  281:20  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  384:24  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion

/home/djwhitt/Work/pds/ar-io-node/src/lib/ans-104.ts
  298:9  error  'data' is never reassigned. Use 'const' instead        prefer-const
  304:9  error  'bundlePath' is never reassigned. Use 'const' instead  prefer-const

/home/djwhitt/Work/pds/ar-io-node/src/lib/data-root.ts
  173:9  error  'data' is never reassigned. Use 'const' instead      prefer-const
  179:9  error  'dataPath' is never reassigned. Use 'const' instead  prefer-const

/home/djwhitt/Work/pds/ar-io-node/src/routes/data/handlers.ts
  368:7  error  'dataAttributes' is never reassigned. Use 'const' instead  prefer-const
  396:7  error  'data' is never reassigned. Use 'const' instead            prefer-const
  468:7  error  'dataAttributes' is never reassigned. Use 'const' instead  prefer-const
  481:7  error  'data' is never reassigned. Use 'const' instead            prefer-const
  595:7  error  'dataAttributes' is never reassigned. Use 'const' instead  prefer-const
  638:9  error  'data' is never reassigned. Use 'const' instead            prefer-const

/home/djwhitt/Work/pds/ar-io-node/src/store/kv-debounce-store.test.ts
   59:27  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
   81:20  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  141:20  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  166:20  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  175:20  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion

/home/djwhitt/Work/pds/ar-io-node/src/store/lmdb-kv-store.test.ts
  44:27  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  64:27  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion
  77:27  warning  Forbidden non-null assertion  @typescript-eslint/no-non-null-assertion

/home/djwhitt/Work/pds/ar-io-node/src/store/s3-data-store.ts
  255:7  error  'uploadId' is never reassigned. Use 'const' instead  prefer-const

/home/djwhitt/Work/pds/ar-io-node/src/workers/transaction-fetcher.ts
  100:9  error  'tx' is never reassigned. Use 'const' instead  prefer-const

✖ 29 problems (15 errors, 14 warnings)

@djwhitt djwhitt force-pushed the feature/PE-7535_major_2 branch from 06b382c to 392cb79 Compare January 31, 2025 18:23
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 06b382c and 392cb79.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (13)
  • .eslintrc (0 hunks)
  • eslint.config.mjs (1 hunks)
  • package.json (2 hunks)
  • src/data/ar-io-data-source.ts (1 hunks)
  • src/data/gateways-data-source.test.ts (1 hunks)
  • src/data/read-through-data-cache.test.ts (4 hunks)
  • src/lib/validation.ts (1 hunks)
  • src/store/kv-debounce-store.test.ts (6 hunks)
  • src/store/lmdb-kv-store.test.ts (3 hunks)
  • src/workers/sqlite-wal-cleanup-worker.ts (1 hunks)
  • src/workers/transaction-offset-repair-worker.ts (1 hunks)
  • src/workers/transaction-repair-worker.ts (1 hunks)
  • test/sqlite-helpers.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • test/sqlite-helpers.ts
  • .eslintrc
🚧 Files skipped from review as they are similar to previous changes (10)
  • src/workers/transaction-repair-worker.ts
  • src/workers/sqlite-wal-cleanup-worker.ts
  • src/data/ar-io-data-source.ts
  • src/store/kv-debounce-store.test.ts
  • src/lib/validation.ts
  • src/data/gateways-data-source.test.ts
  • src/workers/transaction-offset-repair-worker.ts
  • src/store/lmdb-kv-store.test.ts
  • src/data/read-through-data-cache.test.ts
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test (macos-latest)
  • GitHub Check: test (ubuntu-latest)
🔇 Additional comments (4)
eslint.config.mjs (4)

1-21: LGTM! Note about the header plugin workaround.

The imports and setup are well-organized. The workaround for the header plugin schema issue is properly documented with a reference to the GitHub issue.


24-29: LGTM! Configuration extends are well-structured.

The configuration properly extends the recommended configs in the correct order: ESLint base, TypeScript ESLint, and Prettier.


39-47: Update language options for modern TypeScript.

The current configuration is too restrictive for a modern TypeScript project.

Apply this diff to align with modern TypeScript practices:

    languageOptions: {
      parser: tsParser,
-     ecmaVersion: 5,
-     sourceType: 'script',
+     ecmaVersion: 2022,
+     sourceType: 'module',

      parserOptions: {
        project: 'tsconfig.json',
      },
    },

1-6: Verify TypeScript version compatibility.

The PR comments indicate a version mismatch between TypeScript (5.7.3) and @typescript-eslint's supported versions (3.3.1 to 5.2.0).

Run this script to check compatibility:

✅ Verification successful

TypeScript version 5.7.3 is compatible with @typescript-eslint

The @typescript-eslint packages support TypeScript versions from 4.8.4 up to (but not including) 5.8.0, which means TypeScript 5.7.3 is fully supported.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check TypeScript and @typescript-eslint versions

# Get installed TypeScript version
echo "Installed TypeScript version:"
npm list typescript

# Get @typescript-eslint peer dependencies
echo -e "\n@typescript-eslint peer dependencies:"
npm info "@typescript-eslint/parser" peerDependencies
npm info "@typescript-eslint/eslint-plugin" peerDependencies

# Get ESLint version
echo -e "\nInstalled ESLint version:"
npm list eslint

Length of output: 656

Comment on lines +49 to +82
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],

'@typescript-eslint/strict-boolean-expressions': [
2,
{
allowNullableObject: true,
allowNullableBoolean: true,
allowAny: true,
},
],

eqeqeq: ['error', 'smart'],
'jest-formatting/padding-around-describe-blocks': 2,
'jest-formatting/padding-around-test-blocks': 2,
'header/header': [2, './resources/license.header.js'],
'mocha/max-top-level-suites': 'off',
'mocha/no-exports': 'off',
'mocha/no-mocha-arrows': 'off',
'no-console': 0,
'no-return-await': 2,
'no-unneeded-ternary': 2,
'no-unused-vars': 'off',

'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],

'unicorn/prefer-node-protocol': 2,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add rules to address reported linting issues.

Based on the PR comments, there are several linting issues that should be addressed:

  • prefer-const violations
  • non-null assertion warnings

Add these rules to enforce better code quality:

    rules: {
      '@typescript-eslint/no-explicit-any': ['off'],
      '@typescript-eslint/no-unused-vars': ['off'],
+     '@typescript-eslint/no-non-null-assertion': ['warn'],
+     'prefer-const': ['error'],

      '@typescript-eslint/strict-boolean-expressions': [
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/strict-boolean-expressions': [
2,
{
allowNullableObject: true,
allowNullableBoolean: true,
allowAny: true,
},
],
eqeqeq: ['error', 'smart'],
'jest-formatting/padding-around-describe-blocks': 2,
'jest-formatting/padding-around-test-blocks': 2,
'header/header': [2, './resources/license.header.js'],
'mocha/max-top-level-suites': 'off',
'mocha/no-exports': 'off',
'mocha/no-mocha-arrows': 'off',
'no-console': 0,
'no-return-await': 2,
'no-unneeded-ternary': 2,
'no-unused-vars': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'unicorn/prefer-node-protocol': 2,
},
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/no-non-null-assertion': ['warn'],
'prefer-const': ['error'],
'@typescript-eslint/strict-boolean-expressions': [
2,
{
allowNullableObject: true,
allowNullableBoolean: true,
allowAny: true,
},
],
eqeqeq: ['error', 'smart'],
'jest-formatting/padding-around-describe-blocks': 2,
'jest-formatting/padding-around-test-blocks': 2,
'header/header': [2, './resources/license.header.js'],
'mocha/max-top-level-suites': 'off',
'mocha/no-exports': 'off',
'mocha/no-mocha-arrows': 'off',
'no-console': 0,
'no-return-await': 2,
'no-unneeded-ternary': 2,
'no-unused-vars': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'unicorn/prefer-node-protocol': 2,
},

@hlolli
Copy link
Contributor Author

hlolli commented Jan 31, 2025

@djwhitt interesting, I missed a bunch, I must have been testing this locally weirdly because I had lint errors with yarn lint:check but I fixed them all (or so I believed)

Please only submit bug reports when using the officially supported version.

if we don't have bug it's probably ok, I notice this often

@djwhitt
Copy link
Collaborator

djwhitt commented Jan 31, 2025

Please only submit bug reports when using the officially supported version.

if we don't have bug it's probably ok, I notice this often

Maybe we just bump the version on that as part of this. Perhaps it's included in the other dependency update PR as well. I didn't check yet.

@djwhitt
Copy link
Collaborator

djwhitt commented Jan 31, 2025

Also, probably worth mentioning I really just want to switch to Biome instead... 😅

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