Lint benchmarks (#13881)
This commit is contained in:
parent
ff922962a4
commit
290d52fdc1
4
Makefile
4
Makefile
@ -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
|
||||||
|
|||||||
@ -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*/);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user