Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .eslintrc

This file was deleted.

19 changes: 0 additions & 19 deletions .prettierrc

This file was deleted.

8 changes: 4 additions & 4 deletions __tests__/react-pure-modal-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Modal from '../dist/react-pure-modal.min.js';
import renderer, { act } from 'react-test-renderer';
import Modal from '../dist/react-pure-modal.min.js';

const mockMath = Object.create(global.Math);
mockMath.random = () => 0.5;
Expand Down Expand Up @@ -34,7 +34,7 @@ it('Should show content', () => {
component = renderer.create(
<Modal isOpen>
<span>Some content of modal</span>
</Modal>
</Modal>,
);
});
expect(component.toJSON()).toMatchSnapshot();
Expand All @@ -49,7 +49,7 @@ it('Should show only content', () => {
component = renderer.create(
<Modal replace isOpen>
<span>Some content of modal</span>
</Modal>
</Modal>,
);
});
expect(component.toJSON()).toMatchSnapshot();
Expand All @@ -64,7 +64,7 @@ it('Should contain width attribute', () => {
component = renderer.create(
<Modal replace width="400px" isOpen>
<span>Some content of modal</span>
</Modal>
</Modal>,
);
});
expect(component.toJSON()).toMatchSnapshot();
Expand Down
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/2.0.6/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false },
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100,
"bracketSameLine": false,
"bracketSpacing": true
},
"linter": {
"enabled": true,
"rules": { "recommended": true }
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"trailingCommas": "all"
},
"globals": ["it", "expect"]
},
"overrides": [{ "includes": ["*.ts", "*.tsx", "*.js"] }],
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
Loading