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

JoyMIDI Linter Fixes #1

Merged
merged 25 commits into from
Jan 20, 2020
Merged

JoyMIDI Linter Fixes #1

merged 25 commits into from
Jan 20, 2020

Conversation

Holzhaus
Copy link

Fixes some remaining linter issues in PR mixxxdj#2425.

Holzhaus and others added 25 commits January 16, 2020 16:35
This config file is used by codefactor.io and can be used to override
some of the default settings. The default config has been obtained from:
https://github.com/codefactor-io/default-configs/blob/master/.eslintrc.json
Previously, this setting led to a lot of false positives in out
controller scripts, e.g.:

    'group' is defined but never used.
    Found in res\controllers\KANE_QuNeo_scripts.js:1120
    KANE_QuNeo.scrollPlaylist = function (channel, control, value, status, group) {
The .eslintrc.yaml for novation-launchpad has issues with recent
versions of eslint and requires installation of custom npm packages.

    $ eslint .

    Oops! Something went wrong! :(

    ESLint: 6.8.0.

    ESLint couldn't find the config "standard" to extend from. Please check that the name of the config is correct.

    The config "standard" was referenced from the config file in "/data/jan/Projects/mixxx/res/controllers/novation-launchpad/.eslintrc.yaml".

    If you still have problems, please stop by https://gitter.im/eslint/eslint to chat with the team.
These shouldn't cause a lot of linter issues in our existing codebase
(if any). There's no reason why they shouldn't be enabled IMHO.
Although Promises aren't support by Qt Script anyway, some scripts in
the res/controllers directory are using Promises anyway (i.e. the Novation
Launchpad scripts). So in any case it doesn't hurt to enable this rule.
.eslintrc.json: Add more rules regarding spacing
@bcc6 bcc6 merged commit 720a5f6 into bcc6:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants