import-js/eslint-plugin-import

import/order odd error

Open

#1853 aperta il 12 lug 2020

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wanted

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

'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,
...

Guida contributor