1
0
Fork 0

chore: Linter warnings

This commit is contained in:
joostdecock 2023-04-15 16:21:38 +02:00
parent 1d08ff5639
commit 53eb0c6546
7 changed files with 7 additions and 58 deletions

View file

@ -84,12 +84,6 @@
### plugin-i18n ### plugin-i18n
#### Removed
- This plugin no longer sets its version as an SVG attribute when rendering patterns
### plugin-logo
#### Removed #### Removed
- This plugin no longer sets its version as an SVG attribute when rendering patterns - This plugin no longer sets its version as an SVG attribute when rendering patterns
@ -694,12 +688,6 @@
### plugin-i18n ### plugin-i18n
#### Changed
- Migrated from Rollup to Esbuild for all builds
### plugin-logo
#### Changed #### Changed
- Migrated from Rollup to Esbuild for all builds - Migrated from Rollup to Esbuild for all builds
@ -1348,12 +1336,6 @@
### plugin-i18n ### plugin-i18n
#### Added
- Added (esm) unit tests
### plugin-logo
#### Added #### Added
- Added (esm) unit tests - Added (esm) unit tests
@ -2324,12 +2306,6 @@
- Added examples for bartack plugin - Added examples for bartack plugin
- Added examples for new buttonhole-start/end snippets - Added examples for new buttonhole-start/end snippets
### plugin-logo
#### Added
- Render logo in currentColor to support dark mode
### plugin-theme ### plugin-theme
#### Added #### Added
@ -3781,12 +3757,6 @@
### plugin-i18n ### plugin-i18n
#### Added
- Initial release
### plugin-logo
#### Added #### Added
- Initial release - Initial release

View file

@ -232,8 +232,8 @@ export const plugin_mirror = {
macro('mirror', { macro('mirror', {
mirror: [points.b, points.d], mirror: [points.b, points.d],
points: [points.mid], points: ['mid'],
paths: [paths.a], paths: ['a'],
}) })
macro('sprinkle', { macro('sprinkle', {

View file

@ -1,7 +1,7 @@
// Not importing i18n since it's a run-time plugin loaded by workbench // Not importing i18n since it's a run-time plugin loaded by workbench
//import { i18nPlugin } from '@freesewing/plugin-i18n' //import { i18nPlugin } from '@freesewing/plugin-i18n'
const pluginI18n = ({ points, Point, paths, Path, options, part, macro, store }) => { const pluginI18n = ({ points, Point, options, part, macro, store }) => {
if (['i18n', 'all'].indexOf(options.plugin) !== -1) { if (['i18n', 'all'].indexOf(options.plugin) !== -1) {
points.a = new Point(0, 0).attr('data-text', 'cutTwoStripsToFinishTheArmholes') points.a = new Point(0, 0).attr('data-text', 'cutTwoStripsToFinishTheArmholes')

View file

@ -1,18 +1,7 @@
import { base } from './base.mjs' import { base } from './base.mjs'
import { logoPlugin } from '@freesewing/plugin-logo' import { logoPlugin } from '@freesewing/plugin-logo'
const pluginLogo = ({ const pluginLogo = ({ points, Point, snippets, Snippet, options, part, macro, store }) => {
points,
Point,
paths,
Path,
snippets,
Snippet,
options,
part,
macro,
store,
}) => {
if (['logo', 'all'].indexOf(options.plugin) !== -1) { if (['logo', 'all'].indexOf(options.plugin) !== -1) {
points.a = new Point(40, 40) points.a = new Point(40, 40)
snippets.a = new Snippet('logo', points.a) snippets.a = new Snippet('logo', points.a)

View file

@ -11,17 +11,7 @@ const measies = [
'crossSeamBack', 'crossSeamBack',
] ]
const pluginMeasurements = ({ const pluginMeasurements = ({ points, Point, measurements, options, part, macro, store }) => {
points,
Point,
paths,
Path,
measurements,
options,
part,
macro,
store,
}) => {
if (['measurements', 'all'].indexOf(options.plugin) !== -1) { if (['measurements', 'all'].indexOf(options.plugin) !== -1) {
let y = 10 let y = 10
for (const m of measies) { for (const m of measies) {

View file

@ -1,7 +1,7 @@
import { sprinklePlugin } from '@freesewing/plugin-sprinkle' import { sprinklePlugin } from '@freesewing/plugin-sprinkle'
import { base } from './base.mjs' import { base } from './base.mjs'
const pluginSprinkle = ({ Point, points, Path, paths, options, macro, part, store }) => { const pluginSprinkle = ({ Point, points, options, macro, part, store }) => {
if (['sprinkle', 'all'].indexOf(options.plugin) !== -1) { if (['sprinkle', 'all'].indexOf(options.plugin) !== -1) {
points.center = new Point(0, 0) points.center = new Point(0, 0)
points.top = new Point(0, 20) points.top = new Point(0, 20)

View file

@ -27,7 +27,7 @@ function simonYoke({
else { else {
macro('mirror', { macro('mirror', {
mirror: [points.cbNeck, points.cbYoke], mirror: [points.cbNeck, points.cbYoke],
paths: [paths.saBase], paths: ['saBase'],
clone: true, clone: true,
}) })
paths.saBase = paths.saBase.join(paths.mirroredSaBase.reverse()) paths.saBase = paths.saBase.join(paths.mirroredSaBase.reverse())