Skip to content

Commit be953ca

Browse files
authored
Merge pull request #8063 from limzykenneth/eslint-fixes
Fix most of the eslint warnings currently generated
2 parents 9438029 + 0fbfa53 commit be953ca

File tree

105 files changed

+4915
-4297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4915
-4297
lines changed

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const bundleSize = (name, sourcemap) => {
3838

3939
const modules = ['math'];
4040
const generateModuleBuild = () => {
41-
return modules.map((module) => {
41+
return modules.map(module => {
4242
return {
4343
input: `src/${module}/index.js`,
4444
output: [
@@ -83,7 +83,7 @@ const generateModuleBuild = () => {
8383
});
8484
};
8585

86-
rmSync("./dist", {
86+
rmSync('./dist', {
8787
force: true,
8888
recursive: true
8989
});

src/accessibility/describe.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ function describe(p5, fn){
7575
*
7676
* <div>
7777
* <code>
78-
*
78+
*
7979
* function setup(){
8080
* createCanvas(100, 100);
8181
* };
82-
*
82+
*
8383
* function draw() {
8484
* background(200);
8585
*
@@ -101,11 +101,11 @@ function describe(p5, fn){
101101
*
102102
* <div>
103103
* <code>
104-
*
104+
*
105105
* function setup(){
106106
* createCanvas(100, 100);
107107
* }
108-
*
108+
*
109109
* function draw() {
110110
* background(200);
111111
*

src/accessibility/gridOutput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ function gridOutput(p5, fn){
7171
//if empty cell of location of shape is undefined
7272
if (!cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX]) {
7373
//fill it with shape info
74-
cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX] = fill;
74+
cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX] =
75+
fill;
7576
//if a shape is already in that location
7677
} else {
7778
//add it

src/accessibility/outputs.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ function outputs(p5, fn){
8181
*
8282
* <div>
8383
* <code>
84-
*
84+
*
8585
* function setup(){
8686
* createCanvas(100, 100);
8787
* }
88-
*
88+
*
8989
* function draw() {
9090
* // Add the text description.
9191
* textOutput();
@@ -106,11 +106,11 @@ function outputs(p5, fn){
106106
*
107107
* <div>
108108
* <code>
109-
*
109+
*
110110
* function setup(){
111111
* createCanvas(100, 100);
112112
* }
113-
*
113+
*
114114
* function draw() {
115115
* // Add the text description and
116116
* // display it for debugging.
@@ -225,11 +225,11 @@ function outputs(p5, fn){
225225
*
226226
* <div>
227227
* <code>
228-
*
228+
*
229229
* function setup() {
230230
* createCanvas(100, 100);
231231
* }
232-
*
232+
*
233233
* function draw() {
234234
* // Add the grid description.
235235
* gridOutput();
@@ -250,11 +250,11 @@ function outputs(p5, fn){
250250
*
251251
* <div>
252252
* <code>
253-
*
253+
*
254254
* function setup(){
255255
* createCanvas(100, 100);
256256
* }
257-
*
257+
*
258258
* function draw() {
259259
* // Add the grid description and
260260
* // display it for debugging.
@@ -561,7 +561,8 @@ function outputs(p5, fn){
561561

562562
//gets position of shape in the canvas
563563
fn._getPos = function (x, y) {
564-
const { x: transformedX, y: transformedY } = this.worldToScreen(new p5.Vector(x, y));
564+
const { x: transformedX, y: transformedY } =
565+
this.worldToScreen(new p5.Vector(x, y));
565566
const canvasWidth = this.width;
566567
const canvasHeight = this.height;
567568
if (transformedX < 0.4 * canvasWidth) {

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import webgl from './webgl';
5151
webgl(p5);
5252

5353
// typography
54-
import type from './type'
54+
import type from './type';
5555
type(p5);
5656

5757
import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init';

src/color/p5.Color.culori.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Color {
1+
export class Color {
22
_color;
33
maxes;
44
mode;

0 commit comments

Comments
 (0)