Skip to content

Commit 262eedd

Browse files
Cleanup, eslint and prettier
1 parent 4a13e3e commit 262eedd

25 files changed

Lines changed: 57 additions & 1108 deletions

.github/workflows/checks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ jobs:
2424

2525
- name: Run Typescript compiler
2626
run: yarn type-check
27+
28+
- name: Run Prettier
29+
run: yarn format
30+
31+
- name: Run Eslint
32+
run: yarn lint

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
echo "registry=https://registry.npmjs.org/" > .npmrc
2929
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
3030
31-
- run: npm publish --scope=@internxt --access public
31+
- run: npm publish --scope=@internxt --access public

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
unit-tests:
1212
strategy:
1313
matrix:
14-
os: ["ubuntu-latest", "windows-latest"]
14+
os: ['ubuntu-latest', 'windows-latest']
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- name: Set core.autocrlf to false

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# inxt-js
2+
23
API and CLI for the Internxt network
34

45
## Usage
6+
57
Soon
68

79
## How the project is structurared
10+
11+
```
812
/src
913
/cli
1014
/lib
1115
/models
1216
/core
13-
/services
17+
/services
18+
```

env.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
declare namespace NodeJS {
2-
interface ProcessEnv {
3-
BRIDGE_PASS: string;
4-
BRIDGE_USER: string;
5-
BRIDGE_URL: string | undefined;
6-
BUCKET_ID: string;
7-
MNEMONIC:string;
8-
}
9-
}
2+
interface ProcessEnv {
3+
BRIDGE_PASS: string;
4+
BRIDGE_USER: string;
5+
BRIDGE_URL: string | undefined;
6+
BUCKET_ID: string;
7+
MNEMONIC: string;
8+
}
9+
}

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export default [
88
{
99
rules: {
1010
'@typescript-eslint/no-explicit-any': 'warn',
11+
'@typescript-eslint/no-require-imports': 'off',
1112
'no-console': 'off',
13+
'no-undef': 'off',
1214
},
1315
},
1416
];

knip.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"entry": ["src/cli/*.ts"],
3-
"project": ["src/**/*.ts"],
4-
"ignoreDependencies": ["express", "@types/express"],
3+
"project": ["src/**/*.ts", "tests/**/*.ts"],
54
"rules": {
65
"enumMembers": "off"
76
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"scripts": {
1212
"clean": "rimraf dist build coverage",
1313
"build": "yarn clean && tsc -p tsconfig.build.json",
14-
"type-check": "tsc",
1514
"test": "vitest run --coverage",
1615
"test:watch": "vitest watch",
17-
"lint": "eslint ./src",
18-
"lint:fix": "yarn run lint --fix",
1916
"cli": "ts-node --files src/cli/index.ts",
20-
"format": "prettier --write src/**/*.{js,jsx,tsx,ts} tests/**/*.{js,jsx,tsx,ts}",
17+
"========== Code style ==========": "",
18+
"type-check": "tsc",
19+
"lint": "eslint src tests",
20+
"lint:fix": "yarn run lint --fix",
21+
"format": "prettier . --check",
22+
"format:fix": "prettier . --write",
2123
"find-deadcode": "knip",
2224
"prepare": "husky"
2325
},
@@ -27,13 +29,11 @@
2729
"@internxt/eslint-config-internxt": "^2.1.0",
2830
"@internxt/prettier-config": "^2.0.1",
2931
"@types/async": "=3.2.9",
30-
"@types/express": "^5.0.6",
3132
"@types/node": "^25.6.0",
3233
"@vitest/coverage-istanbul": "^4.1.5",
3334
"commander": "^14.0.3",
3435
"dotenv": "^17.4.2",
3536
"eslint": "^10.3.0",
36-
"express": "^5.2.1",
3737
"husky": "^9.1.7",
3838
"knip": "^6.13.1",
3939
"lint-staged": "^17.0.2",
@@ -44,7 +44,6 @@
4444
"vitest": "^4.1.5"
4545
},
4646
"dependencies": {
47-
"@internxt/lib": "1.4.2",
4847
"@internxt/sdk": "1.16.2",
4948
"async": "^3.2.6",
5049
"axios": "^1.16.0",

src/api/ExchangeReport.ts

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/api/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export * from './ActionState';
22
export * from './Abortable';
33
export * from './Bucket';
44
export * from './EnvironmentConfig';
5-
export * from './ExchangeReport';
65
export * from './FileObject';
76
export * from './fileinfo';
87
export * from './Shard';

0 commit comments

Comments
 (0)