sort-imports: ESLint Suppression Comments (#51881)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51881

Switches the suppression of ESLint for the generated `sort-imports` lint rule definition to using in-file comments instead of `.eslintignore`.

This makes the suppression more portable. If the path to the lint rule definition changes, we don't have to remember to update `.eslintignore`.

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D76152973

fbshipit-source-id: 7cc41282931788c9e347712e7ce8bf7fefb53858
This commit is contained in:
Tim Yung
2025-06-09 20:30:32 -07:00
committed by Facebook GitHub Bot
parent ad652cf99c
commit fb7a45a934
3 changed files with 5 additions and 2 deletions
-1
View File
@@ -13,7 +13,6 @@ packages/*/dist
packages/*/types_generated
packages/debugger-frontend/dist/**/*
packages/react-native-codegen/lib
tools/eslint/rules/sort-imports.js
**/Pods/*
**/*.macos.js
**/*.windows.js
+1
View File
@@ -28,6 +28,7 @@ module.exports = {
files: ['*.js', '*.js.flow', '*.jsx'],
parser: 'hermes-eslint',
rules: {
'eslint-comments/no-unlimited-disable': 0,
'ft-flow/require-valid-file-annotation': [2, 'always'],
'no-extra-boolean-cast': 0,
'no-void': 0,
File diff suppressed because one or more lines are too long