diff --git a/.github/workflows/lint.all.yml b/.github/workflows/lint.all.yml
new file mode 100644
index 00000000000..d3bd31e580b
--- /dev/null
+++ b/.github/workflows/lint.all.yml
@@ -0,0 +1,40 @@
+name: ESLint
+
+on:
+ push:
+ branches:
+ - develop
+ paths:
+ - '**'
+ - '!**/README.md'
+ pull_request:
+ branches:
+ - develop
+ paths:
+ - '**'
+ - '!**/README.md'
+
+jobs:
+ test:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [16.x]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Setup Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Install dependencies
+ run: npx lerna bootstrap
+ env:
+ CI: true
+ - name: Build all
+ run: npm run buildall
+ - name: Run eslint
+ run: npm run lint
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 31b81710b6a..be5685d78ed 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -7,136 +7,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/README.md b/README.md
index acc44a445c5..41cfa664dd3 100644
--- a/README.md
+++ b/README.md
@@ -137,136 +137,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/config/scripts.yaml b/config/scripts.yaml
index 6d12bc4af90..57cc22f5448 100644
--- a/config/scripts.yaml
+++ b/config/scripts.yaml
@@ -7,6 +7,7 @@ _:
vbuild: 'VERBOSE=1 node build.mjs'
lab: "cd ../../sites/lab && yarn start"
tips: "node ../../scripts/help.mjs"
+ lint: "npx eslint 'src/*.mjs' 'tests/*.mjs'"
_types:
design:
prettier: "npx prettier --write 'src/*.mjs' 'tests/*.mjs'"
@@ -30,7 +31,15 @@ models:
test: "npx mocha tests/*.test.mjs"
new-design:
build: "SITE=new-design/shared node ../../sites/shared/prebuild/i18n-only.mjs && cp ../../scripts/banner.mjs ./lib && node build.mjs"
+ lint: "npx eslint 'lib/*.mjs'"
mbuild: '!'
test: '!'
testci: '!'
vbuild: '!'
+rehype-jargon:
+ lint: "npx eslint 'src/*.mjs'"
+snapseries:
+ lint: "npx eslint 'src/*.mjs'"
+backend:
+ lint: "!"
+
diff --git a/config/templates/eslintrc.yml b/config/templates/eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/config/templates/eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/aaron/.eslintrc.yml b/designs/aaron/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/aaron/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/aaron/README.md b/designs/aaron/README.md
index c919fc24bb5..6ec332040dc 100644
--- a/designs/aaron/README.md
+++ b/designs/aaron/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/aaron/package.json b/designs/aaron/package.json
index 71046894b1b..59b19a976ff 100644
--- a/designs/aaron/package.json
+++ b/designs/aaron/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/albert/.eslintrc.yml b/designs/albert/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/albert/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/albert/README.md b/designs/albert/README.md
index e7f8c00fe0f..a695b05f293 100644
--- a/designs/albert/README.md
+++ b/designs/albert/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/albert/package.json b/designs/albert/package.json
index b929fbc54e0..b10944f5e99 100644
--- a/designs/albert/package.json
+++ b/designs/albert/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/bee/.eslintrc.yml b/designs/bee/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/bee/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/bee/README.md b/designs/bee/README.md
index 5cd508a3005..e7836f23889 100644
--- a/designs/bee/README.md
+++ b/designs/bee/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/bee/package.json b/designs/bee/package.json
index a949c9429ff..952f866c97b 100644
--- a/designs/bee/package.json
+++ b/designs/bee/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/bella/.eslintrc.yml b/designs/bella/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/bella/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/bella/README.md b/designs/bella/README.md
index 119af5216ab..8188e4b634a 100644
--- a/designs/bella/README.md
+++ b/designs/bella/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/bella/package.json b/designs/bella/package.json
index d5bb38bdfae..a2ce1349ddc 100644
--- a/designs/bella/package.json
+++ b/designs/bella/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
diff --git a/designs/benjamin/.eslintrc.yml b/designs/benjamin/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/benjamin/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/benjamin/README.md b/designs/benjamin/README.md
index 31004683ce9..ab142351235 100644
--- a/designs/benjamin/README.md
+++ b/designs/benjamin/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/benjamin/package.json b/designs/benjamin/package.json
index 4949675f2ea..f295d9613ed 100644
--- a/designs/benjamin/package.json
+++ b/designs/benjamin/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/bent/.eslintrc.yml b/designs/bent/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/bent/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/bent/README.md b/designs/bent/README.md
index 664ab3be9cc..13677ecd2e8 100644
--- a/designs/bent/README.md
+++ b/designs/bent/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/bent/package.json b/designs/bent/package.json
index 8b8363172e1..8193a9c909e 100644
--- a/designs/bent/package.json
+++ b/designs/bent/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
diff --git a/designs/bob/.eslintrc.yml b/designs/bob/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/bob/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/bob/README.md b/designs/bob/README.md
index 7f60df208ce..1c5046883b8 100644
--- a/designs/bob/README.md
+++ b/designs/bob/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/bob/package.json b/designs/bob/package.json
index f693a7de03f..215ed3a95c4 100644
--- a/designs/bob/package.json
+++ b/designs/bob/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/bob/src/box.mjs b/designs/bob/src/box.mjs
index 8ffdfe2b51b..738df2aeae1 100644
--- a/designs/bob/src/box.mjs
+++ b/designs/bob/src/box.mjs
@@ -10,6 +10,7 @@ export default function ({
sa,
paperless,
macro,
+ part,
}) {
const w = 500 * options.size
points.topLeft = new Point(0, 0)
diff --git a/designs/breanna/.eslintrc.yml b/designs/breanna/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/breanna/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/breanna/README.md b/designs/breanna/README.md
index 13628ae2c99..61b45aa70ba 100644
--- a/designs/breanna/README.md
+++ b/designs/breanna/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/breanna/package.json b/designs/breanna/package.json
index ee8ab8c625a..7be1350ae81 100644
--- a/designs/breanna/package.json
+++ b/designs/breanna/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
diff --git a/designs/breanna/src/front-primary-1100.mjs b/designs/breanna/src/front-primary-1100.mjs
index c2777631015..730e304760d 100644
--- a/designs/breanna/src/front-primary-1100.mjs
+++ b/designs/breanna/src/front-primary-1100.mjs
@@ -14,7 +14,6 @@ export function frontWithPrimaryAt1100(part) {
.line(points.hps)
.noop('secondary')
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1200:
return new Path()
.move(points.primaryBustDart1)
@@ -28,7 +27,6 @@ export function frontWithPrimaryAt1100(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1230:
return new Path()
.move(points.primaryBustDart1)
@@ -41,7 +39,6 @@ export function frontWithPrimaryAt1100(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1300:
return new Path()
.move(points.primaryBustDart1)
@@ -54,7 +51,6 @@ export function frontWithPrimaryAt1100(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1330:
return new Path()
.move(points.primaryBustDart1)
@@ -67,7 +63,6 @@ export function frontWithPrimaryAt1100(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1400:
case 1500:
case 1600:
@@ -83,7 +78,6 @@ export function frontWithPrimaryAt1100(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1700:
return new Path()
.move(points.primaryBustDart1)
@@ -96,7 +90,6 @@ export function frontWithPrimaryAt1100(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-1130.mjs b/designs/breanna/src/front-primary-1130.mjs
index 601b69046d1..3751ce86559 100644
--- a/designs/breanna/src/front-primary-1130.mjs
+++ b/designs/breanna/src/front-primary-1130.mjs
@@ -15,7 +15,6 @@ export function frontWithPrimaryAt1130(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1230:
return new Path()
.move(points.cfNeck)
@@ -28,7 +27,6 @@ export function frontWithPrimaryAt1130(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -41,7 +39,6 @@ export function frontWithPrimaryAt1130(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -54,7 +51,6 @@ export function frontWithPrimaryAt1130(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -70,7 +66,6 @@ export function frontWithPrimaryAt1130(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -83,7 +78,6 @@ export function frontWithPrimaryAt1130(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-1200.mjs b/designs/breanna/src/front-primary-1200.mjs
index 154f757e710..8fae8de287e 100644
--- a/designs/breanna/src/front-primary-1200.mjs
+++ b/designs/breanna/src/front-primary-1200.mjs
@@ -15,7 +15,6 @@ export function frontWithPrimaryAt1200(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -29,7 +28,6 @@ export function frontWithPrimaryAt1200(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -43,7 +41,6 @@ export function frontWithPrimaryAt1200(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -60,7 +57,6 @@ export function frontWithPrimaryAt1200(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -74,7 +70,6 @@ export function frontWithPrimaryAt1200(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-1300.mjs b/designs/breanna/src/front-primary-1300.mjs
index 242c480b3ed..1f256dfbe1a 100644
--- a/designs/breanna/src/front-primary-1300.mjs
+++ b/designs/breanna/src/front-primary-1300.mjs
@@ -14,7 +14,6 @@ export function frontWithPrimaryAt1300(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -30,7 +29,6 @@ export function frontWithPrimaryAt1300(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -43,7 +41,6 @@ export function frontWithPrimaryAt1300(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-1330.mjs b/designs/breanna/src/front-primary-1330.mjs
index e9636d4f875..18aaae52e6e 100644
--- a/designs/breanna/src/front-primary-1330.mjs
+++ b/designs/breanna/src/front-primary-1330.mjs
@@ -17,7 +17,6 @@ export function frontWithPrimaryAt1330(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -30,7 +29,6 @@ export function frontWithPrimaryAt1330(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-1400.mjs b/designs/breanna/src/front-primary-1400.mjs
index 22191c1cf9b..a2be5d7404d 100644
--- a/designs/breanna/src/front-primary-1400.mjs
+++ b/designs/breanna/src/front-primary-1400.mjs
@@ -16,7 +16,6 @@ export function frontWithPrimaryAt1400(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -29,7 +28,6 @@ export function frontWithPrimaryAt1400(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-600.mjs b/designs/breanna/src/front-primary-600.mjs
index 5732412e1b2..2620e4fbf76 100644
--- a/designs/breanna/src/front-primary-600.mjs
+++ b/designs/breanna/src/front-primary-600.mjs
@@ -13,7 +13,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 800:
case 900:
case 1000:
@@ -28,7 +27,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1100:
return new Path()
.move(points.cfNeck)
@@ -41,7 +39,6 @@ export function frontWithPrimaryAt600(part) {
.line(points.hps)
.curve_(points.hpsCp2, points.secondaryBustDart1)
.noop('secondary')
- break
case 1130:
return new Path()
.move(points.cfNeck)
@@ -54,7 +51,6 @@ export function frontWithPrimaryAt600(part) {
.line(points.hps)
.noop('secondary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1200:
return new Path()
.move(points.cfNeck)
@@ -68,7 +64,6 @@ export function frontWithPrimaryAt600(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1230:
return new Path()
.move(points.cfNeck)
@@ -81,7 +76,6 @@ export function frontWithPrimaryAt600(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -94,7 +88,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -107,7 +100,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -123,7 +115,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -136,7 +127,6 @@ export function frontWithPrimaryAt600(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-700.mjs b/designs/breanna/src/front-primary-700.mjs
index 73ef1bfee89..68a32fa1f09 100644
--- a/designs/breanna/src/front-primary-700.mjs
+++ b/designs/breanna/src/front-primary-700.mjs
@@ -15,7 +15,6 @@ export function frontWithPrimaryAt700(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1100:
return new Path()
.move(points.cfNeck)
@@ -27,7 +26,6 @@ export function frontWithPrimaryAt700(part) {
.line(points.hps)
.curve_(points.hpsCp2, points.secondaryBustDart1)
.noop('secondary')
- break
case 1130:
return new Path()
.move(points.cfNeck)
@@ -39,7 +37,6 @@ export function frontWithPrimaryAt700(part) {
.line(points.hps)
.noop('secondary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1200:
return new Path()
.move(points.cfNeck)
@@ -52,7 +49,6 @@ export function frontWithPrimaryAt700(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1230:
return new Path()
.move(points.cfNeck)
@@ -64,7 +60,6 @@ export function frontWithPrimaryAt700(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -76,7 +71,6 @@ export function frontWithPrimaryAt700(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -88,7 +82,6 @@ export function frontWithPrimaryAt700(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -103,7 +96,6 @@ export function frontWithPrimaryAt700(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -115,7 +107,6 @@ export function frontWithPrimaryAt700(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-800.mjs b/designs/breanna/src/front-primary-800.mjs
index 559f29b85f4..26aa38bc456 100644
--- a/designs/breanna/src/front-primary-800.mjs
+++ b/designs/breanna/src/front-primary-800.mjs
@@ -16,7 +16,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1100:
return new Path()
.move(points.secondaryBustDart1)
@@ -30,7 +29,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.secondaryBustDart1)
- break
case 1130:
return new Path()
.move(points.cfNeck)
@@ -44,7 +42,6 @@ export function frontWithPrimaryAt800(part) {
.line(points.hps)
.noop('secondary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1200:
return new Path()
.move(points.cfNeck)
@@ -58,7 +55,6 @@ export function frontWithPrimaryAt800(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1230:
return new Path()
.move(points.cfNeck)
@@ -71,7 +67,6 @@ export function frontWithPrimaryAt800(part) {
.noop('secondary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -84,7 +79,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -97,7 +91,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -113,7 +106,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1700:
return new Path()
.move(points.cfNeck)
@@ -126,7 +118,6 @@ export function frontWithPrimaryAt800(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
default:
return new Path()
}
diff --git a/designs/breanna/src/front-primary-only.mjs b/designs/breanna/src/front-primary-only.mjs
index d7384beba2d..ce1bb8ff1d1 100644
--- a/designs/breanna/src/front-primary-only.mjs
+++ b/designs/breanna/src/front-primary-only.mjs
@@ -13,7 +13,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 700:
return new Path()
.move(points.cfNeck)
@@ -24,7 +23,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 800:
case 900:
case 1000:
@@ -38,7 +36,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1100:
return new Path()
.move(points.primaryBustDart1)
@@ -50,7 +47,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.primaryBustDart1)
- break
case 1130:
return new Path()
.move(points.cfNeck)
@@ -62,7 +58,6 @@ export function frontWithPrimaryOnly(part) {
.line(points.hps)
.noop('primary')
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1200:
case 1230:
return new Path()
@@ -75,7 +70,6 @@ export function frontWithPrimaryOnly(part) {
.noop('primary')
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1300:
return new Path()
.move(points.cfNeck)
@@ -87,7 +81,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1330:
return new Path()
.move(points.cfNeck)
@@ -99,7 +92,6 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
case 1400:
case 1500:
case 1600:
@@ -114,6 +106,5 @@ export function frontWithPrimaryOnly(part) {
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
.line(points.hps)
.curve_(points.hpsCp2, points.cfNeck)
- break
}
}
diff --git a/designs/brian/.eslintrc.yml b/designs/brian/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/brian/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/brian/README.md b/designs/brian/README.md
index 279be734d2c..d8a9f85f402 100644
--- a/designs/brian/README.md
+++ b/designs/brian/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/brian/package.json b/designs/brian/package.json
index 2436dda9c6d..b711babd334 100644
--- a/designs/brian/package.json
+++ b/designs/brian/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
diff --git a/designs/bruce/.eslintrc.yml b/designs/bruce/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/bruce/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/bruce/README.md b/designs/bruce/README.md
index 75013a290ea..9a7ae862a4d 100644
--- a/designs/bruce/README.md
+++ b/designs/bruce/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/bruce/package.json b/designs/bruce/package.json
index 6bb8378b47b..c7ca4efbe4a 100644
--- a/designs/bruce/package.json
+++ b/designs/bruce/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/carlita/.eslintrc.yml b/designs/carlita/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/carlita/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/carlita/README.md b/designs/carlita/README.md
index a52441988b4..c44d5fd9186 100644
--- a/designs/carlita/README.md
+++ b/designs/carlita/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/carlita/package.json b/designs/carlita/package.json
index 5e807fe392c..99a4d5d3230 100644
--- a/designs/carlita/package.json
+++ b/designs/carlita/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/carlton/.eslintrc.yml b/designs/carlton/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/carlton/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/carlton/README.md b/designs/carlton/README.md
index d808e589e8a..d7e2dae9f0f 100644
--- a/designs/carlton/README.md
+++ b/designs/carlton/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/carlton/package.json b/designs/carlton/package.json
index 5bdcdf95ebf..ada6ebf16ce 100644
--- a/designs/carlton/package.json
+++ b/designs/carlton/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
diff --git a/designs/cathrin/.eslintrc.yml b/designs/cathrin/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/cathrin/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/cathrin/README.md b/designs/cathrin/README.md
index c43ad8b0a65..b0c4eb8a301 100644
--- a/designs/cathrin/README.md
+++ b/designs/cathrin/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/cathrin/package.json b/designs/cathrin/package.json
index e238e4d4d04..31ddf602026 100644
--- a/designs/cathrin/package.json
+++ b/designs/cathrin/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/charlie/.eslintrc.yml b/designs/charlie/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/charlie/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/charlie/README.md b/designs/charlie/README.md
index b30941c41aa..d047473f48e 100644
--- a/designs/charlie/README.md
+++ b/designs/charlie/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/charlie/package.json b/designs/charlie/package.json
index 4605ee60003..08403cd93ff 100644
--- a/designs/charlie/package.json
+++ b/designs/charlie/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/cornelius/.eslintrc.yml b/designs/cornelius/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/cornelius/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/cornelius/README.md b/designs/cornelius/README.md
index 42664649fed..f6f18e4a7dc 100644
--- a/designs/cornelius/README.md
+++ b/designs/cornelius/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/cornelius/package.json b/designs/cornelius/package.json
index 7d0854871fe..acd309a4947 100644
--- a/designs/cornelius/package.json
+++ b/designs/cornelius/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/diana/.eslintrc.yml b/designs/diana/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/diana/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/diana/README.md b/designs/diana/README.md
index d65bbe876cc..af24e397399 100644
--- a/designs/diana/README.md
+++ b/designs/diana/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/diana/package.json b/designs/diana/package.json
index 7b69f050580..4466373a859 100644
--- a/designs/diana/package.json
+++ b/designs/diana/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/examples/.eslintrc.js b/designs/examples/.eslintrc.js
deleted file mode 100644
index ee6effdccbd..00000000000
--- a/designs/examples/.eslintrc.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: "standard"
-};
diff --git a/designs/examples/.eslintrc.yml b/designs/examples/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/examples/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/examples/README.md b/designs/examples/README.md
index 8fdf261e438..31fba58bc1f 100644
--- a/designs/examples/README.md
+++ b/designs/examples/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/examples/package.json b/designs/examples/package.json
index 7e7e48321d3..fcde9914e9b 100644
--- a/designs/examples/package.json
+++ b/designs/examples/package.json
@@ -33,6 +33,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/examples/src/settings.mjs b/designs/examples/src/settings.mjs
index 686351ed158..a8ffe9ea574 100644
--- a/designs/examples/src/settings.mjs
+++ b/designs/examples/src/settings.mjs
@@ -1,6 +1,6 @@
export const settings_sa = {
name: 'examples.settings_sa',
- draft: ({ Point, points, Path, path, part }) => {
+ draft: ({ Point, points, Path, paths, part }) => {
points.A = new Point(45, 60)
points.B = new Point(10, 30)
points.BCp2 = new Point(40, 20)
diff --git a/designs/florence/.eslintrc.yml b/designs/florence/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/florence/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/florence/README.md b/designs/florence/README.md
index 523b3970e97..9b5feb779e9 100644
--- a/designs/florence/README.md
+++ b/designs/florence/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/florence/package.json b/designs/florence/package.json
index 7ff9a0afae1..855da864377 100644
--- a/designs/florence/package.json
+++ b/designs/florence/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/florent/.eslintrc.yml b/designs/florent/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/florent/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/florent/README.md b/designs/florent/README.md
index 080d80613b9..c0c87a8b434 100644
--- a/designs/florent/README.md
+++ b/designs/florent/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/florent/package.json b/designs/florent/package.json
index 63c67379b94..446776d2339 100644
--- a/designs/florent/package.json
+++ b/designs/florent/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/hi/.eslintrc.yml b/designs/hi/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/hi/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/hi/README.md b/designs/hi/README.md
index dc22e47d6eb..3b2457d82fb 100644
--- a/designs/hi/README.md
+++ b/designs/hi/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/hi/package.json b/designs/hi/package.json
index e206371e1b8..c66a0aff22a 100644
--- a/designs/hi/package.json
+++ b/designs/hi/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/hi/src/teeth.mjs b/designs/hi/src/teeth.mjs
index c11cf72981e..7909c77e8ad 100644
--- a/designs/hi/src/teeth.mjs
+++ b/designs/hi/src/teeth.mjs
@@ -10,9 +10,7 @@ export function createTeeth(pnts, toothCount, toothStartSize, toothEndSize, part
// Deconstruct what we need from the part via shorthand()
const { Path, points, Point, options } = part.shorthand()
- // These 4 points make up our cubic bezier curve which in turn is half of the mouth
- const [start, cp1, cp2, end] = pnts
-
+ // pnts holds 4 points that make up our cubic bezier curve which in turn is half of the mouth
// Create the Bezier object from the 4 points
const halfMouth = new Bezier(...pnts)
diff --git a/designs/holmes/.eslintrc.yml b/designs/holmes/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/holmes/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/holmes/README.md b/designs/holmes/README.md
index 0f41234249c..1c886f50dd8 100644
--- a/designs/holmes/README.md
+++ b/designs/holmes/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/holmes/package.json b/designs/holmes/package.json
index 752d63dd026..9e519f32386 100644
--- a/designs/holmes/package.json
+++ b/designs/holmes/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/hortensia/.eslintrc.yml b/designs/hortensia/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/hortensia/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/hortensia/README.md b/designs/hortensia/README.md
index 2dac046ad1c..94c53b5d385 100644
--- a/designs/hortensia/README.md
+++ b/designs/hortensia/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/hortensia/package.json b/designs/hortensia/package.json
index 17af680bfda..4a3811ef9d6 100644
--- a/designs/hortensia/package.json
+++ b/designs/hortensia/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/huey/.eslintrc.yml b/designs/huey/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/huey/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/huey/README.md b/designs/huey/README.md
index cc9bfa90b2c..d0ef01509eb 100644
--- a/designs/huey/README.md
+++ b/designs/huey/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/huey/package.json b/designs/huey/package.json
index aa87566633a..f81c448a38d 100644
--- a/designs/huey/package.json
+++ b/designs/huey/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/hugo/.eslintrc.yml b/designs/hugo/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/hugo/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/hugo/README.md b/designs/hugo/README.md
index e978d1a643e..d2b3e80ce92 100644
--- a/designs/hugo/README.md
+++ b/designs/hugo/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/hugo/package.json b/designs/hugo/package.json
index 40b541765ed..f65f1f2bac2 100644
--- a/designs/hugo/package.json
+++ b/designs/hugo/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/hugo/tests/shared.test.mjs b/designs/hugo/tests/shared.test.mjs
index 5ab3e0bf798..c941094d73a 100644
--- a/designs/hugo/tests/shared.test.mjs
+++ b/designs/hugo/tests/shared.test.mjs
@@ -10,7 +10,7 @@ import { testPatternDrafting } from '../../../tests/designs/drafting.mjs'
testPatternConfig(Hugo)
// Test drafting - Change the second parameter to `true` to log errors
-testPatternDrafting(Hugo, true)
+testPatternDrafting(Hugo, false)
// Test sampling - Change the second parameter to `true` to log errors
//testPatternSampling(Hugo, false)
diff --git a/designs/jaeger/.eslintrc.yml b/designs/jaeger/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/jaeger/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/jaeger/README.md b/designs/jaeger/README.md
index 55d140d75a7..d9618799946 100644
--- a/designs/jaeger/README.md
+++ b/designs/jaeger/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/jaeger/package.json b/designs/jaeger/package.json
index 6e6f34cf614..c7e23fee371 100644
--- a/designs/jaeger/package.json
+++ b/designs/jaeger/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/legend/.eslintrc.js b/designs/legend/.eslintrc.js
deleted file mode 100644
index 2ff6e0a1366..00000000000
--- a/designs/legend/.eslintrc.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: 'standard'
-}
diff --git a/designs/legend/.eslintrc.yml b/designs/legend/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/legend/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/legend/README.md b/designs/legend/README.md
index 6f7523e27dd..70cffff3854 100644
--- a/designs/legend/README.md
+++ b/designs/legend/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/legend/package.json b/designs/legend/package.json
index a539f42ea9b..9e43a2d4348 100644
--- a/designs/legend/package.json
+++ b/designs/legend/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/legend/src/bartack.mjs b/designs/legend/src/bartack.mjs
index f1acfca4645..9dda86d6193 100644
--- a/designs/legend/src/bartack.mjs
+++ b/designs/legend/src/bartack.mjs
@@ -1,7 +1,7 @@
import { box } from './shared.mjs'
import { pluginBundle } from '@freesewing/plugin-bundle'
-function legendBartack({ points, Point, paths, Path, macro, options, part }) {
+function legendBartack({ points, Point, macro, part }) {
points.bartack = new Point(40, 20).attr('data-text', 'bartack').attr('data-text-dy', -2)
macro('bartack', {
anchor: points.bartack,
diff --git a/designs/lucy/.eslintrc.yml b/designs/lucy/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/lucy/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/lucy/README.md b/designs/lucy/README.md
index 59723a50e4f..bcb1d29946c 100644
--- a/designs/lucy/README.md
+++ b/designs/lucy/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/lucy/package.json b/designs/lucy/package.json
index e0515b6a466..253833b33ba 100644
--- a/designs/lucy/package.json
+++ b/designs/lucy/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/lunetius/.eslintrc.yml b/designs/lunetius/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/lunetius/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/lunetius/README.md b/designs/lunetius/README.md
index d80d53f0486..14dca9b6522 100644
--- a/designs/lunetius/README.md
+++ b/designs/lunetius/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/lunetius/package.json b/designs/lunetius/package.json
index f8ebdaced5e..3d61cf9f129 100644
--- a/designs/lunetius/package.json
+++ b/designs/lunetius/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/noble/.eslintrc.yml b/designs/noble/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/noble/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/noble/README.md b/designs/noble/README.md
index 5ce97b4af6e..f46e6fcb08d 100644
--- a/designs/noble/README.md
+++ b/designs/noble/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/noble/package.json b/designs/noble/package.json
index dcef410dc61..8b03f70a342 100644
--- a/designs/noble/package.json
+++ b/designs/noble/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/octoplushy/.eslintrc.yml b/designs/octoplushy/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/octoplushy/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/octoplushy/README.md b/designs/octoplushy/README.md
index 9f29d40d010..8f0dbb31f79 100644
--- a/designs/octoplushy/README.md
+++ b/designs/octoplushy/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/octoplushy/package.json b/designs/octoplushy/package.json
index 527f4f67544..76f36d31188 100644
--- a/designs/octoplushy/package.json
+++ b/designs/octoplushy/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/paco/.eslintrc.yml b/designs/paco/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/paco/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/paco/README.md b/designs/paco/README.md
index 764b9f50918..637aba233e2 100644
--- a/designs/paco/README.md
+++ b/designs/paco/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/paco/package.json b/designs/paco/package.json
index 05ee8778d0d..cad3d27c5af 100644
--- a/designs/paco/package.json
+++ b/designs/paco/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/penelope/.eslintrc.yml b/designs/penelope/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/penelope/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/penelope/README.md b/designs/penelope/README.md
index 3b48b4374f3..72d33e77e78 100644
--- a/designs/penelope/README.md
+++ b/designs/penelope/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/penelope/package.json b/designs/penelope/package.json
index 4707e866c12..8ac80dffdc1 100644
--- a/designs/penelope/package.json
+++ b/designs/penelope/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/plugintest/.eslintrc.yml b/designs/plugintest/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/plugintest/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/plugintest/README.md b/designs/plugintest/README.md
index e6e7bbc71e7..e0ea6d9ab9b 100644
--- a/designs/plugintest/README.md
+++ b/designs/plugintest/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/plugintest/package.json b/designs/plugintest/package.json
index 9e1df3a7f42..764e1f56806 100644
--- a/designs/plugintest/package.json
+++ b/designs/plugintest/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/rendertest/.eslintrc.yml b/designs/rendertest/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/rendertest/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/rendertest/README.md b/designs/rendertest/README.md
index e0433a4755b..b75f185bcee 100644
--- a/designs/rendertest/README.md
+++ b/designs/rendertest/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/rendertest/package.json b/designs/rendertest/package.json
index 8fc10f62a80..16b46882d1e 100644
--- a/designs/rendertest/package.json
+++ b/designs/rendertest/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/rendertest/src/demo.mjs b/designs/rendertest/src/demo.mjs
index 22ad5c5570f..f70d92ef677 100644
--- a/designs/rendertest/src/demo.mjs
+++ b/designs/rendertest/src/demo.mjs
@@ -66,7 +66,7 @@ export const demo = {
},
}
-function addCircles({ Point, points, store, options }) {
+function addCircles({ Point, points, store, options, part }) {
if (options.only === 'circles') {
let y = store.get('y')
const w = store.get('w')
@@ -101,7 +101,7 @@ function addCircles({ Point, points, store, options }) {
return part
}
-function addColors({ Point, Path, points, paths, store, options }, demo = false) {
+function addColors({ Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'colors' || demo) {
let y = store.get('y')
const w = store.get('w')
@@ -134,7 +134,7 @@ function addColors({ Point, Path, points, paths, store, options }, demo = false)
return part
}
-function addCombos({ Point, Path, points, paths, store, options }, demo = false) {
+function addCombos({ Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'combos' || demo) {
let y = store.get('y')
const w = store.get('w')
@@ -175,7 +175,7 @@ function addCombos({ Point, Path, points, paths, store, options }, demo = false)
return part
}
-function addMacros({ macro, Point, Path, points, paths, store, options }, demo = false) {
+function addMacros({ macro, Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'macros' || demo) {
let y = store.get('y')
const w = store.get('w')
@@ -266,7 +266,7 @@ function addMacros({ macro, Point, Path, points, paths, store, options }, demo =
}
function addSnippets(
- { Point, Path, points, paths, snippets, Snippet, store, options },
+ { Point, Path, points, paths, snippets, Snippet, store, options, part },
demo = false
) {
if (options.only === 'snippets' || demo) {
@@ -331,7 +331,7 @@ function addSnippets(
return part
}
-function addStyles({ Point, Path, points, paths, store, options }, demo = false) {
+function addStyles({ Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'styles' || demo) {
let y = store.get('y')
const w = store.get('w')
@@ -364,7 +364,7 @@ function addStyles({ Point, Path, points, paths, store, options }, demo = false)
return part
}
-function addText({ Point, Path, points, paths, store, options }, demo = false) {
+function addText({ Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'text' || demo) {
let y = store.get('y')
const w = store.get('w')
@@ -438,7 +438,7 @@ function addText({ Point, Path, points, paths, store, options }, demo = false) {
return part
}
-function addWidths({ Point, Path, points, paths, store, options }, demo = false) {
+function addWidths({ Point, Path, points, paths, store, options, part }, demo = false) {
if (options.only === 'widths' || demo) {
let y = store.get('y')
const w = store.get('w')
diff --git a/designs/sandy/.eslintrc.yml b/designs/sandy/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/sandy/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/sandy/README.md b/designs/sandy/README.md
index 54f410c24c6..a9f861d2059 100644
--- a/designs/sandy/README.md
+++ b/designs/sandy/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/sandy/package.json b/designs/sandy/package.json
index c5aacc2b9b7..7c58145f8d9 100644
--- a/designs/sandy/package.json
+++ b/designs/sandy/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/shin/.eslintrc.yml b/designs/shin/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/shin/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/shin/README.md b/designs/shin/README.md
index 7112ae8a4af..a87eca50798 100644
--- a/designs/shin/README.md
+++ b/designs/shin/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/shin/package.json b/designs/shin/package.json
index 5f4ae102f05..5ed5ec40848 100644
--- a/designs/shin/package.json
+++ b/designs/shin/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/simon/.eslintrc.yml b/designs/simon/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/simon/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/simon/README.md b/designs/simon/README.md
index 3226c275139..90e03b06349 100644
--- a/designs/simon/README.md
+++ b/designs/simon/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/simon/package.json b/designs/simon/package.json
index 6bd39020e1b..1d30d32c05f 100644
--- a/designs/simon/package.json
+++ b/designs/simon/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
diff --git a/designs/simon/src/frontright-seamless.mjs b/designs/simon/src/frontright-seamless.mjs
index 71b350ca337..80d02d40d73 100644
--- a/designs/simon/src/frontright-seamless.mjs
+++ b/designs/simon/src/frontright-seamless.mjs
@@ -10,7 +10,7 @@ export const draftFrontRightSeamless = ({
complete,
paperless,
macro,
- option,
+ options,
part,
}) => {
const width = store.get('buttonPlacketWidth')
diff --git a/designs/simone/.eslintrc.yml b/designs/simone/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/simone/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/simone/README.md b/designs/simone/README.md
index 808531c208c..2e079191ee9 100644
--- a/designs/simone/README.md
+++ b/designs/simone/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/simone/package.json b/designs/simone/package.json
index 420169aeefa..8a5765f5c0f 100644
--- a/designs/simone/package.json
+++ b/designs/simone/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/sven/.eslintrc.yml b/designs/sven/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/sven/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/sven/README.md b/designs/sven/README.md
index 639f001bfcc..ce5bb9d728a 100644
--- a/designs/sven/README.md
+++ b/designs/sven/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/sven/package.json b/designs/sven/package.json
index 9bc1fcbfbc4..1888365186d 100644
--- a/designs/sven/package.json
+++ b/designs/sven/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/sven/src/cuff.mjs b/designs/sven/src/cuff.mjs
index f165ead7e0b..04550a42d1f 100644
--- a/designs/sven/src/cuff.mjs
+++ b/designs/sven/src/cuff.mjs
@@ -3,7 +3,7 @@ import { ribbing } from './frontback.mjs'
import { sleeve } from './sleeve.mjs'
function svenCuff(params) {
- const { measurements, sa, points, complete, paperless, macro, options, part } = params
+ const { measurements, sa, points, complete, macro, options, part } = params
if (!options.ribbing) return part
const length = measurements.wrist * (1 + options.cuffEase) * (1 - options.ribbingStretch)
@@ -21,10 +21,6 @@ function svenCuff(params) {
}
}
- // Paperless?
- if (paperless) {
- }
-
return part
}
diff --git a/designs/sven/src/waistband.mjs b/designs/sven/src/waistband.mjs
index f2c21b5c97d..6d830a4e298 100644
--- a/designs/sven/src/waistband.mjs
+++ b/designs/sven/src/waistband.mjs
@@ -3,7 +3,7 @@ import { ribbing, hipsEase } from './frontback.mjs'
import { ribbingStretch } from './cuff.mjs'
function svenWaistband(params) {
- const { measurements, sa, points, complete, paperless, macro, options, part } = params
+ const { measurements, points, complete, macro, options, part } = params
if (!options.ribbing) return part
@@ -17,14 +17,8 @@ function svenWaistband(params) {
nr: 4,
title: 'waistband',
})
- if (sa) {
- // FIXME: Don't we need SA here?
- }
}
- // Paperless?
- if (paperless) {
- }
return part
}
diff --git a/designs/tamiko/.eslintrc.yml b/designs/tamiko/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/tamiko/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/tamiko/README.md b/designs/tamiko/README.md
index b16bb91ce8c..6498633b60d 100644
--- a/designs/tamiko/README.md
+++ b/designs/tamiko/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/tamiko/package.json b/designs/tamiko/package.json
index b51e4121271..f5c02fda59c 100644
--- a/designs/tamiko/package.json
+++ b/designs/tamiko/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/teagan/.eslintrc.yml b/designs/teagan/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/teagan/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/teagan/README.md b/designs/teagan/README.md
index 35b1566fb00..33eba9e35ec 100644
--- a/designs/teagan/README.md
+++ b/designs/teagan/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/teagan/package.json b/designs/teagan/package.json
index c647a591f12..11b0e36772d 100644
--- a/designs/teagan/package.json
+++ b/designs/teagan/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/tiberius/.eslintrc.yml b/designs/tiberius/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/tiberius/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/tiberius/README.md b/designs/tiberius/README.md
index dc209903ea6..8d9c3f7eefe 100644
--- a/designs/tiberius/README.md
+++ b/designs/tiberius/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/tiberius/package.json b/designs/tiberius/package.json
index 5231cf595a1..7c57d3c0bb8 100644
--- a/designs/tiberius/package.json
+++ b/designs/tiberius/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/titan/.eslintrc.yml b/designs/titan/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/titan/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/titan/README.md b/designs/titan/README.md
index d93c0f0a5be..a804d2e7ba4 100644
--- a/designs/titan/README.md
+++ b/designs/titan/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/titan/package.json b/designs/titan/package.json
index 3ae9138c1eb..76b487da7c3 100644
--- a/designs/titan/package.json
+++ b/designs/titan/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
diff --git a/designs/trayvon/.eslintrc.yml b/designs/trayvon/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/trayvon/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/trayvon/README.md b/designs/trayvon/README.md
index b128d2e33f8..c7dbfd04207 100644
--- a/designs/trayvon/README.md
+++ b/designs/trayvon/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/trayvon/package.json b/designs/trayvon/package.json
index 2b227250485..2a8e4510801 100644
--- a/designs/trayvon/package.json
+++ b/designs/trayvon/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/trayvon/src/fabric.mjs b/designs/trayvon/src/fabric.mjs
index aa5b3d56307..6418fe6fe53 100644
--- a/designs/trayvon/src/fabric.mjs
+++ b/designs/trayvon/src/fabric.mjs
@@ -23,7 +23,7 @@ function trayvonFabricTail(params) {
rotation: -90,
})
- if (sa) seamAllowance(part, 'fabric')
+ if (sa) seamAllowance(params, 'fabric')
}
// Paperless?
@@ -80,12 +80,12 @@ function trayvonFabricTip(params) {
points.logo = points.tip.shiftFractionTowards(points.mid, 0.4)
snippets.logo = new Snippet('logo', points.logo)
- if (sa) seamAllowance(part, 'fabric')
+ if (sa) seamAllowance(params, 'fabric')
}
// Paperless?
if (paperless) {
- tieShapeDimensions(part)
+ tieShapeDimensions(params)
macro('ld', {
from: points.tip,
to: points.notch1,
diff --git a/designs/trayvon/src/interfacing.mjs b/designs/trayvon/src/interfacing.mjs
index 33cffa041fd..fc9fbf89c4c 100644
--- a/designs/trayvon/src/interfacing.mjs
+++ b/designs/trayvon/src/interfacing.mjs
@@ -51,7 +51,7 @@ function trayvonInterfacingTip(params) {
// Paperless?
if (paperless) {
- tieShapeDimensions(part)
+ tieShapeDimensions(params)
paths.n45 = new Path()
.move(points.midLeft)
.line(points.midRight)
diff --git a/designs/trayvon/src/lining.mjs b/designs/trayvon/src/lining.mjs
index 33736ca44b9..4acbfe7c484 100644
--- a/designs/trayvon/src/lining.mjs
+++ b/designs/trayvon/src/lining.mjs
@@ -51,11 +51,11 @@ function trayvonLiningTail(params) {
})
snippets.notch = new Snippet('notch', points.tip)
- if (sa) seamAllowance(part, 'lining')
+ if (sa) seamAllowance(params, 'lining')
}
// Paperless?
- if (paperless) tieShapeDimensions(part, true)
+ if (paperless) tieShapeDimensions(params, true)
return params.part
}
@@ -103,12 +103,12 @@ function trayvonLiningTip(params) {
snippets.notch = new Snippet('notch', points.tip)
macro('miniscale', { at: points.gridAnchor })
- if (sa) seamAllowance(part, 'lining')
+ if (sa) seamAllowance(params, 'lining')
}
// Paperless?
if (paperless) {
- tieShapeDimensions(part, true)
+ tieShapeDimensions(params, true)
}
return params.part
diff --git a/designs/tutorial/.eslintrc.yml b/designs/tutorial/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/tutorial/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/tutorial/README.md b/designs/tutorial/README.md
index 1a93f1be64a..492336b6e5f 100644
--- a/designs/tutorial/README.md
+++ b/designs/tutorial/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/tutorial/package.json b/designs/tutorial/package.json
index 4c865e211b4..da89cdc8ff1 100644
--- a/designs/tutorial/package.json
+++ b/designs/tutorial/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/ursula/.eslintrc.yml b/designs/ursula/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/ursula/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/ursula/README.md b/designs/ursula/README.md
index 2ad32077e1b..3396a0775a5 100644
--- a/designs/ursula/README.md
+++ b/designs/ursula/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/ursula/package.json b/designs/ursula/package.json
index 608f1d81105..aff567ddb34 100644
--- a/designs/ursula/package.json
+++ b/designs/ursula/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
diff --git a/designs/wahid/.eslintrc.yml b/designs/wahid/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/wahid/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/wahid/README.md b/designs/wahid/README.md
index d22924e0b67..f217f0138bd 100644
--- a/designs/wahid/README.md
+++ b/designs/wahid/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/wahid/package.json b/designs/wahid/package.json
index b6bb298aaa7..e214855db3d 100644
--- a/designs/wahid/package.json
+++ b/designs/wahid/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/walburga/.eslintrc.yml b/designs/walburga/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/walburga/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/walburga/README.md b/designs/walburga/README.md
index 823feb9810a..7c44b4d5632 100644
--- a/designs/walburga/README.md
+++ b/designs/walburga/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/walburga/package.json b/designs/walburga/package.json
index 2c0812e9add..52fe962aa1b 100644
--- a/designs/walburga/package.json
+++ b/designs/walburga/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/walburga/src/front.mjs b/designs/walburga/src/front.mjs
index 25b8adee08f..b867ae35966 100644
--- a/designs/walburga/src/front.mjs
+++ b/designs/walburga/src/front.mjs
@@ -36,10 +36,12 @@ function walburgaFront({
// checks to ensure that neck opening does not become too small
if (neckotop < measurements.neck / 4) {
- ;(neckotop = measurements.neck / 4), (neckomid = (2 * measurements.neck) / 4 / goldenRatio)
+ neckotop = measurements.neck / 4
+ neckomid = (2 * measurements.neck) / 4 / goldenRatio
}
if (neckomid < measurements.neck / 4) {
- ;(neckomid = measurements.neck / 4), (neckotop = ((measurements.neck / 4) * goldenRatio) / 2)
+ neckomid = measurements.neck / 4
+ neckotop = ((measurements.neck / 4) * goldenRatio) / 2
}
points.neckotop = points.top.shift(0, -neckotop)
diff --git a/designs/waralee/.eslintrc.yml b/designs/waralee/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/waralee/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/waralee/README.md b/designs/waralee/README.md
index 68caf4b8629..1a555547b4a 100644
--- a/designs/waralee/README.md
+++ b/designs/waralee/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/waralee/package.json b/designs/waralee/package.json
index 42b94876f9e..f209a018505 100644
--- a/designs/waralee/package.json
+++ b/designs/waralee/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/designs/waralee/src/waistband.mjs b/designs/waralee/src/waistband.mjs
index afc8698ea3b..97f4c5816e7 100644
--- a/designs/waralee/src/waistband.mjs
+++ b/designs/waralee/src/waistband.mjs
@@ -26,7 +26,6 @@ function waraleeWaistband(type, {
let strapLength = measurements.waist + measurements.crotchDepth * 1.75
let partNr = 0
- let partN = 0
switch (type) {
case 'waistBandFront':
diff --git a/designs/yuri/.eslintrc.yml b/designs/yuri/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/designs/yuri/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/designs/yuri/README.md b/designs/yuri/README.md
index 25aedc69e77..43a6feb930a 100644
--- a/designs/yuri/README.md
+++ b/designs/yuri/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/designs/yuri/package.json b/designs/yuri/package.json
index 2a9b0faef9b..3658dae665a 100644
--- a/designs/yuri/package.json
+++ b/designs/yuri/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
diff --git a/package.json b/package.json
index 21241389e12..ee66e897d98 100644
--- a/package.json
+++ b/package.json
@@ -24,6 +24,7 @@
"buildall": "lerna run cibuild_step0 && lerna run cibuild_step1 && lerna run cibuild_step2 && lerna run cibuild_step3 && lerna run cibuild_step4 && lerna run cibuild_step5 && lerna run cibuild_step6 && lerna run cibuild_step7",
"build": "yarn buildall",
"testall": "node scripts/testall.js",
+ "lint": "lerna run lint",
"release": "lerna exec --no-bail -- npm publish",
"postrelease": "git add . && git commit -m ':bookmark: v$npm_package_version' && git tag -a v$npm_package_version -m ':bookmark: FreeSewing v$npm_package_version'",
"ship": "lerna exec --no-bail -- npm publish",
diff --git a/packages/core/.eslintrc.yml b/packages/core/.eslintrc.yml
index 65fc7c1cd82..62bd3935b76 100644
--- a/packages/core/.eslintrc.yml
+++ b/packages/core/.eslintrc.yml
@@ -10,3 +10,6 @@ rules: {}
globals:
it: readonly
describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/core/README.md b/packages/core/README.md
index 397d15bd167..acc96a03964 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/core/package.json b/packages/core/package.json
index c484952313a..d0840959483 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -39,10 +39,10 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"report": "c8 report",
"testci": "mocha tests/*.test.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
- "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"cibuild_step0": "node build.mjs"
},
"peerDependencies": {},
diff --git a/packages/i18n/.eslintrc.yml b/packages/i18n/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/i18n/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/i18n/README.md b/packages/i18n/README.md
index a6ccffea499..128a20d7004 100644
--- a/packages/i18n/README.md
+++ b/packages/i18n/README.md
@@ -199,136 +199,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/i18n/package.json b/packages/i18n/package.json
index 140ed52e7d2..045ddd717c0 100644
--- a/packages/i18n/package.json
+++ b/packages/i18n/package.json
@@ -35,6 +35,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prebuild": "node scripts/prebuilder.mjs",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"precibuild_step7": "node scripts/prebuilder.mjs",
diff --git a/packages/models/.eslintrc.yml b/packages/models/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/models/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/models/README.md b/packages/models/README.md
index 44459b902b4..6a9f841213d 100644
--- a/packages/models/README.md
+++ b/packages/models/README.md
@@ -194,136 +194,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/models/package.json b/packages/models/package.json
index f8785ced0a5..4338b5d2a1f 100644
--- a/packages/models/package.json
+++ b/packages/models/package.json
@@ -35,6 +35,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"cibuild_step6": "node build.mjs"
},
"peerDependencies": {
diff --git a/packages/new-design/.eslintrc.yml b/packages/new-design/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/new-design/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/new-design/README.md b/packages/new-design/README.md
index 8696868e154..d4362204ed9 100644
--- a/packages/new-design/README.md
+++ b/packages/new-design/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/new-design/package.json b/packages/new-design/package.json
index c7e7611ebb8..12e9d4733bb 100644
--- a/packages/new-design/package.json
+++ b/packages/new-design/package.json
@@ -27,6 +27,7 @@
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'lib/*.mjs'",
"cibuild_step6": "SITE=new-design/shared node ../../sites/shared/prebuild/i18n-only.mjs && cp ../../scripts/banner.mjs ./lib && node build.mjs"
},
"peerDependencies": {},
diff --git a/packages/prettier-config/.eslintrc.yml b/packages/prettier-config/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/prettier-config/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/prettier-config/README.md b/packages/prettier-config/README.md
index 5abeae9f14d..c43c9736e74 100644
--- a/packages/prettier-config/README.md
+++ b/packages/prettier-config/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/rehype-jargon/.eslintrc.yml b/packages/rehype-jargon/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/rehype-jargon/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/rehype-jargon/README.md b/packages/rehype-jargon/README.md
index a21cfcd85bb..6a5acc6bb84 100644
--- a/packages/rehype-jargon/README.md
+++ b/packages/rehype-jargon/README.md
@@ -273,136 +273,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/rehype-jargon/package.json b/packages/rehype-jargon/package.json
index a05019caab9..38025445ccb 100644
--- a/packages/rehype-jargon/package.json
+++ b/packages/rehype-jargon/package.json
@@ -31,6 +31,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs'",
"cibuild_step6": "node build.mjs"
},
"peerDependencies": {},
diff --git a/packages/snapseries/.eslintrc.yml b/packages/snapseries/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/packages/snapseries/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/packages/snapseries/README.md b/packages/snapseries/README.md
index c05e79cf48d..00901f0c3ef 100644
--- a/packages/snapseries/README.md
+++ b/packages/snapseries/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/packages/snapseries/package.json b/packages/snapseries/package.json
index 4fad8f62348..636e364e712 100644
--- a/packages/snapseries/package.json
+++ b/packages/snapseries/package.json
@@ -31,6 +31,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs'",
"cibuild_step0": "node build.mjs"
},
"peerDependencies": {},
diff --git a/plugins/plugin-banner/.eslintrc.yml b/plugins/plugin-banner/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-banner/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-banner/README.md b/plugins/plugin-banner/README.md
index 6af807039cd..25143f917a3 100644
--- a/plugins/plugin-banner/README.md
+++ b/plugins/plugin-banner/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-banner/package.json b/plugins/plugin-banner/package.json
index 71a14c885b9..54caa3e81df 100644
--- a/plugins/plugin-banner/package.json
+++ b/plugins/plugin-banner/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-bartack/.eslintrc.yml b/plugins/plugin-bartack/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-bartack/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-bartack/README.md b/plugins/plugin-bartack/README.md
index d6ddfac3aae..46f2cd0e68b 100644
--- a/plugins/plugin-bartack/README.md
+++ b/plugins/plugin-bartack/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-bartack/package.json b/plugins/plugin-bartack/package.json
index 37009375589..b52f626228c 100644
--- a/plugins/plugin-bartack/package.json
+++ b/plugins/plugin-bartack/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-bartack/tests/plugin.test.mjs b/plugins/plugin-bartack/tests/plugin.test.mjs
index 8ef1338402a..28826424a93 100644
--- a/plugins/plugin-bartack/tests/plugin.test.mjs
+++ b/plugins/plugin-bartack/tests/plugin.test.mjs
@@ -8,7 +8,7 @@ describe('Bartack plugin Tests', () => {
it('draws a default bartack from a point', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
@@ -38,7 +38,7 @@ describe('Bartack plugin Tests', () => {
it('draws a bartack along a path', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, Path, macro }) => {
points.from = new Point(10, 20)
points.to = new Point(10, 30)
macro('bartackAlong', {
@@ -69,7 +69,7 @@ describe('Bartack plugin Tests', () => {
it('can be called using the bartackFractionAlong syntax', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, Path, macro }) => {
points.from = new Point(10, 20)
points.to = new Point(10, 100)
macro('bartackAlong', {
@@ -102,7 +102,7 @@ describe('Bartack plugin Tests', () => {
it('can be called using the bartackFractionAlong syntax', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, Path, macro }) => {
points.from = new Point(10, 20)
points.to = new Point(10, 100)
macro('bartackFractionAlong', {
@@ -135,7 +135,7 @@ describe('Bartack plugin Tests', () => {
it('has configurable length', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
@@ -166,7 +166,7 @@ describe('Bartack plugin Tests', () => {
it('has configurable width', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
@@ -197,7 +197,7 @@ describe('Bartack plugin Tests', () => {
it('has configurable angle', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
@@ -228,7 +228,7 @@ describe('Bartack plugin Tests', () => {
it('has configurable suffix', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
@@ -246,7 +246,7 @@ describe('Bartack plugin Tests', () => {
it('has configurable prefix', function () {
const part = {
name: 'test',
- draft: ({ Point, points, Path, paths, macro }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
macro('bartack', {
anchor: points.from,
diff --git a/plugins/plugin-bundle/.eslintrc.yml b/plugins/plugin-bundle/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-bundle/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-bundle/README.md b/plugins/plugin-bundle/README.md
index 3cf51565eba..37fd8973b32 100644
--- a/plugins/plugin-bundle/README.md
+++ b/plugins/plugin-bundle/README.md
@@ -176,136 +176,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-bundle/package.json b/plugins/plugin-bundle/package.json
index f39ffd59532..4501a11c31b 100644
--- a/plugins/plugin-bundle/package.json
+++ b/plugins/plugin-bundle/package.json
@@ -39,6 +39,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step2": "node build.mjs"
diff --git a/plugins/plugin-bust/.eslintrc.yml b/plugins/plugin-bust/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-bust/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-bust/README.md b/plugins/plugin-bust/README.md
index 43020d1d9e5..899b8979db0 100644
--- a/plugins/plugin-bust/README.md
+++ b/plugins/plugin-bust/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-bust/package.json b/plugins/plugin-bust/package.json
index 8e1c573cd98..0212282a481 100644
--- a/plugins/plugin-bust/package.json
+++ b/plugins/plugin-bust/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-buttons/.eslintrc.yml b/plugins/plugin-buttons/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-buttons/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-buttons/README.md b/plugins/plugin-buttons/README.md
index d522ec4180a..97b4b6cfdb6 100644
--- a/plugins/plugin-buttons/README.md
+++ b/plugins/plugin-buttons/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-buttons/package.json b/plugins/plugin-buttons/package.json
index bfa152e7187..91084195838 100644
--- a/plugins/plugin-buttons/package.json
+++ b/plugins/plugin-buttons/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-cutlist/.eslintrc.yml b/plugins/plugin-cutlist/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-cutlist/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-cutlist/README.md b/plugins/plugin-cutlist/README.md
index 0af87e1dfca..efbba35afb8 100644
--- a/plugins/plugin-cutlist/README.md
+++ b/plugins/plugin-cutlist/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-cutlist/package.json b/plugins/plugin-cutlist/package.json
index c9201741574..1f5cfc1f680 100644
--- a/plugins/plugin-cutlist/package.json
+++ b/plugins/plugin-cutlist/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-cutlist/src/index.mjs b/plugins/plugin-cutlist/src/index.mjs
index a6f701a77e7..f40a9e1dd8d 100644
--- a/plugins/plugin-cutlist/src/index.mjs
+++ b/plugins/plugin-cutlist/src/index.mjs
@@ -1,4 +1,4 @@
-import { name, version } from '../package.json'
+import { name, version } from '../data.mjs'
import { Point } from '@freesewing/core'
export const plugin = {
diff --git a/plugins/plugin-cutlist/tests/plugin.test.mjs b/plugins/plugin-cutlist/tests/plugin.test.mjs
index 489f8d1a774..fcee17d38e3 100644
--- a/plugins/plugin-cutlist/tests/plugin.test.mjs
+++ b/plugins/plugin-cutlist/tests/plugin.test.mjs
@@ -25,7 +25,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should handle addCut() with defaults', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ addCut }) => {
addCut()
},
}
@@ -39,7 +39,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should handle addCut() with non-defaults', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ addCut }) => {
addCut(3, 'lining', true)
},
}
@@ -53,7 +53,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should remove cut info via addCut(false)', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ addCut }) => {
addCut(2, 'fabric')
addCut(4, 'lining', true)
addCut(false, 'lining')
@@ -68,7 +68,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should remove cut info for a material via removeCut()', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ addCut, removeCut }) => {
addCut(2, 'fabric')
addCut(4, 'lining', true)
removeCut('lining')
@@ -84,7 +84,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should remove cut info for all materials via removeCut(true)', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ addCut, removeCut }) => {
addCut(2, 'fabric')
addCut(4, 'lining', true)
removeCut()
@@ -99,7 +99,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should set the grain via setGrain()', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ setGrain }) => {
setGrain(45)
},
}
@@ -112,7 +112,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should remove the grain via setGrain(false)', () => {
const part = {
name: 'example_part',
- draft: ({ addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ setGrain }) => {
setGrain(45)
setGrain(false)
},
@@ -126,7 +126,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should set the cutOnFold via setCutOnFold(p1, p2)', () => {
const part = {
name: 'example_part',
- draft: ({ Point, addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ Point, setCutOnFold }) => {
try {
setCutOnFold(new Point(2, 2), new Point(200, 200))
} catch (err) {
@@ -146,7 +146,7 @@ describe('Cutlist Plugin Tests', () => {
it('Should removet the cutOnFold via setCutOnFold(false)', () => {
const part = {
name: 'example_part',
- draft: ({ Point, addCut, removeCut, setGrain, setCutOnFold }) => {
+ draft: ({ Point, setCutOnFold }) => {
try {
setCutOnFold(new Point(2, 2), new Point(200, 200))
setCutOnFold(false)
diff --git a/plugins/plugin-cutonfold/.eslintrc.yml b/plugins/plugin-cutonfold/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-cutonfold/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-cutonfold/README.md b/plugins/plugin-cutonfold/README.md
index 6bdc49dfc6e..bfe918e86e9 100644
--- a/plugins/plugin-cutonfold/README.md
+++ b/plugins/plugin-cutonfold/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-cutonfold/package.json b/plugins/plugin-cutonfold/package.json
index 80e505ff8e1..eb5b2750644 100644
--- a/plugins/plugin-cutonfold/package.json
+++ b/plugins/plugin-cutonfold/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-dimension/.eslintrc.yml b/plugins/plugin-dimension/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-dimension/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-dimension/README.md b/plugins/plugin-dimension/README.md
index 2cd578c6cc5..413dad82fdc 100644
--- a/plugins/plugin-dimension/README.md
+++ b/plugins/plugin-dimension/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-dimension/package.json b/plugins/plugin-dimension/package.json
index ed4e9db834f..5d8574f1de2 100644
--- a/plugins/plugin-dimension/package.json
+++ b/plugins/plugin-dimension/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-dimension/src/index.mjs b/plugins/plugin-dimension/src/index.mjs
index 07a51f765e4..092aff47f4c 100644
--- a/plugins/plugin-dimension/src/index.mjs
+++ b/plugins/plugin-dimension/src/index.mjs
@@ -138,7 +138,7 @@ export const plugin = {
}
},
// Remove all dimensions (with standard prefix)
- rmad: function (so) {
+ rmad: function () {
for (let type of ['paths', 'points']) {
for (let id in this[type]) {
if (id.slice(0, prefix.length) === prefix) delete this[type][id]
diff --git a/plugins/plugin-flip/.eslintrc.yml b/plugins/plugin-flip/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-flip/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-flip/README.md b/plugins/plugin-flip/README.md
index 7987a5d4798..e3ed1f0753f 100644
--- a/plugins/plugin-flip/README.md
+++ b/plugins/plugin-flip/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-flip/package.json b/plugins/plugin-flip/package.json
index c1a4c10720b..b13eca87374 100644
--- a/plugins/plugin-flip/package.json
+++ b/plugins/plugin-flip/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-flip/tests/plugin.test.mjs b/plugins/plugin-flip/tests/plugin.test.mjs
index ae4ddb03f4f..fcba5409423 100644
--- a/plugins/plugin-flip/tests/plugin.test.mjs
+++ b/plugins/plugin-flip/tests/plugin.test.mjs
@@ -46,7 +46,7 @@ describe('Flip Plugin Tests', () => {
it('Should flip points in a part on their vertical axis', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.from = new Point(10, 20)
points.to = new Point(40, 230)
macro('flip', {})
@@ -63,7 +63,7 @@ describe('Flip Plugin Tests', () => {
it('Should flip points in a path on their vertical axis', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro, paths, Path }) => {
points.from = new Point(10, 20)
points.cp1 = new Point(40, 0)
points.cp2 = new Point(60, 30)
diff --git a/plugins/plugin-gore/.eslintrc.yml b/plugins/plugin-gore/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-gore/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-gore/README.md b/plugins/plugin-gore/README.md
index bdfb26bc285..8d8660af676 100644
--- a/plugins/plugin-gore/README.md
+++ b/plugins/plugin-gore/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-gore/package.json b/plugins/plugin-gore/package.json
index e2ede5952e1..d542b4a6cc0 100644
--- a/plugins/plugin-gore/package.json
+++ b/plugins/plugin-gore/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-gore/tests/plugin.test.mjs b/plugins/plugin-gore/tests/plugin.test.mjs
index 4dbe8a8a4ba..1ff95ff2b0f 100644
--- a/plugins/plugin-gore/tests/plugin.test.mjs
+++ b/plugins/plugin-gore/tests/plugin.test.mjs
@@ -8,7 +8,7 @@ describe('Gore Plugin Tests', () => {
it('Should create a default gore', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.anchorPoint = new Point(50, 50)
macro('gore', {
from: points.anchorPoint,
@@ -33,7 +33,7 @@ describe('Gore Plugin Tests', () => {
it('Should use a configurable number of gores', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.anchorPoint = new Point(50, 50)
macro('gore', {
from: points.anchorPoint,
@@ -59,7 +59,7 @@ describe('Gore Plugin Tests', () => {
it('Should use a configurable extra length', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.anchorPoint = new Point(50, 50)
macro('gore', {
from: points.anchorPoint,
@@ -85,7 +85,7 @@ describe('Gore Plugin Tests', () => {
it('Should use a configurable radius', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.anchorPoint = new Point(50, 50)
macro('gore', {
from: points.anchorPoint,
@@ -111,7 +111,7 @@ describe('Gore Plugin Tests', () => {
it('Should generate a seam path', () => {
const part = {
name: 'test',
- draft: ({ Point, points, macro, paths, Path, snippets, Snippet }) => {
+ draft: ({ Point, points, macro }) => {
points.anchorPoint = new Point(50, 50)
macro('gore', {
from: points.anchorPoint,
diff --git a/plugins/plugin-grainline/.eslintrc.yml b/plugins/plugin-grainline/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-grainline/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-grainline/README.md b/plugins/plugin-grainline/README.md
index 602605067e6..4a146280d2e 100644
--- a/plugins/plugin-grainline/README.md
+++ b/plugins/plugin-grainline/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-grainline/package.json b/plugins/plugin-grainline/package.json
index 80fb7dd89f2..2684f8761ee 100644
--- a/plugins/plugin-grainline/package.json
+++ b/plugins/plugin-grainline/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-i18n/.eslintrc.yml b/plugins/plugin-i18n/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-i18n/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-i18n/README.md b/plugins/plugin-i18n/README.md
index afa8a6ddd25..738620d517a 100644
--- a/plugins/plugin-i18n/README.md
+++ b/plugins/plugin-i18n/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-i18n/package.json b/plugins/plugin-i18n/package.json
index f7a6bd6ca88..64f40f3e060 100644
--- a/plugins/plugin-i18n/package.json
+++ b/plugins/plugin-i18n/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-logo/.eslintrc.yml b/plugins/plugin-logo/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-logo/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-logo/README.md b/plugins/plugin-logo/README.md
index 0fb697b7b49..a0f200441de 100644
--- a/plugins/plugin-logo/README.md
+++ b/plugins/plugin-logo/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-logo/package.json b/plugins/plugin-logo/package.json
index eabe77d0b1b..18927b95c6c 100644
--- a/plugins/plugin-logo/package.json
+++ b/plugins/plugin-logo/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-measurements/.eslintrc.yml b/plugins/plugin-measurements/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-measurements/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-measurements/README.md b/plugins/plugin-measurements/README.md
index 9272d7ef720..eb7532039e1 100644
--- a/plugins/plugin-measurements/README.md
+++ b/plugins/plugin-measurements/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-measurements/package.json b/plugins/plugin-measurements/package.json
index 70deb178014..eb213135b30 100644
--- a/plugins/plugin-measurements/package.json
+++ b/plugins/plugin-measurements/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-measurements/tests/plugin.test.mjs b/plugins/plugin-measurements/tests/plugin.test.mjs
index 7082209b513..299b6e70243 100644
--- a/plugins/plugin-measurements/tests/plugin.test.mjs
+++ b/plugins/plugin-measurements/tests/plugin.test.mjs
@@ -15,7 +15,7 @@ const measurements = {
const part = {
name: 'test',
- draft: ({ points, Point, macro }) => {
+ draft: ({ points, Point }) => {
points.from = new Point(10, 20)
points.to = new Point(10, 230)
},
@@ -35,7 +35,6 @@ describe('Measurements Plugin Tests', () => {
})
it('Should calculate seatFront from seat and seatBack', function () {
- const config = { measurements: {} }
const testPattern = new Design({
measurements: {},
plugins: [plugin],
@@ -48,7 +47,6 @@ describe('Measurements Plugin Tests', () => {
})
it('Should calculate waistFrontArc and waistBackArc from waist and waistBack', function () {
- const config = { measurements: {} }
const testPattern = new Design({
measurements: {},
plugins: [plugin],
@@ -62,7 +60,6 @@ describe('Measurements Plugin Tests', () => {
})
it('Should calculate crossSeamBack from crossSeam and crossSeamFront', function () {
- const config = { measurements: {} }
const testPattern = new Design({
measurements: {},
plugins: [plugin],
diff --git a/plugins/plugin-mirror/.eslintrc.yml b/plugins/plugin-mirror/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-mirror/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-mirror/README.md b/plugins/plugin-mirror/README.md
index fef0e5570ae..e9f317d65d6 100644
--- a/plugins/plugin-mirror/README.md
+++ b/plugins/plugin-mirror/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-mirror/package.json b/plugins/plugin-mirror/package.json
index c38be91eecf..732dc1c4bd3 100644
--- a/plugins/plugin-mirror/package.json
+++ b/plugins/plugin-mirror/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-mirror/src/index.mjs b/plugins/plugin-mirror/src/index.mjs
index 7aaf7b1d554..92524990314 100644
--- a/plugins/plugin-mirror/src/index.mjs
+++ b/plugins/plugin-mirror/src/index.mjs
@@ -38,7 +38,7 @@ export const plugin = {
const ops = ['from', 'to', 'cp1', 'cp2']
if (paths !== null) {
- paths.forEach((path, i) => {
+ paths.forEach((path) => {
// Try to find point name from path by looking in list of all points
let foundId = null
for (let id of Object.keys(this.paths)) {
@@ -60,7 +60,7 @@ export const plugin = {
// Iterate over all possible path op points and clone/move point
const pathOp = path.ops[op][type]
if (typeof pathOp !== 'undefined') {
- ;[pathOp.x, pathOp.y] = mirrorPoint(pathOp)
+ [pathOp.x, pathOp.y] = mirrorPoint(pathOp)
pathOp.attributes.set('mirrored', true)
}
}
@@ -85,7 +85,7 @@ export const plugin = {
this.points[`${prefix}${capFirst(foundId)}`] = point
}
}
- ;[point.x, point.y] = mirrorPoint(point)
+ [point.x, point.y] = mirrorPoint(point)
point.attributes.set('mirrored', true)
})
}
diff --git a/plugins/plugin-notches/.eslintrc.yml b/plugins/plugin-notches/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-notches/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-notches/README.md b/plugins/plugin-notches/README.md
index 15c18ee9461..213b1ffbcfb 100644
--- a/plugins/plugin-notches/README.md
+++ b/plugins/plugin-notches/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-notches/package.json b/plugins/plugin-notches/package.json
index 2a139d47dfa..541e14cb917 100644
--- a/plugins/plugin-notches/package.json
+++ b/plugins/plugin-notches/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-round/.eslintrc.yml b/plugins/plugin-round/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-round/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-round/README.md b/plugins/plugin-round/README.md
index e1e612cbbc0..99098ac0765 100644
--- a/plugins/plugin-round/README.md
+++ b/plugins/plugin-round/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-round/package.json b/plugins/plugin-round/package.json
index 851c86a889e..a6710159788 100644
--- a/plugins/plugin-round/package.json
+++ b/plugins/plugin-round/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-scalebox/.eslintrc.yml b/plugins/plugin-scalebox/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-scalebox/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-scalebox/README.md b/plugins/plugin-scalebox/README.md
index 76e85610209..f2b9b827a3f 100644
--- a/plugins/plugin-scalebox/README.md
+++ b/plugins/plugin-scalebox/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-scalebox/package.json b/plugins/plugin-scalebox/package.json
index 75995481a14..2a643f3cc39 100644
--- a/plugins/plugin-scalebox/package.json
+++ b/plugins/plugin-scalebox/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-sprinkle/.eslintrc.yml b/plugins/plugin-sprinkle/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-sprinkle/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-sprinkle/README.md b/plugins/plugin-sprinkle/README.md
index 87cfe8335bf..e6f31f7be1c 100644
--- a/plugins/plugin-sprinkle/README.md
+++ b/plugins/plugin-sprinkle/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-sprinkle/package.json b/plugins/plugin-sprinkle/package.json
index 96c053789ae..0bfe6fc8870 100644
--- a/plugins/plugin-sprinkle/package.json
+++ b/plugins/plugin-sprinkle/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-svgattr/.eslintrc.yml b/plugins/plugin-svgattr/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-svgattr/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-svgattr/README.md b/plugins/plugin-svgattr/README.md
index ec0fb6b0e2a..600cd8facc4 100644
--- a/plugins/plugin-svgattr/README.md
+++ b/plugins/plugin-svgattr/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-svgattr/package.json b/plugins/plugin-svgattr/package.json
index 47461abb1a3..a2a9d1b7b75 100644
--- a/plugins/plugin-svgattr/package.json
+++ b/plugins/plugin-svgattr/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-theme/.eslintrc.yml b/plugins/plugin-theme/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-theme/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-theme/README.md b/plugins/plugin-theme/README.md
index b98f453fba6..3561065017d 100644
--- a/plugins/plugin-theme/README.md
+++ b/plugins/plugin-theme/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-theme/package.json b/plugins/plugin-theme/package.json
index 32704a4eebb..2b5ac9d734e 100644
--- a/plugins/plugin-theme/package.json
+++ b/plugins/plugin-theme/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-title/.eslintrc.yml b/plugins/plugin-title/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-title/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-title/README.md b/plugins/plugin-title/README.md
index 0dd3ac81909..350c72fd69b 100644
--- a/plugins/plugin-title/README.md
+++ b/plugins/plugin-title/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-title/package.json b/plugins/plugin-title/package.json
index 6bd87f1e9cd..9455714f488 100644
--- a/plugins/plugin-title/package.json
+++ b/plugins/plugin-title/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-title/tests/plugin.test.mjs b/plugins/plugin-title/tests/plugin.test.mjs
index ffc517b56c7..a51e5126bc4 100644
--- a/plugins/plugin-title/tests/plugin.test.mjs
+++ b/plugins/plugin-title/tests/plugin.test.mjs
@@ -1,6 +1,6 @@
import chai from 'chai'
import { Design } from '@freesewing/core'
-import { plugin } from './dist/index.mjs'
+import { plugin } from '../src/index.mjs'
const expect = chai.expect
@@ -9,7 +9,7 @@ describe('Title Plugin Tests', () => {
const part = {
name: 'test',
draft: ({ points, Point, macro }) => {
- points.anchor = new pattern.Point(-12, -34)
+ points.anchor = new Point(-12, -34)
macro('title', {
at: points.anchor,
nr: 3,
@@ -47,7 +47,7 @@ describe('Title Plugin Tests', () => {
const part = {
name: 'test',
draft: ({ points, Point, macro }) => {
- points.anchor = new pattern.Point(-12, -34).attr('data-text', '#')
+ points.anchor = new Point(-12, -34).attr('data-text', '#')
macro('title', {
at: points.anchor,
nr: 3,
@@ -76,7 +76,7 @@ describe('Title Plugin Tests', () => {
const part = {
name: 'test',
draft: ({ points, Point, macro }) => {
- points.anchor = new pattern.Point(-12, -34).attr('data-text', '#')
+ points.anchor = new Point(-12, -34).attr('data-text', '#')
macro('title', {
at: points.anchor,
nr: 3,
diff --git a/plugins/plugin-versionfree-svg/.eslintrc.yml b/plugins/plugin-versionfree-svg/.eslintrc.yml
new file mode 100644
index 00000000000..62bd3935b76
--- /dev/null
+++ b/plugins/plugin-versionfree-svg/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+extends: eslint:recommended
+overrides: []
+parserOptions:
+ ecmaVersion: latest
+ sourceType: module
+rules: {}
+globals:
+ it: readonly
+ describe: readonly
+ process: readonly
+ __dirname: readonly
+
diff --git a/plugins/plugin-versionfree-svg/README.md b/plugins/plugin-versionfree-svg/README.md
index cff19ed61c3..0f6b0ea07ee 100644
--- a/plugins/plugin-versionfree-svg/README.md
+++ b/plugins/plugin-versionfree-svg/README.md
@@ -147,136 +147,138 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
diff --git a/plugins/plugin-versionfree-svg/package.json b/plugins/plugin-versionfree-svg/package.json
index 59da2539e19..cbf4cb37aa9 100644
--- a/plugins/plugin-versionfree-svg/package.json
+++ b/plugins/plugin-versionfree-svg/package.json
@@ -38,6 +38,7 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
+ "lint": "npx eslint 'src/*.mjs' 'tests/*.mjs'",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
diff --git a/plugins/plugin-versionfree-svg/src/index.mjs b/plugins/plugin-versionfree-svg/src/index.mjs
index dbee961c88c..7d06037c559 100644
--- a/plugins/plugin-versionfree-svg/src/index.mjs
+++ b/plugins/plugin-versionfree-svg/src/index.mjs
@@ -5,7 +5,7 @@ export const plugin = {
version,
hooks: {
preRender: function (svg) {
- for (const [key, val] of Object.entries(svg.attributes.list)) {
+ for (const key in svg.attributes.list) {
if (key.toLowerCase().slice(0, 10) === 'freesewing') delete svg.attributes.list[key]
}
},
diff --git a/scripts/reconfigure.mjs b/scripts/reconfigure.mjs
index ad272d6ad6b..bac9121789d 100644
--- a/scripts/reconfigure.mjs
+++ b/scripts/reconfigure.mjs
@@ -37,6 +37,7 @@ const repo = {
changelog: readTemplateFile('changelog.dflt.md'),
readme: readTemplateFile('readme.dflt.md'),
build: readTemplateFile('build.dflt.mjs'),
+ eslint: readTemplateFile('eslintrc.yml'),
pluginTests: readTemplateFile('plugin.test.mjs'),
designTests: readTemplateFile('design.test.mjs.mustache'),
data: readTemplateFile('data.dflt.mjs.mustache'),
@@ -88,6 +89,10 @@ for (const pkg of Object.values(software)) {
repo.templates.build
)
}
+ fs.writeFileSync(
+ path.join(cwd, pkg.folder, pkg.name, '.eslintrc.yml'),
+ repo.templates.eslint
+ )
fs.writeFileSync(
path.join(cwd, pkg.folder, pkg.name, 'CHANGELOG.md'),
changelog(pkg)
diff --git a/sites/backend/package.json b/sites/backend/package.json
index 885cc7da4d6..6e35ae86f39 100644
--- a/sites/backend/package.json
+++ b/sites/backend/package.json
@@ -22,7 +22,6 @@
"testci_IGNORE": "babel-node --presets '@babel/preset-env' scripts/testci.js",
"clean": "rimraf dist",
"prettier": "npx prettier --write 'src/**' 'tests/**'",
- "lint": "eslint --fix \"src/*.js\"",
"develop": "backpack",
"build": "backpack build",
"start:prod": "backpack build && pm2 start build/main.js --name freesewing-backend",