From 6ca8d26020beb0d5f46961639c83411817c80c48 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 4 Feb 2019 22:08:03 -0800 Subject: [PATCH] tools: apply more stringent lint rules for benchmark code All benchmark code uses trailing commas on multi-line arrays and arrow functions for anonymous callbacks. Apply lint rules to that effect. PR-URL: https://github.com/nodejs/node/pull/25944 Reviewed-By: Anto Aravinth Reviewed-By: James M Snell --- benchmark/.eslintrc.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 benchmark/.eslintrc.yaml diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml new file mode 100644 index 00000000000000..f8585fd7065f88 --- /dev/null +++ b/benchmark/.eslintrc.yaml @@ -0,0 +1,10 @@ +## Benchmark-specific linter rules + +rules: + comma-dangle: + - error + - arrays: 'always-multiline' + objects: 'only-multiline' + imports: 'only-multiline' + exports: 'only-multiline' + prefer-arrow-callback: error