Skip to content

Commit cac433b

Browse files
committed
Update biome config
1 parent b276845 commit cac433b

File tree

14 files changed

+32
-14
lines changed

14 files changed

+32
-14
lines changed

.changeset/wild-ears-mate.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@plexinc/react-native-lightning-example": patch
3+
"@plexinc/react-native-lightning": patch
4+
"@plexinc/react-lightning-example": patch
5+
"@plexinc/react-lightning-plugin-devtools": patch
6+
"@plexinc/react-lightning-storybook": patch
7+
---
8+
9+
Update biome config

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"editor.defaultFormatter": "biomejs.biome",
33
"editor.codeActionsOnSave": {
44
"quickfix.biome": "explicit",
5-
"source.organizeImports.biome": "explicit"
5+
"source.organizeImports.biome": "explicit",
6+
"source.fixAll.biome": "explicit"
67
},
78
"typescript.tsdk": "node_modules/typescript/lib",
89
"cSpell.words": ["lightningjs", "threadx"],

apps/react-lightning-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@plexinc/react-lightning-example",
3-
"description": "Sample implementation of @plex/react-native-lightning in a React Native app",
3+
"description": "Sample implementation of @plexinc/react-lightning in a React app",
44
"version": "0.1.3",
55
"author": "Plex Inc.",
66
"license": "MIT",

apps/react-native-lightning-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@plexinc/react-native-lightning-example",
3-
"description": "Sample implementation of @plex/react-native-lightning in a React Native app",
3+
"description": "Sample implementation of @plexinc/react-native-lightning in a React Native app",
44
"version": "0.1.3",
55
"author": "Plex Inc.",
66
"license": "MIT",

apps/react-native-lightning-example/src/pages/AnimationTest.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback } from 'react';
1+
import { useCallback } from 'react';
22
import { Button, StyleSheet, View } from 'react-native';
33
import Animated, {
44
useAnimatedStyle,

apps/react-native-lightning-example/src/pages/FlashListTest.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { FocusGroup } from '@plexinc/react-lightning';
21
import { Column } from '@plexinc/react-lightning-components';
2+
import { FocusGroup } from '@plexinc/react-native-lightning';
33
import { FlashList } from '@shopify/flash-list';
44
import { Text } from 'react-native';
55

apps/storybook/.storybook/preview.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Preview } from '@storybook/react';
2-
import React from 'react';
32
import { StorybookDecorator } from '../src/components/StorybookDecorator';
43
import theme from './theme';
54

biome.json

+12
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
"files": {
44
"ignore": ["package.json", ".vscode", "public"]
55
},
6+
"organizeImports": {
7+
"enabled": true
8+
},
69
"linter": {
710
"enabled": true,
811
"rules": {
12+
"recommended": true,
13+
"correctness": {
14+
"noUnusedImports": "error"
15+
},
916
"a11y": {
1017
"useKeyWithMouseEvents": "off",
1118
"useKeyWithClickEvents": "off",
@@ -14,16 +21,21 @@
1421
}
1522
},
1623
"formatter": {
24+
"enabled": true,
1725
"indentStyle": "space"
1826
},
1927
"javascript": {
28+
"linter": {
29+
"enabled": true
30+
},
2031
"formatter": {
2132
"quoteStyle": "single"
2233
}
2334
},
2435
"vcs": {
2536
"enabled": true,
2637
"clientKind": "git",
38+
"defaultBranch": "main",
2739
"useIgnoreFile": true
2840
}
2941
}

packages/plugin-devtools/src/panels/lightning/LightningTree.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { useCallback, useContext, useRef } from 'react';
2-
import { type NodeApi, Tree, TreeApi } from 'react-arborist';
1+
import { useCallback, useContext } from 'react';
2+
import { type NodeApi, Tree } from 'react-arborist';
33
import useResizeObserver from 'use-resize-observer';
44
import { sendMessage } from 'webext-bridge/devtools';
5-
import { useExtensionMessaging } from '../../communication/useExtensionMessaging';
65
import { SelectedPreviewContext } from '../../preview/SelectedPreviewProvider';
76
import useRefStoreContext from '../../store/useRefStoreContext';
87
import type { ElementTreeNode } from '../../tree/BidirectionalDataTree';

packages/plugin-devtools/src/preview/ElementPreview.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type FC, useCallback, useMemo, useState } from 'react';
22
import { useExtensionMessaging } from '../communication/useExtensionMessaging';
33
import { PanelWithToolbar } from '../components/PanelWithToolbar';
4-
import { useTheme } from '../hooks/useTheme';
54
import { Fps } from './Fps';
65

76
export const ElementPreview: FC = () => {

packages/plugin-devtools/src/tree/TreeNode.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
type CSSProperties,
3-
Children,
43
type FC,
54
type ReactNode,
65
useCallback,

packages/react-native-lightning/src/exports/TouchableHighlight.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LightningElement } from '@plexinc/react-lightning';
22
import { useCombinedRef, useFocus } from '@plexinc/react-lightning';
3-
import React, { forwardRef } from 'react';
3+
import { forwardRef } from 'react';
44
import type { TouchableHighlightProps } from 'react-native';
55
import { Pressable } from './Pressable';
66

packages/react-native-lightning/src/exports/TouchableOpacity.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LightningElement } from '@plexinc/react-lightning';
22
import { useCombinedRef, useFocus } from '@plexinc/react-lightning';
3-
import React, { forwardRef } from 'react';
3+
import { forwardRef } from 'react';
44
import type { TouchableOpacityProps } from 'react-native';
55
import { Pressable } from './Pressable';
66

packages/react-native-lightning/src/exports/TouchableWithoutFeedback.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
useCombinedRef,
44
useFocus,
55
} from '@plexinc/react-lightning';
6-
import React, { forwardRef } from 'react';
6+
import { forwardRef } from 'react';
77
import type { TouchableWithoutFeedbackProps } from 'react-native';
88
import { Pressable } from './Pressable';
99

0 commit comments

Comments
 (0)