1
0
Fork 0

chore: Linter

This commit is contained in:
Joost De Cock 2021-01-31 09:26:26 +01:00
parent 1a46c8e724
commit e014b220c1
6 changed files with 45 additions and 63 deletions

View file

@ -20,7 +20,7 @@
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"jsonlint": "yarn --silent jsonlint:files | xargs -n1 jsonlint -q -c && echo \"jsonlint: no lint errors\"", "jsonlint": "yarn --silent jsonlint:files | xargs -n1 jsonlint -q -c && echo \"jsonlint: no lint errors\"",
"jsonlint:files": "find . -name \"*.json\" | grep -v -f .eslintignore", "jsonlint:files": "find . -name \"*.json\" | grep -v -f .eslintignore",
"prettier": "npx prettier --write 'packages/**/src/*.js'", "prettier": "npx prettier --write 'packages/**/src/*.js' 'packages/**/config/*.js' 'packages/**/example/src/*'",
"reconfigure": "npx babel-node scripts/reconfigure.js", "reconfigure": "npx babel-node scripts/reconfigure.js",
"dxf": "npx babel-node scripts/export-dxf.js", "dxf": "npx babel-node scripts/export-dxf.js",
"prerelease": "lerna version --no-git-tag-version --no-push && yarn reconfigure && lerna run build", "prerelease": "lerna version --no-git-tag-version --no-push && yarn reconfigure && lerna run build",

View file

@ -10,30 +10,16 @@ export default {
difficulty: 3, difficulty: 3,
tags: ['block', 'top', 'basics'], tags: ['block', 'top', 'basics'],
optionGroups: { optionGroups: {
fit: [ fit: ['chestEase', 'waistEase', 'bustSpanEase'],
'chestEase', darts: ['backDartHeight', 'bustDartLength', 'waistDartLength', 'bustDartCurve'],
'waistEase',
'bustSpanEase'
],
darts: [
'backDartHeight',
'bustDartLength',
'waistDartLength',
'bustDartCurve'
],
armhole: [ armhole: [
'armholeDepth', 'armholeDepth',
'backArmholeSlant', 'backArmholeSlant',
'backArmholeCurvature', 'backArmholeCurvature',
'frontArmholePitchDepth', 'frontArmholePitchDepth',
'backArmholePitchDepth', 'backArmholePitchDepth'
], ],
advanced: [ advanced: ['backNeckCutout', 'backHemSlope', 'frontShoulderWidth', 'highBustWidth']
'backNeckCutout',
'backHemSlope',
'frontShoulderWidth',
'highBustWidth',
]
}, },
measurements: [ measurements: [
'highBust', 'highBust',
@ -89,6 +75,6 @@ export default {
highBustWidth: { pct: 86, max: 92, min: 80 }, highBustWidth: { pct: 86, max: 92, min: 80 },
bustDartLength: { pct: 90, min: 75, max: 100 }, bustDartLength: { pct: 90, min: 75, max: 100 },
waistDartLength: { pct: 90, min: 75, max: 95 }, waistDartLength: { pct: 90, min: 75, max: 95 },
bustDartCurve: { pct: 100, min: 0, max: 100 }, bustDartCurve: { pct: 100, min: 0, max: 100 }
} }
} }

View file

@ -1,35 +1,35 @@
import { version } from "../package.json"; import { version } from '../package.json'
// ?? 🤔 ?? --> https://{{language}}.freesewing.dev/packages/core/config // ?? 🤔 ?? --> https://{{language}}.freesewing.dev/packages/core/config
export default { export default {
name: "{{name}}", name: '{{name}}',
version, version,
design: "{{author}}", design: '{{author}}',
code: "{{author}}", code: '{{author}}',
department: "{{department}}", department: '{{department}}',
type: "{{type}}", type: '{{type}}',
difficulty: 3, difficulty: 3,
tags: [ tags: [
"freesewing", 'freesewing',
"design", 'design',
"diy", 'diy',
"fashion", 'fashion',
"made to measure", 'made to measure',
"parametric design", 'parametric design',
"{{type}}", '{{type}}',
"sewing", 'sewing',
"sewing pattern" 'sewing pattern'
], ],
optionGroups: { optionGroups: {
fit: ["size"] fit: ['size']
}, },
measurements: [], measurements: [],
dependencies: {}, dependencies: {},
inject: {}, inject: {},
hide: [], hide: [],
parts: ["box"], parts: ['box'],
options: { options: {
size: { pct: 50, min: 10, max: 100 } size: { pct: 50, min: 10, max: 100 }
} }
}; }

View file

@ -225,7 +225,6 @@ li.action span.MuiSwitch-root {
} }
} }
footer { footer {
background-color: #1a1d21; background-color: #1a1d21;
color: #adb5bd; color: #adb5bd;

View file

@ -1,21 +1,18 @@
import { version } from "../package.json"; import { version } from '../package.json'
// ?? 🤔 ?? --> https://en.freesewing.dev/packages/core/config // 🤔 --> https://freesewing.dev/reference/config/
export default { export default {
name: "hortensia", name: 'hortensia',
version, version,
design: ['Stoffsuchti', 'Wouter Van Wageningen'], design: ['Stoffsuchti', 'Wouter Van Wageningen'],
code: 'Wouter Van Wageningen', code: 'Wouter Van Wageningen',
department: "accessories", department: 'accessories',
type: "pattern", type: 'pattern',
difficulty: 3, difficulty: 3,
tags: [ tags: ['handbag', 'accessories'],
"handbag",
"accessories",
],
optionGroups: { optionGroups: {
options: ["size", "zipperSize","strapLength","handleWidth"] options: ['size', 'zipperSize', 'strapLength', 'handleWidth']
}, },
measurements: [], measurements: [],
dependencies: { dependencies: {
@ -23,7 +20,7 @@ export default {
bottompanel: 'sidepanel', bottompanel: 'sidepanel',
frontpanel: 'sidepanel', frontpanel: 'sidepanel',
sidepanelreinforcement: 'sidepanel', sidepanelreinforcement: 'sidepanel',
zipperpanel: 'sidepanel', zipperpanel: 'sidepanel'
}, },
options: { options: {
width: 230, width: 230,
@ -35,6 +32,6 @@ export default {
strapLength: { pct: 160, min: 75, max: 250 }, strapLength: { pct: 160, min: 75, max: 250 },
handleWidth: { mm: 20, min: 7, max: 30 }, handleWidth: { mm: 20, min: 7, max: 30 },
size: { pct: 50, min: 20, max: 200 }, size: { pct: 50, min: 20, max: 200 },
zipperSize: { dflt: '#5', list: ['#3','#4','#4.5','#5','#6','#8','#10','Invisible']} zipperSize: { dflt: '#5', list: ['#3', '#4', '#4.5', '#5', '#6', '#8', '#10', 'Invisible'] }
} }
}; }

View file

@ -1,20 +1,20 @@
import { version } from "../package.json"; import { version } from '../package.json'
export default { export default {
name: "rendertest", name: 'rendertest',
version, version,
design: "Joost De Cock", design: 'Joost De Cock',
code: "Joost De Cock", code: 'Joost De Cock',
department: "womenswear", department: 'womenswear',
type: "pattern", type: 'pattern',
difficulty: 1, difficulty: 1,
tags: ["example"], tags: ['example'],
optionGroups: { optionGroups: {
size: ["width"], size: ['width'],
content: ["colors", "circles", "text", "snippets", "macros"] content: ['colors', 'circles', 'text', 'snippets', 'macros']
}, },
measurements: [], measurements: [],
parts: ["test"], parts: ['test'],
options: { options: {
width: { mm: 200, min: 50, max: 500 }, width: { mm: 200, min: 50, max: 500 },
colors: { bool: true }, colors: { bool: true },
@ -24,4 +24,4 @@ export default {
macros: { bool: true }, macros: { bool: true },
widthHd: { bool: true } widthHd: { bool: true }
} }
}; }