Skip to content

Commit 62f04fb

Browse files
rolandszokesolkimicreb
authored andcommitted
refactor(platform): remove react-dom platform
1 parent 076b9f5 commit 62f04fb

File tree

10 files changed

+40
-410
lines changed

10 files changed

+40
-410
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"import/no-mutable-exports": "off",
1010
"no-nested-ternary": "off",
1111
"no-param-reassign": "off",
12-
"func-names": "off"
12+
"func-names": "off",
13+
"max-classes-per-file": "off"
1314
},
1415
"globals": {
1516
"window": true,

__mocks__/react-dom.js

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

__mocks__/react-easy-state.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const path = require('path')
1+
const path = require('path');
22

3-
const bundleName = process.env.BUNDLE
3+
const bundleName = process.env.BUNDLE;
44
const bundlePath = path.resolve(
5-
bundleName ? `dist/${bundleName}` : 'src/index.js'
6-
)
5+
bundleName ? `dist/${bundleName}` : 'src/index.js',
6+
);
77

8-
module.exports = require(bundlePath)
8+
// eslint-disable-next-line import/no-dynamic-require
9+
module.exports = require(bundlePath);

__mocks__/react-platform.js

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

__mocks__/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// this is here to avoid duplicate react entries in the examples
22
// (one from the example's node_modules and one from the root's node_modules)
3-
module.exports = require('react')
3+
module.exports = require('react');

0 commit comments

Comments
 (0)