Skip to content

Commit 116483b

Browse files
committed
Update eslint-plugin-import to 2.27.5 + Split parent/sibling groups
Version 2.27.0 changes the sort order and requires sibling imports to come before parent imports when in the same group, so we split the group and insert extra newlines.
1 parent 3281177 commit 116483b

File tree

14 files changed

+337
-5
lines changed

14 files changed

+337
-5
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ module.exports = {
4747
groups: [
4848
['builtin', 'external'],
4949
['internal'],
50-
['parent', 'sibling', 'index'],
50+
['parent'],
51+
['sibling', 'index'],
5152
['object', 'type'],
5253
['unknown'],
5354
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@typescript-eslint/parser": "^5.43.0",
5959
"eslint": "^8.27.0",
6060
"eslint-config-prettier": "^8.5.0",
61-
"eslint-plugin-import": "^2.26.0",
61+
"eslint-plugin-import": "^2.27.5",
6262
"eslint-plugin-jest": "27.1.5",
6363
"eslint-plugin-react": "^7.31.10",
6464
"eslint-plugin-react-hooks": "^4.6.0",

packages/react-hook-tracer/src/components/TraceLog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useReducer } from 'react'
33
import { tracer } from '../Tracer'
44
import { AssertNever, LogEntry } from '../types'
55
import * as util from '../util'
6+
67
import {
78
Delay,
89
DelaySelector,

packages/react-hook-tracer/src/hooks/useContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React, { Context } from 'react'
33
import { tracer } from '../Tracer'
44
import * as componentRegistry from '../componentRegistry'
55
import * as util from '../util'
6+
67
import * as hookUtil from './hookUtil'
78

89
export interface UseContextTraceOptions<T> {

packages/react-hook-tracer/src/hooks/useEffect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react'
33
import { tracer } from '../Tracer'
44
import * as componentRegistry from '../componentRegistry'
55
import * as util from '../util'
6+
67
import * as hookUtil from './hookUtil'
78

89
export interface UseEffectTraceOptions {

packages/react-hook-tracer/src/hooks/useInsertionEffect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react'
33
import { tracer } from '../Tracer'
44
import * as componentRegistry from '../componentRegistry'
55
import * as util from '../util'
6+
67
import * as hookUtil from './hookUtil'
78

89
export interface UseInsertionEffectTraceOptions {

packages/react-hook-tracer/src/hooks/useLayoutEffect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react'
33
import { tracer } from '../Tracer'
44
import * as componentRegistry from '../componentRegistry'
55
import * as util from '../util'
6+
67
import * as hookUtil from './hookUtil'
78

89
export interface UseLayoutEffectTraceOptions {

packages/react-hook-tracer/src/hooks/useReducer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import React, {
1212
import { tracer } from '../Tracer'
1313
import * as componentRegistry from '../componentRegistry'
1414
import * as util from '../util'
15+
1516
import * as hookUtil from './hookUtil'
1617

1718
export interface UseReducerTraceOptions<S, A> {

packages/react-hook-tracer/src/hooks/useRef.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { act, render, screen } from '@testing-library/react'
22

33
import { TraceLog } from '../components/TraceLog'
44
import { getLogEntries, getPanelTraceOrigins, setupUser } from '../test/util'
5+
56
import { useRef } from './useRef'
67
import { useTracer } from './useTracer'
78

packages/react-hook-tracer/src/hooks/useRef.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { tracer } from '../Tracer'
44
import * as componentRegistry from '../componentRegistry'
55
import { getCurrentComponentInfo } from '../componentRegistry'
66
import * as util from '../util'
7+
78
import * as hookUtil from './hookUtil'
89

910
export interface UseRefTraceOptions<T> {

0 commit comments

Comments
 (0)