Skip to content

Commit 90fbd31

Browse files
committed
refactor: fix eslint problems in project files
1 parent 1bc80a5 commit 90fbd31

11 files changed

Lines changed: 28 additions & 27 deletions

File tree

apps/RNApp/metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
const path = require('node:path');
12
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
2-
const path = require('path');
33

44
const root = path.resolve(__dirname, '..', '..');
55

apps/RNApp/react-native.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const path = require('path');
1+
const path = require('node:path');
22
const pkg = require('../../packages/react-native-brownfield/package.json');
33

44
module.exports = {

packages/cli/src/brownfield/commands/packageAndroid.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { packageAarAction } from '@rock-js/plugin-brownfield-android';
1+
import { Command } from 'commander';
2+
23
import {
3-
packageAarOptions,
44
type PackageAarFlags,
5+
packageAarOptions,
56
} from '@rock-js/platform-android';
7+
import { packageAarAction } from '@rock-js/plugin-brownfield-android';
68

7-
import { Command } from 'commander';
8-
9-
import { getProjectInfo } from '../utils/index.js';
109
import {
10+
ExampleUsage,
1111
actionRunner,
1212
curryOptions,
13-
ExampleUsage,
1413
} from '../../shared/index.js';
14+
import { getProjectInfo } from '../utils/index.js';
1515

1616
export const packageAndroidCommand = curryOptions(
1717
new Command('package:android').description('Build Android AAR'),

packages/cli/src/brownie/__tests__/commands/codegen.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import fs from 'fs';
2-
import path from 'path';
3-
import { fileURLToPath } from 'url';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
3+
import { fileURLToPath } from 'node:url';
44
import { describe, it, expect, beforeEach, afterEach, vi, Mock } from 'vitest';
5+
import * as rockTools from '@rock-js/tools';
56
import { runCodegen } from '../../commands/codegen.js';
67
import * as swiftGenerator from '../../generators/swift.js';
78
import * as kotlinGenerator from '../../generators/kotlin.js';
89
import * as storeDiscovery from '../../store-discovery.js';
9-
import * as rockTools from '@rock-js/tools';
1010

1111
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1212
const FIXTURES_DIR = path.join(__dirname, '../../__fixtures__');

packages/cli/src/brownie/__tests__/config.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { fileURLToPath } from 'node:url';
12
import fs from 'node:fs';
23
import path from 'node:path';
3-
import { fileURLToPath } from 'node:url';
4-
import { describe, it, expect, afterEach, vi } from 'vitest';
4+
5+
import { afterEach, describe, expect, it, vi } from 'vitest';
56

67
import { loadConfig } from '../config.js';
78

packages/cli/src/brownie/__tests__/store-discovery.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import fs from 'fs';
2-
import path from 'path';
3-
import { fileURLToPath } from 'url';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
3+
import { fileURLToPath } from 'node:url';
44
import { describe, it, expect, afterEach } from 'vitest';
55
import { discoverStores } from '../store-discovery.js';
66

packages/cli/src/brownie/commands/codegen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { styleText } from 'node:util';
33

44
import { Command, Option } from 'commander';
55

6+
import { intro, logger, outro } from '@rock-js/tools';
7+
import { QuickTypeError } from 'quicktype-core';
68
import { actionRunner } from '../../shared/index.js';
79
import { loadConfig, type BrownieConfig } from '../config.js';
810
import { generateSwift } from '../generators/swift.js';
911
import { generateKotlin } from '../generators/kotlin.js';
1012
import { discoverStores, type DiscoveredStore } from '../store-discovery.js';
1113
import { Platform } from '../types.js';
12-
import { intro, logger, outro } from '@rock-js/tools';
13-
import { QuickTypeError } from 'quicktype-core';
1414

1515
function getOutputPath(dir: string, name: string, ext: string): string {
1616
return path.join(dir, `${name}.${ext}`);

packages/cli/src/brownie/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
33

44
export interface BrownieConfig {
55
swift?: string;

packages/cli/src/brownie/generators/kotlin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
33
import {
44
quicktype,
55
InputData,

packages/cli/src/brownie/generators/swift.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
33
import {
44
quicktype,
55
InputData,

0 commit comments

Comments
 (0)