@eclipse-glsp/config v2.0.0
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:
- Typescript (
tsconfig.json
) - ESLint (
.eslintrc
) - Prettier (
.prettierc
).
The package is available via npm and are used by all GLSP components implemented with Typescript. ESLint and prettier are included as direct dependencies.
Components
@eclipse-glsp/ts-config
: Shared Typescript configuration for GLSP projects@eclipse-glsp/eslint-config
: Shared ESLint configuration for GLSP projects@eclipse-glsp/prettier-config
: Shared Prettier configuration for GLSP projects
Install
$ yarn add --dev @eclipse-glsp/config
Usage
TSConfig
Create a tsconfig.json
:
{
"extends": "@eclipse-glsp/ts-config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
}
}
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.json
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.
22 days ago
22 days ago
27 days ago
2 months ago
3 months ago
3 months ago
3 months ago
8 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 year ago
11 months ago
11 months ago
1 year ago
12 months ago
11 months ago
1 year ago
12 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago