Skip to content

Commit

Permalink
feat: migrate to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Nov 26, 2024
1 parent d9aa666 commit c0b7a79
Show file tree
Hide file tree
Showing 22 changed files with 976 additions and 2,809 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

81 changes: 0 additions & 81 deletions .flowconfig

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.js

This file was deleted.

28 changes: 14 additions & 14 deletions __tests__/mock.test.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const mockClipboard = require('../jest/clipboard-mock');
const mockClipboard = require("../jest/clipboard-mock");

jest.mock('../dist/index.js', () => mockClipboard);
jest.mock("../dist/index.js", () => mockClipboard);

describe('mockClipboard', () => {
const {getString, useClipboard} = require('../dist/index.js');
describe("mockClipboard", () => {
const { getString, useClipboard } = require("../dist/index.js");

it('can get mock string', async () => {
const result = await getString();
const expected = 'mockString';
expect(result).toBe(expected);
});
it("can get mock string", async () => {
const result = await getString();
const expected = "mockString";
expect(result).toBe(expected);
});

it('can get useClipboardHook', async () => {
const [result] = useClipboard();
const expected = 'mockString';
expect(result).toBe(expected);
});
it("can get useClipboardHook", async () => {
const [result] = useClipboard();
const expected = "mockString";
expect(result).toBe(expected);
});
});
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": ["dist", "example/ios", "example/android"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
Loading

0 comments on commit c0b7a79

Please sign in to comment.