Socket
Book a DemoInstallSign in
Socket

@finos/eslint-plugin-legend-studio

Package Overview
Dependencies
Maintainers
4
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/eslint-plugin-legend-studio

ESLint rules for Legend Studio

3.0.18
latest
Source
npmnpm
Version published
Weekly downloads
340
2990.91%
Maintainers
4
Weekly downloads
 
Created
Source

@finos/eslint-plugin-legend-studio

This plugin includes 3 configs:

  • recommended: This config turns on rules in recommended configs for ESLint, eslint-plugin-import, React, Prettier, and Typescript. These rules are light-weighted, and suitable to run on incremental build during development.
  • computationally-expensive: This config turns on computationally expensive rules. For example: Typescript type-ware checks, import rules that require checking multiple files, indentation rules, etc. These rules are not suitable to run on incremental build as they seriously increase effective rebuild time.
  • scripts-override: This config turns off certain rules which are not suitable for script files or Javascript files (i.e. Typescript-specific rules). As such, this config if used in tandem with other configs, should go last.

Following is an example of usage:

module.exports = {
  root: true, // tell ESLint to stop looking further up in directory tree to resolve for parent configs
  parserOptions: {
    // `parserOptions.project` is required for generating parser service to run specific Typescript rules
    project: ['packages/*/tsconfig.json'],
  },
  plugins: ['@finos/legend-application-studio'],
  extends: [
    'plugin:@finos/legend-application-studio/recommended',
    'plugin:@finos/legend-application-studio/computationally-expensive',
    'plugin:@finos/legend-application-studio/scripts-override',
  ].filter(Boolean),
};

Note that for the imports, we can use either @finos/legend-application-studio/ or @finos/eslint-plugin-legend-studio/ as prefix and the rules, configs, and plugin will be picked up by ESLint just fine.

Keywords

legend

FAQs

Package last updated on 12 Mar 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.