1
0
Fork 0

chore: Linter fixes

This commit is contained in:
Joost De Cock 2022-09-14 15:02:39 +02:00
parent b1429a3704
commit ef5e792d6b
40 changed files with 93 additions and 99 deletions

View file

@ -1,5 +1,5 @@
import chai from 'chai'
import { Design, Pattern } from '@freesewing/core'
import { Design } from '@freesewing/core'
import { bannerPlugin } from './dist/index.mjs'
const expect = chai.expect

View file

@ -1,8 +1,5 @@
import { version, name } from '../data.mjs'
// Helper method to construct prefixed/suffixed name
const getName = (n, so) => `${so.prefix}${n}${so.suffix}`
// Method that draws the actual bartack
const drawBartack = (points, self) => {
let path = new self.Path().move(points.path1[0])

View file

@ -52,8 +52,6 @@ function setGrain(store, partName, grain = false) {
return store
}
return store.set(path, grain)
return store
}
/** Method to add the cutOnFold info */

View file

@ -1,5 +1,5 @@
import chai from 'chai'
import { Design, Point } from '@freesewing/core'
import { Design } from '@freesewing/core'
import { plugin } from '../dist/index.mjs'
const expect = chai.expect

View file

@ -1,5 +1,5 @@
import chai from 'chai'
import { Design, Pattern, round } from '@freesewing/core'
import { Design, round } from '@freesewing/core'
import { plugin } from './dist/index.mjs'
const expect = chai.expect

View file

@ -1,5 +1,5 @@
import chai from 'chai'
import { Design, Pattern, round } from '@freesewing/core'
import { Design, round } from '@freesewing/core'
import { plugin } from './dist/index.mjs'
const expect = chai.expect

View file

@ -1,5 +1,5 @@
import chai from 'chai'
import { round, Design, Pattern } from '@freesewing/core'
import { round, Design } from '@freesewing/core'
import { plugin } from '../src/index.mjs'
const expect = chai.expect

View file

@ -157,7 +157,7 @@ export function scalebox(so) {
if (name.indexOf('@freesewing/') !== -1) name = name.replace('@freesewing/', '')
this.points.__scaleboxTitle = this.points.__scaleboxTitle
.attr('data-text', name)
.attr('data-text', 'v' + this.context.config?.data?.version || 'No Version')
.attr('data-text', 'v' + (this.context.config?.data?.version || 'No Version'))
}
this.points.__scaleboxTitle.attributes.add('data-text-class', 'text-lg')
// Text

View file

@ -81,7 +81,7 @@ export const plugin = {
this.points[`_${prefix}_titlePattern`] = so.at
.shift(-90 - so.rotation, shift * so.scale)
.attr('data-text', name)
.attr('data-text', 'v' + this.context.config?.data?.version || 'No Version')
.attr('data-text', 'v' + (this.context.config?.data?.version || 'No Version'))
.attr('data-text-class', 'fill-note')
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
if (this.context.settings.metadata && this.context.settings.metadata.for) {