mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ad652cf99c
commit
fb7a45a934
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user