Replace tabs by 4 spaces, and removes reduntant code identified by ESLint.
This commit is contained in:
parent
11bb820f07
commit
ed8caab208
13 changed files with 318 additions and 361 deletions
|
@ -15,7 +15,6 @@ function draftBack({
|
|||
macro,
|
||||
part,
|
||||
store,
|
||||
units,
|
||||
utils,
|
||||
scale,
|
||||
}) {
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
import { bib } from './bib.mjs'
|
||||
|
||||
function draftBibPlacket({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
sa,
|
||||
macro,
|
||||
part,
|
||||
store,
|
||||
|
|
|
@ -13,7 +13,6 @@ function draftFront({
|
|||
macro,
|
||||
part,
|
||||
store,
|
||||
units,
|
||||
utils,
|
||||
scale,
|
||||
}) {
|
||||
|
|
|
@ -1,20 +1,6 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function draftHammerLoop({
|
||||
measurements,
|
||||
options,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
sa,
|
||||
macro,
|
||||
part,
|
||||
store,
|
||||
scale,
|
||||
}) {
|
||||
function draftHammerLoop({ options, Point, Path, points, paths, sa, macro, part, store, scale }) {
|
||||
if (!options.hammerLoop) return part.hide()
|
||||
|
||||
const hammerLoopLength = store.get('hammerLoopLength') * options.hammerLoopLengthFactor
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function draftPocketBack({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
|
@ -13,7 +10,6 @@ function draftPocketBack({
|
|||
sa,
|
||||
macro,
|
||||
part,
|
||||
store,
|
||||
scale,
|
||||
}) {
|
||||
if (!options.pocketBack) return part.hide()
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import { bib } from './bib.mjs'
|
||||
|
||||
function draftPocketBib({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
|
@ -13,7 +10,6 @@ function draftPocketBib({
|
|||
sa,
|
||||
macro,
|
||||
part,
|
||||
store,
|
||||
scale,
|
||||
}) {
|
||||
if (!options.pocketBib) return part.hide()
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function draftPocketCarpenter({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function draftPocketCarpenterExtra({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
sa,
|
||||
macro,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function draftPocketSlash({
|
||||
measurements,
|
||||
options,
|
||||
Point,
|
||||
Path,
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
import { pocketSlash } from './pocketslash.mjs'
|
||||
|
||||
function draftPocketSlashShield({
|
||||
measurements,
|
||||
options,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
sa,
|
||||
macro,
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function draftWaistband({
|
||||
measurements,
|
||||
options,
|
||||
absoluteOptions,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
sa,
|
||||
macro,
|
||||
part,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue