Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Sep 7, 2024
1 parent 04547f2 commit d1887a2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default [
{
ignores: [
"preview/*",
"docs/reference/assets/**/*",
"docs/assets/**/*",
"lib/*",
"rollup.config.mjs",
"utils/sample-linter.mjs"
]
}
];
2 changes: 1 addition & 1 deletion test/unit/webgl/p5.Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ suite('p5.Camera', function() {
myCam.eyeZ * 10.0
);
myp5.setCamera(myCam);
})
});

suite('createCamera()', function() {
test('creates a p5.Camera object', function() {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ suite('p5.RendererGL', function() {
const assertSameIn2D = function(colorA, colorB, mode) {
const refColor = testBlend(myp5, colorA, colorB, mode);
const webglColor = testBlend(ref, colorA, colorB, mode);
console.log(`Blending ${colorA} with ${colorB} using ${mode}: ${JSON.stringify(refColor)}, ${JSON.stringify(webglColor)}`)
// console.log(`Blending ${colorA} with ${colorB} using ${mode}: ${JSON.stringify(refColor)}, ${JSON.stringify(webglColor)}`)
assert.arrayApproximately(
refColor,
webglColor,
Expand Down Expand Up @@ -2292,7 +2292,7 @@ suite('p5.RendererGL', function() {
myp5.clip(() => myp5.rect(10, 10, 30, 30));
myp5.fill('red');
myp5.rect(5, 5, 40, 40);
console.log(myp5._renderer.canvas.toDataURL())
// console.log(myp5._renderer.canvas.toDataURL());
};
const pixels = getClippedPixels(myp5.WEBGL, mask);

Expand Down
2 changes: 1 addition & 1 deletion test/unit/webgl/p5.Texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ suite('p5.Texture', function() {
var canvas;

beforeEach(function() {
return new Promise((done) => {
return new Promise(done => {
myp5 = new p5(function(p) {
p.setup = async function() {
canvas = p.createCanvas(100, 100, p.WEBGL);
Expand Down

0 comments on commit d1887a2

Please sign in to comment.