Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@logicsoftware/eslint-plugin-ep-custom

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logicsoftware/eslint-plugin-ep-custom

Custom eslint rules for EP application

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
increased by58.97%
Maintainers
7
Weekly downloads
 
Created
Source

eslint-plugin-ep-custom

This package includes custom eslint rules for EP application.

Installation

The package is stored at npm registry. To add it into an existing project, use the npm CLI:

npm i @logicsoftware/eslint-plugin-ep-custom

Contribution

If you modify the source code in src folder, run npm run build to update the dist folder. ESlint only works with .js code, so it's necessary to compile typescript source to javascript. Publish the changes to the npm registry.

Rules

Cross-feature modules

This rule checks whether the module uses files from other "feature". Feature are calculated as a folder in baseUri (e.g. src/Scripts).

Configuration

In .eslintrc.js file, add the following configuration to exports.overrdes section (with corresponding file masks):

{
  "rules": {
    "@logicsoftware/ep-custom/no-cross-feature-imports": [
      "error",
      {
        ignoreFeatures: [
          // ...
        ],
        allowedImports: [
          // ...
        ],
        aliases: {
          // ...
        },
        baseUrl: "..."
      }
    ]
  }
}
  • baseUri - the base URI of the project (src/Scripts)
  • ignoreFeatures - all files from within ignored features will be ignored by the rule
  • allowedImports - all imports from within allowed features will be allowed by the rule
  • aliases - map of aliases to be used by webpack/ts/jest module loader.

Example config

{
  ignoreFeatures: ["app", "Tests", "QUnit"],
  allowedImports: ["common", "const", "EasyProjects" ],
  aliases: {
    "~": "."
  },
  baseUrl: "src/Scripts/"
}

Keywords

FAQs

Package last updated on 03 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc