Skip to content

Commit

Permalink
eslint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiampietro committed Jun 21, 2023
1 parent b6e7a4e commit 7d94ce6
Show file tree
Hide file tree
Showing 15 changed files with 237 additions and 333 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/static/**/js/*.js
14 changes: 13 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
"env": {
"jquery": true
},
"globals": {
"dw": true,
"customer": true,
"session": true,
"request": true,
"response": true,
"empty": true,
"PIPELET_ERROR": true,
"PIPELET_NEXT": true,
"webreferences": true
},
"rules": {
"import/no-unresolved": "off",
"indent": ["error", 4, { "SwitchCase": 1, "VariableDeclarator": 1 }],
Expand All @@ -16,6 +27,7 @@
"vars-on-top": "off",
"global-require": "off",
"no-shadow": ["error", { "allow": ["err", "callback"]}],
"max-len": "off"
"max-len": "off",
"new-cap": 0
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var processInclude = require('base/util');

$(document).ready(function () {
processInclude(require('./monei/moneiCheckout'));
});
var moneyCheckout = require('./monei/moneiCheckout');
moneyCheckout.initMoney();
});
Loading

0 comments on commit 7d94ce6

Please sign in to comment.