-
Notifications
You must be signed in to change notification settings - Fork 699
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
Linting updates #9698
Linting updates #9698
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall code looks good. I didn't manually test it - but if tests pass I suspect it should be all set.
packages/eslint-plugin-kolibri/lib/rules/vue-component-block-padding.js
Outdated
Show resolved
Hide resolved
f1b438c
to
87ec509
Compare
Thank you, @rtibbles. Overall, it's looking good to me. The new lint file is much simpler than it used to be, I appreciate it (and your patience, this task looks like no small undertaking).
Sounds good. There are already lots of useful updates in this PR, so whatever works for you. Also, I'm not sure if this helps, but noticed that the issue that motivated
|
I didn't get to read through the new rules but can see they all have test files so feeling confident |
They closed it about a day or two after I last looked at it! Great, I'll update accordingly! |
I looked - I think it might take quite a bit more work to do this migration to their new flat configuration, so I think I'll leave this for now, and open a follow up issue, once this is merged. |
d9ff1c8
to
06c9ada
Compare
06c9ada
to
fa47e2d
Compare
fa47e2d
to
f5468b2
Compare
f5468b2
to
19dc207
Compare
19dc207
to
6e9aa87
Compare
Have fixed what seemed to be the underlying causes of the comment and switch case indentations. I think this is mostly ready to go, but I'd like to hold off on a final merge with one last rebase after the 0.16 into develop merge PR is merged (we may need to do two of these, as there is one open issue for 0.16.2 that might need a frontend tweak). |
Filed a follow up issue for eslint/vue updates here: #12199 |
8fd97ed
to
5d9d6e5
Compare
let's go ahead with this this week as we are planning to move to our new branches approach, I'll approve once the merge conflicts are resolved |
Mark as nohoist to prevent entities dependency collisions.
…prettier in jest test.
5d9d6e5
to
689363c
Compare
Summary
id
uniqueimg
src
attribute is not emptykebab-case
compatibleclass
nameslint
function inlint.js
by always runningprettier
on all files, runningeslint
onjs
andvue
files, and then stylelint on style files and vue components.eslint-prettier-plugin
, as it reduces performance and can lead to more squiggly red lines in IDEs that will later be autofixed.Note: This does not lint any pre-existing files to limit the diff at the moment (and to prevent massive merge conflicts).
References
Fixes #5410
Supersedes #9660 and supersedes #9689
Reviewer guidance
It seems that the prettier upgrade does slightly change how whitespace around functions is handled which will cause a lot of changes to a lot of files.
For all other breaking changes that I could identify (and which had options) I set the option to induce the fewest changes.
@MisRob one last question - the latest eslint-vue integrates your unused props PR (with support for methods, props, computed etc) - so this might be an opportunity to switch out for mainstream, but I did not attempt that as yet.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)