Skip to content

Commit

Permalink
Lint benchmarks (#13881)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 25, 2021
1 parent ff92296 commit 290d52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -88,12 +88,12 @@ check-compat-data-ci:
$(MAKE) check-compat-data

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-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:
$(YARN) prettier "{$(COMMA_SEPARATED_SOURCES)}/*/test/fixtures/**/options.json" --write --loglevel warn
Expand Down
2 changes: 1 addition & 1 deletion benchmark/babel-types/builders/memberExpression.mjs
Expand Up @@ -13,7 +13,7 @@ function benchCases(implementations) {
const idObj = t.identifier("obj");
const idProp = t.identifier("prop");
suite.add(`${version} ${funcName} builder`, () => {
func(idObj, idProp, /*computed?*/ false, /*optional? missing*/);
func(idObj, idProp, /*computed?*/ false /*, optional? missing*/);
});
}
}
Expand Down

0 comments on commit 290d52f

Please sign in to comment.