Skip to content

Commit

Permalink
Eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
stamogis committed May 23, 2022
1 parent 4dbdf25 commit 31edcef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"parserOptions": {
"babelOptions": {
"configFile": "./.babelrc.json"
},
}
},
"plugins": [
"react" // https://github.com/yannickcr/eslint-plugin-react
Expand Down Expand Up @@ -174,6 +174,6 @@
"react/sort-prop-types": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
"react/no-did-mount-set-state": [2, "disallow-in-func"], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
"react/self-closing-comp": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
"react/jsx-wrap-multilines": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
"react/jsx-wrap-multilines": 2 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
}
}
8 changes: 4 additions & 4 deletions static/api_examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ function drawpoly(ev) {
window.qwc2.drawScratch("Polygon", "Draw a polygon", false, function(result, crs) { console.log(result); console.log(crs); }, {
borderColor: [0, 0, 255, 1],
size: 2,
fillColor: [255, 255, 255, 0.5]
fillColor: [255, 255, 255, 0.5]
});
}
function drawcircle(ev) {
window.qwc2.drawScratch("Circle", "Draw a circle", false, function(result, crs) { console.log(result); console.log(crs); }, {
borderColor: [0, 0, 255, 1],
size: 2,
fillColor: [255, 255, 255, 0.5]
fillColor: [255, 255, 255, 0.5]
});
}
function drawbox(ev) {
window.qwc2.drawScratch("Box", "Draw a box", false, function(result, crs) { console.log(result); console.log(crs); }, {
borderColor: [0, 0, 255, 1],
size: 2,
fillColor: [255, 255, 255, 0.5]
fillColor: [255, 255, 255, 0.5]
});
}

Expand Down Expand Up @@ -125,4 +125,4 @@ window.onload = function() {
</div>\
</div>";
document.body.appendChild(apiFrame);
}
};

0 comments on commit 31edcef

Please # to comment.