File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ module.exports = {
163
163
rules : {
164
164
'import/no-unresolved' : 0 ,
165
165
strict : 0 ,
166
+ 'import/no-extraneous-dependencies' : 0 ,
167
+ 'import/extensions' : 0 ,
168
+ 'no-prototype-builtins' : 0 ,
169
+ 'react/forbid-prop-types' : 0 ,
166
170
} ,
167
171
} ,
168
172
ignore : false ,
Original file line number Diff line number Diff line change @@ -133,13 +133,37 @@ module.exports = {
133
133
options : {
134
134
formatter : eslintFormatter ,
135
135
// @remove -on-eject-begin
136
- // TODO: consider separate config for production,
137
- // e.g. to enable no-console and no-debugger only in production.
138
136
baseConfig : {
139
- extends : [ require . resolve ( 'eslint-config-airbnb' ) ] ,
137
+ parser : require . resolve ( 'babel-eslint' ) ,
138
+ extends : [
139
+ require . resolve ( 'eslint-config-airbnb' ) ,
140
+ require . resolve ( 'eslint-config-prettier' ) ,
141
+ require . resolve ( 'eslint-config-prettier/flowtype' ) ,
142
+ require . resolve ( 'eslint-config-prettier/react' ) ,
143
+ ] ,
144
+ env : {
145
+ browser : true ,
146
+ commonjs : true ,
147
+ es6 : true ,
148
+ jest : true ,
149
+ node : true ,
150
+ } ,
151
+ parserOptions : {
152
+ ecmaVersion : 6 ,
153
+ sourceType : 'module' ,
154
+ ecmaFeatures : {
155
+ jsx : true ,
156
+ generators : true ,
157
+ experimentalObjectRestSpread : true ,
158
+ } ,
159
+ } ,
140
160
rules : {
141
161
'import/no-unresolved' : 0 ,
142
162
strict : 0 ,
163
+ 'import/no-extraneous-dependencies' : 0 ,
164
+ 'import/extensions' : 0 ,
165
+ 'no-prototype-builtins' : 0 ,
166
+ 'react/forbid-prop-types' : 0 ,
143
167
} ,
144
168
} ,
145
169
ignore : false ,
You can’t perform that action at this time.
0 commit comments