Lint benchmarks (#13881)

This commit is contained in:
Nicolò Ribaudo 2021-10-25 07:23:43 +02:00 committed by GitHub
parent ff922962a4
commit 290d52fdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -88,12 +88,12 @@ check-compat-data-ci:
$(MAKE) check-compat-data $(MAKE) check-compat-data
lint: lint:
BABEL_ENV=test $(YARN) eslint scripts $(SOURCES) '*.{js,cjs,mjs,ts}' --format=codeframe --ext .js,.cjs,.mjs,.ts BABEL_ENV=test $(YARN) eslint scripts benchmark $(SOURCES) '*.{js,cjs,mjs,ts}' --format=codeframe --ext .js,.cjs,.mjs,.ts
fix: fix-json fix-js fix: fix-json fix-js
fix-js: fix-js:
$(YARN) eslint scripts $(SOURCES) '*.{js,cjs,mjs,ts}' --format=codeframe --ext .js,.cjs,.mjs,.ts --fix $(YARN) eslint scripts benchmark $(SOURCES) '*.{js,cjs,mjs,ts}' --format=codeframe --ext .js,.cjs,.mjs,.ts --fix
fix-json: fix-json:
$(YARN) prettier "{$(COMMA_SEPARATED_SOURCES)}/*/test/fixtures/**/options.json" --write --loglevel warn $(YARN) prettier "{$(COMMA_SEPARATED_SOURCES)}/*/test/fixtures/**/options.json" --write --loglevel warn

View File

@ -13,7 +13,7 @@ function benchCases(implementations) {
const idObj = t.identifier("obj"); const idObj = t.identifier("obj");
const idProp = t.identifier("prop"); const idProp = t.identifier("prop");
suite.add(`${version} ${funcName} builder`, () => { suite.add(`${version} ${funcName} builder`, () => {
func(idObj, idProp, /*computed?*/ false, /*optional? missing*/); func(idObj, idProp, /*computed?*/ false /*, optional? missing*/);
}); });
} }
} }