import-js/eslint-plugin-import

import/order odd error

Open

#1.853 aberto em 12 de jul. de 2020

Ver no GitHub
 (2 comments) (1 reaction) (0 assignees)JavaScript (1.540 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (4.946 stars)
Métricas de merge de PR
 (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)

Description

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

Guia do colaborador