2.4.0 • Published 7 months ago

@eclipse-glsp/config v2.4.0

Weekly downloads
-
License
(EPL-2.0 OR GPL-2...
Repository
github
Last release
7 months ago

Eclipse GLSP - Shared configuration

Common shared configuration for Eclipse GLSP components that are implemented with Typescript. Provides a meta package that export common configuration objects for:

The package is available via npm and is used by all GLSP components implemented with Typescript. ESLint and prettier are included as direct dependencies.

Components

Install

yarn add --dev @eclipse-glsp/config

Usage

TSConfig

Create a tsconfig.json:

{
    "extends": "@eclipse-glsp/ts-config",
    "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 file to the workspace root:

"@eclipse-glsp/prettier-config"

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.

2.4.0

7 months ago

2.3.0-next.173

10 months ago

2.3.0-next.172

10 months ago

2.5.0-next.179

7 months ago

2.3.0

10 months ago

2.4.0-next.176

10 months ago

2.4.0-next.177

9 months ago

2.3.0-next.164

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.0-next.161

1 year ago

2.2.0-next.167

1 year ago

2.2.0-next.166

1 year ago

2.3.0-next.170

1 year ago

2.0.0

2 years ago

1.1.0-RC06

3 years ago

1.0.0

3 years ago

0.10.0

4 years ago

0.9.0

4 years ago