File tree 4 files changed +24
-5
lines changed
4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,9 @@ Please refer to its documentation:
5
5
6
6
- [ Getting Started] ( https://facebook.github.io/create-react-app/docs/getting-started ) – How to create a new app.
7
7
- [ User Guide] ( https://facebook.github.io/create-react-app/ ) – How to develop apps bootstrapped with Create React App.
8
+
9
+ # Custom Modifications for Earthling Interactive
10
+
11
+ 1 . Support for Decorators without Typescript
12
+ 2 . Support for Class Properties
13
+ 3 . Support for .eslintrc
Original file line number Diff line number Diff line change 10
10
const babelJest = require ( 'babel-jest' ) ;
11
11
12
12
module . exports = babelJest . createTransformer ( {
13
+ // Earthling Interactive Modification - START
14
+ plugins : [
15
+ [ '@babel/plugin-proposal-decorators' , { legacy : true } ] ,
16
+ [ '@babel/plugin-proposal-class-properties' , { loose : true } ] ,
17
+ ] ,
18
+ // Earthling Interactive Modification - END
13
19
presets : [ require . resolve ( 'babel-preset-react-app' ) ] ,
14
20
babelrc : false ,
15
21
configFile : false ,
Original file line number Diff line number Diff line change @@ -270,8 +270,8 @@ module.exports = function(webpackEnv) {
270
270
: false ,
271
271
} ,
272
272
cssProcessorPluginOptions : {
273
- preset : [ 'default' , { minifyFontValues : { removeQuotes : false } } ]
274
- }
273
+ preset : [ 'default' , { minifyFontValues : { removeQuotes : false } } ] ,
274
+ } ,
275
275
} ) ,
276
276
] ,
277
277
// Automatically split vendor and commons
@@ -375,7 +375,9 @@ module.exports = function(webpackEnv) {
375
375
} ;
376
376
}
377
377
} ) ( ) ,
378
- useEslintrc : false ,
378
+ // Earthling Interactive Modification - START
379
+ useEslintrc : true ,
380
+ // Earthling Interactive Modification - END
379
381
// @remove -on-eject-end
380
382
} ,
381
383
loader : require . resolve ( 'eslint-loader' ) ,
@@ -431,6 +433,10 @@ module.exports = function(webpackEnv) {
431
433
) ,
432
434
// @remove -on-eject-end
433
435
plugins : [
436
+ // Earthling Interactive Modification - START
437
+ [ '@babel/plugin-proposal-decorators' , { legacy : true } ] ,
438
+ [ '@babel/plugin-proposal-class-properties' , { loose : true } ] ,
439
+ // Earthling Interactive Modification - END
434
440
[
435
441
require . resolve ( 'babel-plugin-named-asset-import' ) ,
436
442
{
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " earthling-interactive- react-scripts" ,
3
- "version" : " 0.0.2 " ,
2
+ "name" : " @ earthling-interactive/ react-scripts" ,
3
+ "version" : " 0.0.4 " ,
4
4
"description" : " Configuration and scripts for Create React App customized for Earthling Interactive." ,
5
5
"license" : " MIT" ,
6
6
"engines" : {
21
21
"types" : " ./lib/react-app.d.ts" ,
22
22
"dependencies" : {
23
23
"@babel/core" : " 7.7.5" ,
24
+ "@babel/plugin-proposal-class-properties" : " 7.7.4" ,
24
25
"@babel/plugin-proposal-decorators" : " 7.7.4" ,
25
26
"@svgr/webpack" : " 4.3.3" ,
26
27
"@typescript-eslint/eslint-plugin" : " ^2.10.0" ,
You can’t perform that action at this time.
0 commit comments