1
0
Fork 0

chore: Remove lint

This commit is contained in:
Joost De Cock 2023-10-18 17:27:30 +02:00
parent 194a900895
commit e33d3c1499
10 changed files with 12 additions and 18 deletions

View file

@ -1,7 +1,7 @@
import { ringsectorPlugin } from '@freesewing/plugin-ringsector'
import { base } from './base.mjs'
const pluginRingsector = ({ points, Point, paths, options, macro, part, store }) => {
const pluginRingsector = ({ paths, options, macro, part, store }) => {
if (['ringsector', 'all'].indexOf(options.plugin) !== -1) {
const pathId = macro('ringsector', {
angle: options.ringsectorAngle,

View file

@ -16,7 +16,7 @@ const macroDefaults = {
const rmbanner = (id = macroDefaults.id, { store, part }) =>
store.removeMacroNodes(id, 'banner', part)
const banner = function (config, { part, paths, store, complete }) {
const banner = function (config, { paths, store, complete }) {
/*
* Don't add a banner when complete is false, unless force is true
*/

View file

@ -26,7 +26,7 @@ const rmbannerbox = (id = macroDefaults.id, { macro, store, part }) => {
/*
* The bannerbox macro
*/
const bannerbox = function (config, { Point, paths, Path, part, macro, log, store, complete }) {
const bannerbox = function (config, { Point, paths, Path, macro, log, store, complete }) {
/*
* Don't add a title when complete is false, unless force is true
*/

View file

@ -21,7 +21,7 @@ const rmcrossbox = (id = macroDefaults.id, { store, part }) =>
/*
* The crossbox macro
*/
const crossbox = function (config, { points, Point, paths, Path, complete, store, log, part }) {
const crossbox = function (config, { points, Point, paths, Path, complete, store, log }) {
/*
* Don't add a title when complete is false, unless force is true
*/

View file

@ -40,7 +40,7 @@ const rmcutonfold = (id = macroDefaults.id, { store, part }) =>
/*
* The cutonfold macro
*/
const cutonfold = function (config, { paths, Path, complete, store, scale, log, Point, part }) {
const cutonfold = function (config, { paths, Path, complete, store, scale, log, Point }) {
/*
* Don't add a cutonfold indicator when complete is false, unless force is true
*/

View file

@ -166,7 +166,7 @@ const removeDimension = function (id = macroDefaults.id, { store, part }, type)
/*
* This method removes all dimensions of a given type
*/
const removeDimensionType = function ({ paths, store, part }, type) {
const removeDimensionType = function ({ store, part }, type) {
// Get all macro IDs of the given type
const ids = store.get(['parts', part.name, 'macros', type, 'ids'], {})
for (const id in ids) store.removeMacroNodes(id, type, part)

View file

@ -38,7 +38,7 @@ const rmgrainline = (id = macroDefaults.id, { store, part }) =>
/*
* The grainline macro
*/
const grainline = function (config = {}, { paths, Path, Point, complete, store, log, part }) {
const grainline = function (config = {}, { paths, Path, Point, complete, store, log }) {
/*
* Don't add a cutonfold indicator when complete is false, unless force is true
*/

View file

@ -33,7 +33,7 @@ const rmpleat = (id = macroDefaults.id, { store, part }) =>
/*
* The pleat macro
*/
const pleat = function (config, { paths, Path, log, Point, complete, scale, store, part }) {
const pleat = function (config, { paths, Path, log, Point, complete, scale, store }) {
/*
* Don't add a pleat when complete is false, unless force is true
*/

View file

@ -61,7 +61,7 @@ const sizes = {
/*
* This removes a given macro type
*/
const removeScaleAnnotation = function (id = false, { paths, points, store, part }, type) {
const removeScaleAnnotation = function (id = false, { store, part }, type) {
if (!id) id = type
return store.removeMacroNodes(id, type, part)
}
@ -69,10 +69,7 @@ const removeScaleAnnotation = function (id = false, { paths, points, store, part
/*
* The scalebox macro
*/
const scalebox = function (
config,
{ store, points, paths, scale, Point, Path, complete, log, part }
) {
const scalebox = function (config, { store, points, paths, scale, Point, Path, complete, log }) {
/*
* Don't add a title when complete is false, unless force is true
*/
@ -264,10 +261,7 @@ const scalebox = function (
/*
* The miniscale macro
*/
const miniscale = function (
config,
{ points, paths, scale, Point, Path, part, complete, log, store }
) {
const miniscale = function (config, { points, paths, scale, Point, Path, complete, log, store }) {
/*
* Don't add a title when complete is false, unless force is true
*/

View file

@ -46,7 +46,7 @@ const rmsewtogether = (id = macroDefaults.id, { store, part }) =>
/*
* The sewtogether macro
*/
const sewtogether = function (config, { paths, Path, log, Point, complete, sa, store, part }) {
const sewtogether = function (config, { paths, Path, log, Point, complete, sa, store }) {
/*
* Don't add a title when complete is false, unless force is true
*/