2.0.0 • Published 5 years ago
@clark/eslint-config-node-order-imports v2.0.0
@clark/eslint-config-node-order-imports
Sorts ES module imports for Node.js projects
Installation
If you use the @clark/eslint-config-node or
@clark/eslint-config-node-typescript, you
don't need to do anything, as they already include this config.
If you don't like our config and just want to order your imports while using
your own eslint config, just install this package and add it to extends.
yarn add -D eslint @clark/eslint-config-node-order-importsmodule.exports = {
extends: ["@clark/node-order-imports"],
rules: {
// your rules here
},
};What does it do?
This is a distributable standalone config for
eslint-plugin-import-helpers that orders the
ES module imports. The order is a s follows:
- Node standard modules:
fs,http, ... - Named modules, e.g. installed from npm:
lodash,dotenv/register - Absolute paths (very uncommon):
/foo/bar - Parent modules:
../foo - Sibling modules:
./bar - Index:
./
2.0.0
5 years ago
1.28.1
5 years ago
1.28.0
5 years ago
1.27.0
5 years ago
1.24.5
5 years ago
1.26.0
5 years ago
1.26.3
5 years ago
1.26.4
5 years ago
1.26.1
5 years ago
1.26.2
5 years ago
1.26.5
5 years ago
1.25.6
5 years ago
1.25.5
5 years ago
1.25.4
5 years ago
1.25.3
5 years ago
1.25.2
5 years ago
1.25.0
5 years ago
1.25.1
5 years ago
1.19.0
6 years ago
1.18.0
6 years ago
1.12.0
6 years ago
1.8.0
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago