File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Lombiq.NodeJs.Extensions/config/consumer Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11const { FlatCompat } = require ( '@eslint/eslintrc' ) ;
22const compat = new FlatCompat ( { baseDirectory : __dirname } ) ;
33
4- const eslintrc = compat . config ( {
4+ let eslintrc = compat . config ( {
55 // The following path may have to be adjusted to your directory structure.
66 extends : './src/Utilities/Lombiq.NodeJs.Extensions/Lombiq.NodeJs.Extensions/config/.eslintrc.lombiq-base.js' ,
77
@@ -10,4 +10,8 @@ const eslintrc = compat.config({
1010 } ,
1111} ) ;
1212
13+ if ( fs . existsSync ( './.eslintrc.js' ) ) {
14+ eslintrc = require ( './.eslintrc.js' ) ;
15+ }
16+
1317module . exports = [ ...eslintrc ] ;
Original file line number Diff line number Diff line change 11const { FlatCompat } = require ( '@eslint/eslintrc' ) ;
22const compat = new FlatCompat ( { baseDirectory : __dirname } ) ;
33
4- const eslintrc = compat . config ( {
4+ let eslintrc = compat . config ( {
55 // The following path may have to be adjusted to your directory structure.
66 extends : './node_modules/nodejs-extensions/config/.eslintrc.lombiq-base.js' ,
77
@@ -10,4 +10,8 @@ const eslintrc = compat.config({
1010 } ,
1111} ) ;
1212
13+ if ( fs . existsSync ( './.eslintrc.js' ) ) {
14+ eslintrc = require ( './.eslintrc.js' ) ;
15+ }
16+
1317module . exports = [ ...eslintrc ] ;
You can’t perform that action at this time.
0 commit comments