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

feat(eslint-plugin): renamed exported recommended #2354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpanot
Copy link
Contributor

@kpanot kpanot commented Oct 28, 2024

fix(eslint-plugin): turn yaml parser really optional
deprecate(eslint-plugin): recommended exports based on types

Proposed change

feat(eslint-plugin): renamed exported recommended
fix(eslint-plugin): turn yaml parser really optional
deprecate(eslint-plugin): recommended exports based on types

Related issues

@kpanot kpanot requested a review from a team as a code owner October 28, 2024 07:39
Copy link
Contributor

@matthieu-crouzet matthieu-crouzet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we do the same ng-update for the @o3r/eslint-config-otter
as the ng-add of @o3r/eslint-plugin does nothing but @o3r/eslint-config-otter does the setup
and in @o3r/eslint-config-otter we should migrate to the not deprecated configs

Moreover do we really need this fix right now as we are working on the ESLint flat config ? or could it be done directly inside the branch for this migration to flat config ?

@kpanot kpanot force-pushed the feature/eslint-plugin-enhance branch from f475e20 to ff81804 Compare October 28, 2024 10:45
@kpanot
Copy link
Contributor Author

kpanot commented Oct 28, 2024

Shouldn't we do the same ng-update for the @o3r/eslint-config-otter as the ng-add of @o3r/eslint-plugin does nothing but @o3r/eslint-config-otter does the setup and in @o3r/eslint-config-otter we should migrate to the not deprecated configs

Indeed, due to technically limitation (fake recursive ref to @o3r/schematics detected by Nx), it is simpler to do it in @o3r/eslint-config-otter.

Moreover do we really need this fix right now as we are working on the ESLint flat config ? or could it be done directly inside the branch for this migration to flat config ?

Nothing requires to have the flat config to fix the exposed recommended.
I think, in contrary, that this should not be done on the already huge linter feature branch

@kpanot kpanot force-pushed the feature/eslint-plugin-enhance branch from ff81804 to b16c2d2 Compare October 28, 2024 14:36
@kpanot kpanot force-pushed the feature/eslint-plugin-enhance branch from 0f0c36a to 840dd69 Compare October 29, 2024 08:30
'json-recommended': {
rules: {
'@o3r/json-dependency-versions-harmonize': 'error'
}
},

'angular-template-recommended': {
rules: {
'@o3r/no-inner-html': 'off',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

off is the recommended value for this rule?

Copy link
Contributor Author

@kpanot kpanot Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the current value.
It can be changed, in the big eslint refactor if we want

@kpanot kpanot force-pushed the feature/eslint-plugin-enhance branch from 840dd69 to e8cf18b Compare October 30, 2024 00:48
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.87%. Comparing base (4497355) to head (28087e4).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...s/ng-update/v11.5/update-configs/update-configs.ts 94.11% 1 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@kpanot kpanot force-pushed the feature/eslint-plugin-enhance branch from 5100e62 to 28087e4 Compare November 21, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants