summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-02-04 22:08:03 -0800
committerRich Trott <rtrott@gmail.com>2019-02-06 22:18:34 -0800
commit2a212549dc0517f1700db90d66ed5cf09e9513b8 (patch)
tree9c9c04066879e3a60296d55c5e3b057f7bb3aa62 /benchmark
parent29e74d4952b772f7f1bf51e1a8f1665bbbde39d1 (diff)
downloadandroid-node-v8-2a212549dc0517f1700db90d66ed5cf09e9513b8.tar.gz
android-node-v8-2a212549dc0517f1700db90d66ed5cf09e9513b8.tar.bz2
android-node-v8-2a212549dc0517f1700db90d66ed5cf09e9513b8.zip
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 <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/.eslintrc.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml
new file mode 100644
index 0000000000..f8585fd706
--- /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