All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.configs.nanos.eslint.imports.order.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
const { assocPath } = require("ramda");

const {
  buildPathGroupsBasedOnWebpackAliases,
} = require("../../../eslint/helpers");
const commonConfig = require("../../../eslint/imports/order");

const pathGroups = buildPathGroupsBasedOnWebpackAliases({
  customAliasPath: "resolve.js",
  commonAliasPath:
    "node_modules/@bigbinary/neeto-commons-frontend/configs/nanos/webpack/resolve.js",
});

const pathGroupForKeepingReactImportsAtTop = {
  pattern: "react+(-native|)",
  group: "external",
  position: "before",
};
pathGroups.push(pathGroupForKeepingReactImportsAtTop);

module.exports = assocPath(
  ["rules", "import/order", 1, "pathGroups"],
  pathGroups,
  commonConfig
);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy