Skip to content

Commit

Permalink
Merge pull request #1 from Holzhaus/joymidi-linter-fixes
Browse files Browse the repository at this point in the history
JoyMIDI Linter Fixes
  • Loading branch information
bcc6 authored Jan 20, 2020
2 parents 2251d0f + 833a3fa commit 720a5f6
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 130 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
res/controllers/lodash.mixxx.js
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"array-bracket-spacing" : "warn",
"block-spacing": "warn",
"brace-style": ["warn", "1tbs", {
"allowSingleLine": true
}],
"camelcase": "warn",
"comma-spacing": "warn",
"computed-property-spacing" : ["warn", "never", {
"enforceForClassMembers": true
}],
"dot-location": "warn",
"eqeqeq": ["error", "always"],
"func-style": ["error", "expression", {
"allowArrowFunctions": true
}],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"no-trailing-spaces": "warn",
"no-unneeded-ternary": ["warn", {
"defaultAssignment": false
}],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"object-curly-newline" : ["warn", {
"consistent": true,
"multiline": true
}],
"object-curly-spacing" : "warn",
"quotes": ["warn", "double"],
"require-atomic-updates": "error",
"semi": "warn",
"semi-spacing": "warn",
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn"
},
"globals": {
"console": "writable",
"svg": "writable",
"print": "readonly"
}
}
10 changes: 10 additions & 0 deletions res/controllers/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"globals": {
"_": "readonly",
"color": "readonly",
"components": "readonly",
"engine": "readonly",
"midi": "readonly",
"script": "readonly"
}
}
Loading

0 comments on commit 720a5f6

Please sign in to comment.