@@ -20,6 +20,27 @@ module.exports = {
2020 extends : `${ coreLocation } /packages/volto/.eslintrc` ,
2121 rules : {
2222 'import/no-unresolved' : 1 ,
23+ 'import/named' : 'error' ,
24+ 'react/jsx-filename-extension' : [ 1 , { extensions : [ '.tsx' , '.jsx' ] } ] ,
25+ 'no-restricted-imports' : [
26+ 'error' ,
27+ {
28+ name : '@plone/volto/components' ,
29+ message :
30+ 'Importing from barrel files is not allowed. Please use direct imports of the modules instead.' ,
31+ } ,
32+ {
33+ name : '@plone/volto/helpers' ,
34+ message :
35+ 'Importing from barrel files is not allowed. Please use direct imports of the modules instead.' ,
36+ } ,
37+ {
38+ name : '@plone/volto/actions' ,
39+ message :
40+ 'Importing from barrel files is not allowed. Please use direct imports of the modules instead.' ,
41+ } ,
42+ ] ,
43+ 'react/jsx-key' : [ 2 , { checkFragmentShorthand : true } ] ,
2344 } ,
2445 settings : {
2546 'import/resolver' : {
@@ -28,7 +49,14 @@ module.exports = {
2849 [ '@plone/volto' , `${ coreLocation } /packages/volto/src` ] ,
2950 [ '@plone/volto-slate' , `${ coreLocation } /packages/volto-slate/src` ] ,
3051 [ '@plone/registry' , `${ coreLocation } /packages/registry/src` ] ,
31- [ '@kitconcept/volto-logos-block' , './packages/volto-logos-block/src' ] ,
52+ [
53+ '@kitconcept/volto-light-theme' ,
54+ `${ projectRootPath } /../volto-light-theme/frontend/packages/volto-light-theme/src` ,
55+ ] ,
56+ [
57+ '@kitconcept/volto-logos-block' ,
58+ `${ projectRootPath } /packages/volto-logos-block/src` ,
59+ ] ,
3260 ...addonAliases ,
3361 ] ,
3462 extensions : [ '.js' , '.jsx' , '.ts' , '.tsx' , '.json' ] ,
0 commit comments