diff options
| author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2023-01-25 19:07:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 19:07:53 +0100 |
| commit | 4d4c1e522eb65145e09beb24aa46c3269ee12b4e (patch) | |
| tree | 30c541296e1dd52c7f9eb82ef7ebc02b17f030b7 /benchmark | |
| parent | f0e645321ce150fa722927ada05d821f151124de (diff) | |
| download | node-new-4d4c1e522eb65145e09beb24aa46c3269ee12b4e.tar.gz | |
tools: require more trailing commas
All of the import and export statements in the codebase already use
trailing commas, this commit adds a linter rule to enforce that.
PR-URL: https://github.com/nodejs/node/pull/46346
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/.eslintrc.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml index 821b2381d3..7802df7c2f 100644 --- a/benchmark/.eslintrc.yaml +++ b/benchmark/.eslintrc.yaml @@ -7,9 +7,9 @@ env: rules: comma-dangle: [error, { arrays: always-multiline, - exports: only-multiline, + exports: always-multiline, functions: only-multiline, - imports: only-multiline, + imports: always-multiline, objects: only-multiline, }] prefer-arrow-callback: error |
