New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@eclipse-glsp/dev

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-glsp/dev

All-in-one meta package that provides the GLSP development and test configuration packages, as well as the GLSP CLI package

2.3.0-next.173
Version published
Maintainers
0
Created

Eclipse GLSP - All-in-one dev package

A meta package that includes all shared configuration packages Eclipse GLSP components. In addition, it also provides the GLSP CLI application.

The package is available via npm and can be used by all GLSP components implemented with Typescript.

Components

Install

yarn add --dev @eclipse-glsp/dev

Usage

TSConfig

Create a tsconfig.json:

{
    "extends": "@eclipse-glsp/ts-config/tsconfig.json",
    "compilerOptions": {
        "rootDir": "src",
        "outDir": "lib"
    }
}

In addition, a custom configuration for projects that use mocha is available:

  • @eclipse-glsp/ts-config/mocha

ESLint

Create a .eslintrc.js:

/** @type {import('eslint').Linter.Config} */
module.exports = {
    extends: '@eclipse-glsp',
    parserOptions: {
        tsconfigRootDir: __dirname,
        project: 'tsconfig.json'
    }
};

Prettier

Add to the package.json:

{
    // ...
    "prettier": "@eclipse-glsp/prettier-config"
}

Or add a .prettierrc to the workspace root:

"@eclipse-glsp/prettier-config"

Mocha

Create a .mocharc:

{
    "$schema": "https://json.schemastore.org/mocharc",
    "extends": "@eclipse-glsp/mocha-config"
}

Nyc

Add a .nycrc to your project root:

{
    "extends": "@eclipse-glsp/nyc-config"
}

Configuration can also be provided by nyc.config.js if programmed logic is required.

More information

For more information, please visit the Eclipse GLSP Umbrella repository and the Eclipse GLSP Website. If you have questions, please raise them in the discussions and have a look at our communication and support options.

FAQs

Package last updated on 16 Dec 2024

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