Skip to content

Commit e0461ca

Browse files
committed
chore: update tool-chain deps
1 parent 52e570b commit e0461ca

File tree

5 files changed

+10406
-5435
lines changed

5 files changed

+10406
-5435
lines changed

.eslintrc

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"extends": ["@opd/eslint-config"],
3-
"rules": {
4-
"react/react-in-jsx-scope": "off"
5-
}
2+
"extends": ["@pixas/eslint-config"],
63
}

babel.config.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
module.exports = {
2-
presets: [
3-
'@opd/babel-preset-component',
4-
require.resolve('@babel/preset-typescript'),
5-
[
6-
require.resolve('@babel/preset-react'),
7-
{
8-
runtime: 'automatic',
9-
},
10-
],
11-
],
2+
presets: ['@pixas/babel-preset-lib'],
123
}

jest.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://jestjs.io/docs/configuration
44
*/
55

6-
import type { Config } from 'jest'
6+
import type { Config } from 'jest';
77

88
const config: Config = {
99
// All imported modules in your tests should be mocked automatically
@@ -161,7 +161,7 @@ const config: Config = {
161161

162162
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
163163

164-
transformIgnorePatterns: ['/node_modules/!d3-*', '/src/.umi/'],
164+
transformIgnorePatterns: ['/node_modules/!d3-*', '/src/.umi/', '/node_modules/core-js'],
165165

166166
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
167167
// unmockedModulePathPatterns: undefined,
@@ -177,6 +177,6 @@ const config: Config = {
177177
globals: {
178178
IS_REACT_ACT_ENVIRONMENT: true,
179179
},
180-
}
180+
};
181181

182-
export default config
182+
export default config;

0 commit comments

Comments
 (0)