File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
src/components/PluggableComponent Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,20 @@ module.exports = createConfig('eslint', {
66 settings : {
77 'import/resolver' : {
88 webpack : {
9- config : [
10- path . resolve ( __dirname , 'webpack.dev.config.js' ) ,
11- path . resolve ( __dirname , 'webpack.prod.config.js' ) ,
12- ] ,
9+ config : path . resolve ( __dirname , 'webpack.dev.config.js' ) ,
1310 } ,
1411 } ,
1512 } ,
1613 rules : {
1714 'react/function-component-definition' : 'off' ,
18- 'import/no-extraneous-dependencies' : [
19- 'error' , {
20- devDependencies : false ,
21- optionalDependencies : false ,
22- peerDependencies : false ,
23- packageDir : __dirname ,
24- } ,
25- ] ,
26-
15+ 'import/prefer-default-export' : 'off' ,
2716 } ,
17+ overrides : [
18+ {
19+ files : [ 'plugins/**/*.jsx' ] ,
20+ rules : {
21+ 'import/no-extraneous-dependencies' : 'off' ,
22+ } ,
23+ } ,
24+ ] ,
2825} ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ // eslint-disable-next-line import/no-extraneous-dependencies
23import { render , waitFor , screen } from '@testing-library/react' ;
34import PluggableComponent from '.' ;
45
You can’t perform that action at this time.
0 commit comments