1
0
Fork 0

Replace tabs by 4 spaces, and removes reduntant code identified by ESLint.

This commit is contained in:
Thrunic 2024-05-01 13:28:31 -04:00
parent 11bb820f07
commit ed8caab208
13 changed files with 318 additions and 361 deletions

View file

@ -15,7 +15,6 @@ function draftBack({
macro, macro,
part, part,
store, store,
units,
utils, utils,
scale, scale,
}) { }) {

View file

@ -1,16 +1,12 @@
import { bib } from './bib.mjs' import { bib } from './bib.mjs'
function draftBibPlacket({ function draftBibPlacket({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point, Point,
Path, Path,
points, points,
paths, paths,
Snippet,
snippets,
sa,
macro, macro,
part, part,
store, store,

View file

@ -13,7 +13,6 @@ function draftFront({
macro, macro,
part, part,
store, store,
units,
utils, utils,
scale, scale,
}) { }) {

View file

@ -1,20 +1,6 @@
import { back } from './back.mjs' import { back } from './back.mjs'
function draftHammerLoop({ function draftHammerLoop({ options, Point, Path, points, paths, sa, macro, part, store, scale }) {
measurements,
options,
Point,
Path,
points,
paths,
Snippet,
snippets,
sa,
macro,
part,
store,
scale,
}) {
if (!options.hammerLoop) return part.hide() if (!options.hammerLoop) return part.hide()
const hammerLoopLength = store.get('hammerLoopLength') * options.hammerLoopLengthFactor const hammerLoopLength = store.get('hammerLoopLength') * options.hammerLoopLengthFactor

View file

@ -1,11 +1,8 @@
import { back } from './back.mjs' import { back } from './back.mjs'
function draftPocketBack({ function draftPocketBack({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point,
Path,
points, points,
paths, paths,
Snippet, Snippet,
@ -13,7 +10,6 @@ function draftPocketBack({
sa, sa,
macro, macro,
part, part,
store,
scale, scale,
}) { }) {
if (!options.pocketBack) return part.hide() if (!options.pocketBack) return part.hide()

View file

@ -1,11 +1,8 @@
import { bib } from './bib.mjs' import { bib } from './bib.mjs'
function draftPocketBib({ function draftPocketBib({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point,
Path,
points, points,
paths, paths,
Snippet, Snippet,
@ -13,7 +10,6 @@ function draftPocketBib({
sa, sa,
macro, macro,
part, part,
store,
scale, scale,
}) { }) {
if (!options.pocketBib) return part.hide() if (!options.pocketBib) return part.hide()

View file

@ -1,11 +1,8 @@
import { back } from './back.mjs' import { back } from './back.mjs'
function draftPocketCarpenter({ function draftPocketCarpenter({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point,
Path,
points, points,
paths, paths,
Snippet, Snippet,

View file

@ -1,14 +1,10 @@
import { back } from './back.mjs' import { back } from './back.mjs'
function draftPocketCarpenterExtra({ function draftPocketCarpenterExtra({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point,
Path,
points, points,
paths, paths,
Snippet,
snippets, snippets,
sa, sa,
macro, macro,

View file

@ -1,7 +1,6 @@
import { front } from './front.mjs' import { front } from './front.mjs'
function draftPocketSlash({ function draftPocketSlash({
measurements,
options, options,
Point, Point,
Path, Path,

View file

@ -1,13 +1,9 @@
import { pocketSlash } from './pocketslash.mjs' import { pocketSlash } from './pocketslash.mjs'
function draftPocketSlashShield({ function draftPocketSlashShield({
measurements,
options, options,
Point,
Path,
points, points,
paths, paths,
Snippet,
snippets, snippets,
sa, sa,
macro, macro,

View file

@ -1,15 +1,12 @@
import { front } from './front.mjs' import { front } from './front.mjs'
function draftWaistband({ function draftWaistband({
measurements,
options, options,
absoluteOptions, absoluteOptions,
Point, Point,
Path, Path,
points, points,
paths, paths,
Snippet,
snippets,
sa, sa,
macro, macro,
part, part,