Skip to content

Improve ESLint rules #25146

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

Merged
merged 3 commits into from
Jan 11, 2018
Merged

Improve ESLint rules #25146

merged 3 commits into from
Jan 11, 2018

Conversation

XhmikosR
Copy link
Member

Not sure about the new files, but this way one can run eslint . and it will just work.

@@ -324,10 +318,10 @@ const Dropdown = (($) => {

const toggles = $.makeArray($(Selector.DATA_TOGGLE))
for (let i = 0; i < toggles.length; i++) {
const parent = Dropdown._getParentFromElement(toggles[i])
const context = $(toggles[i]).data(DATA_KEY)
const parent = Dropdown._getParentFromElement(toggles[i])
Copy link
Member

@Johann-S Johann-S Dec 31, 2017

Choose a reason for hiding this comment

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

Not big fan of this change 😟 but that's my personal feeling I think it's more readable like it was before that change

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I didn't enforce any rules about spacing after =, so let me have a look again. I had enabled it at first but then dropped it.

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-js-lint branch 3 times, most recently from 8ae834c to b3a8cc6 Compare January 3, 2018 14:58
@mdo mdo mentioned this pull request Jan 11, 2018
Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
@XhmikosR XhmikosR merged commit 80d0943 into v4-dev Jan 11, 2018
@XhmikosR XhmikosR deleted the v4-dev-xmr-js-lint branch January 11, 2018 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants