Closed
Description
Using "eslint-plugin-import": "2.27.5"
// .eslintrc.json
{
"root": true,
"reportUnusedDisableDirectives": true,
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"env": {
"node": true,
"es2022": true
},
"plugins": ["import"],
"rules": {
"import/order": [
"error",
{
"groups": [
[
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type"
]
]
}
]
}
}
// test.js
import chpro from 'child_process';
import log4js from 'log4js';
import util from 'util';
const execFile = util.promisify(chpro.execFile);
const logger = log4js.getLogger('server');
I would expect util
to be sorted before log4js
but this is not the case. Neither is node:util
.