Skip to content

Commit 07af1f4

Browse files
committed
feat: shareable oxlint config
1 parent deda60f commit 07af1f4

File tree

61 files changed

+687
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+687
-78
lines changed

.changeset/beige-rats-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rnx-kit/oxlint-config": major
3+
---
4+
5+
Shareable oxlint configurations

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ catalog:
7575
eslint: ^9.0.0
7676
jest: ^29.2.1
7777
oxfmt: ^0.35.0
78+
oxlint: ^1.50.0
7879
typescript: ^5.0.0

incubator/@react-native-webapis/battery-status/src/NativeBatteryStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type BatteryStatus = {
99
level: number;
1010
};
1111

12-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
12+
// oxlint-disable-next-line typescript/consistent-type-definitions
1313
export interface Spec extends TurboModule {
1414
getStatus(): Promise<BatteryStatus>;
1515
}

incubator/@react-native-webapis/web-storage/src/NativeWebStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { TurboModule } from "react-native";
22
import { TurboModuleRegistry } from "react-native";
33

44
// https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
5-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5+
// oxlint-disable-next-line typescript/consistent-type-definitions
66
export interface Spec extends TurboModule {
77
length: () => number;
88
key(index: number): string | null;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import config from "@rnx-kit/eslint-config";
22

3-
// eslint-disable-next-line no-restricted-exports
3+
// oxlint-disable-next-line no-default-export
44
export default config;

incubator/build/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import config from "@rnx-kit/eslint-config";
22

3-
// eslint-disable-next-line no-restricted-exports
3+
// oxlint-disable-next-line no-default-export
44
export default config;

incubator/fork-sync/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import config from "@rnx-kit/eslint-config";
22

3-
// eslint-disable-next-line no-restricted-exports
3+
// oxlint-disable-next-line no-default-export
44
export default [
55
...config,
66
{

incubator/fork-sync/test/proc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212

1313
/** Strip ANSI escape codes from string (colors, etc.) */
1414
function stripAnsi(str: string): string {
15-
// eslint-disable-next-line no-control-regex
15+
// oxlint-disable-next-line no-control-regex
1616
return str.replace(/\x1B\[[0-9;]*m/g, "");
1717
}
1818

incubator/fork-sync/test/tty-ui.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { ProgressLine, ProgressState } from "../src/modules/tty-ui.ts";
1313
import * as ui from "../src/modules/tty-ui.ts";
1414

1515
// Helper to strip ANSI escape codes for test assertions
16-
// eslint-disable-next-line no-control-regex
16+
// oxlint-disable-next-line no-control-regex
1717
const stripAnsi = (s: string) => s.replace(/\x1b\[[0-9;]*m/g, "");
1818

1919
// =============================================================================
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import config from "@rnx-kit/eslint-config";
2-
// eslint-disable-next-line no-restricted-exports
2+
// oxlint-disable-next-line no-default-export
33
export default config;

0 commit comments

Comments
 (0)