Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix eslint exports #27359

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading