Skip to content

Commit 23532ee

Browse files
committed
chore: update linting and api
1 parent 6449bbb commit 23532ee

File tree

16 files changed

+2246
-2586
lines changed

16 files changed

+2246
-2586
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ concurrency:
2020
env:
2121
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
DEVME_SDK_API_KEY: ${{ secrets.DEVME_SDK_API_KEY }}
2324
CI: true
2425

2526
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616
env:
1717
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
DEVME_SDK_API_KEY: ${{ secrets.DEVME_SDK_API_KEY }}
1920
CI: true
2021

2122
jobs:

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
node_modules/.bin/pretty-quick
2-
node_modules/.bin/lint-staged
1+
npx biome check --write --staged

.prettierignore

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

.prettierrc

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

.yarnrc

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

__tests__/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Configuration, CurrencyApi, EmailApi, IPApi, PhoneApi } from '../src';
22

3-
const config = new Configuration({ apiKey: 'demo-key' });
3+
const config = new Configuration({ apiKey: process.env.DEVME_SDK_API_KEY || 'demo-key' });
44
export const currencyApi = new CurrencyApi(config);
55
export const ipApi = new IPApi(config);
66
export const emailApi = new EmailApi(config);

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@
7373
],
7474
"scripts": {
7575
"build": "rm -rf dist && tsc -p .",
76-
"lint": "eslint src __tests__",
77-
"lint-fix": "yarn lint -- --fix",
76+
"lint": "biome check .",
77+
"lint:fix": "biome check --write .",
78+
"format": "biome format --write .",
79+
"format:check": "biome format .",
7880
"prepare": "husky",
79-
"prettier": "prettier --write \"src/**/*.{ts,json}\" \"__tests__/**/*.{ts,json}\"",
8081
"test": "jest",
8182
"test-ci": "jest --ci",
8283
"test:watch": "jest --watch",
@@ -85,21 +86,15 @@
8586
"release": "semantic-release",
8687
"release:dry": "semantic-release --dry-run"
8788
},
88-
"lint-staged": {
89-
"src/**/*.{ts,json}": "prettier --write",
90-
"__tests__/**/*.{ts,json}": "prettier --write"
91-
},
9289
"dependencies": {
9390
"axios": "1.11.0"
9491
},
9592
"devDependencies": {
93+
"@biomejs/biome": "^2.2.3",
9694
"@types/jest": "^30.0.0",
9795
"husky": "9.1.7",
9896
"jest": "^30.1.3",
99-
"lint-staged": "16.1.6",
10097
"ms": "^2.1.3",
101-
"prettier": "3.6.2",
102-
"pretty-quick": "4.2.2",
10398
"ts-jest": "^29.4.1",
10499
"ts-node": "10.9.2",
105100
"typescript": "5.9.2"

0 commit comments

Comments
 (0)