Skip to content

Commit

Permalink
fix eslint exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 22, 2024
1 parent d49bf40 commit c0ce5a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
limitations under the License.
-%>
<&_ if (fragment.importsSection) { -&>
import jhipster from 'generator-jhipster/eslint/recommended';
import jhipster from 'generator-jhipster/eslint';
<&_ } -&>
<&_ if (fragment.configSection) { -&>
jhipster,
{ ignores: ['coverage/**'] },
jhipster.recommended,
<&_ } -&>
4 changes: 1 addition & 3 deletions lib/eslint/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import recommended from './recommended.js';
import base from './base.js';

recommended.recommended = recommended;

export default { ...recommended, recommended, base };
export default { recommended, base };
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
},
"./package.json": "./package.json",
"./eslint/recommended": {
"types": "./dist/lib/eslint/recommended.d.ts",
"default": "./dist/lib/eslint/recommended.js"
},
"./eslint": {
"types": "./dist/lib/eslint/index.d.ts",
"default": "./dist/lib/eslint/index.js"
},
Expand Down

0 comments on commit c0ce5a2

Please sign in to comment.