import-js/eslint-plugin-import

import/order odd error

Open

#1,853 创建于 2020年7月12日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)JavaScript (1,540 fork)batch import
bughelp wanted

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

'use strict';

const path = require('path');
const fs = require('fs');
const {
  Value,

  CreateDataProperty,
  DetachArrayBuffer,
  OrdinaryObjectCreate,
  ToString,
  Type,

  Throw,
  AbruptCompletion,

  ManagedRealm,

  inspect,
} = require('..');
file.js
  4:12  error  There should be no empty line between import groups  import/order

In particular it is warning here:

1 | 'use strict';
2 |
3 | const path = require('path');
4 | const fs = require('fs');
               ^^^^^^^^^^^^^
5 | const {
6 |   Value,
7 |
8 |   CreateDataProperty,
...

贡献者指南