@eclipse-glsp/config 1.1.0-next.fe535db.107 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -7
  2. package/package.json +26 -21
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Eclipse GLSP - Shared configuration [![build-status](https://img.shields.io/jenkins/build?jobUrl=https://ci.eclipse.org/glsp/job/eclipse-glsp/job/glsp/job/master)](https://ci.eclipse.org/glsp/job/eclipse-glsp/job/glsp-client/job/master) [![build-status-server](https://img.shields.io/jenkins/build?jobUrl=https://ci.eclipse.org/glsp/job/deploy-npm-glsp-config/&label=publish)](https://ci.eclipse.org/glsp/job/deploy-npm-glsp-config/)
1
+ # Eclipse GLSP - Shared configuration
2
2
 
3
3
  Common shared configuration for Eclipse GLSP components that are implemented with Typescript.
4
4
  Provides a meta package that export common configuration objects for:
@@ -7,13 +7,14 @@ Provides a meta package that export common configuration objects for:
7
7
  - [ESLint](https://eslint.org/) (`.eslintrc`)
8
8
  - [Prettier](https://prettier.io/) (`.prettierrc`).
9
9
 
10
- The package is available via npm and are used by all GLSP components implemented with Typescript. ESLint and prettier are included as direct dependencies.
10
+ The package is available via npm and is used by all GLSP components implemented with Typescript.
11
+ ESLint and prettier are included as direct dependencies.
11
12
 
12
13
  ## Components
13
14
 
14
- - `@eclipse-glsp/ts-config`: Shared Typescript configuration for GLSP projects
15
- - `@eclipse-glsp/eslint-config`: Shared ESLint configuration for GLSP projects
16
- - `@eclipse-glsp/prettier-config`: Shared Prettier configuration for GLSP projects
15
+ - [`@eclipse-glsp/ts-config`](https://www.npmjs.com/package/@eclipse-glsp/ts-config): Shared Typescript configuration for GLSP projects
16
+ - [`@eclipse-glsp/eslint-config`](https://www.npmjs.com/package/@eclipse-glsp/eslint-config): Shared ESLint configuration for GLSP projects
17
+ - [`@eclipse-glsp/prettier-config`](https://www.npmjs.com/package/@eclipse-glsp/prettier-config): Shared Prettier configuration for GLSP projects
17
18
 
18
19
  ## Install
19
20
 
@@ -29,7 +30,7 @@ yarn add --dev @eclipse-glsp/config
29
30
 
30
31
  ```json
31
32
  {
32
- "extends": "@eclipse-glsp/ts-config/tsconfig.json",
33
+ "extends": "@eclipse-glsp/ts-config",
33
34
  "compilerOptions": {
34
35
  "rootDir": "src",
35
36
  "outDir": "lib"
@@ -37,6 +38,10 @@ yarn add --dev @eclipse-glsp/config
37
38
  }
38
39
  ```
39
40
 
41
+ In addition, a custom configuration for projects that use `mocha` is available:
42
+
43
+ - `@eclipse-glsp/ts-config/mocha`
44
+
40
45
  ### ESLint
41
46
 
42
47
  **Create a `.eslintrc.js`**:
@@ -63,7 +68,7 @@ module.exports = {
63
68
  }
64
69
  ```
65
70
 
66
- **Or add a `.prettierrc.json` to the workspace root**:
71
+ **Or add a `.prettierrc` file to the workspace root**:
67
72
 
68
73
  ```json
69
74
  "@eclipse-glsp/prettier-config"
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/config",
3
- "version": "1.1.0-next.fe535db.107+fe535db",
4
- "description": "Wrapper package that provides Typescript, ESLint, Mocha and prettier configurations for GLSP projects",
5
- "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
3
+ "version": "2.0.0",
4
+ "description": "Meta package that provides Typescript, eslint and prettier configurations and common dev dependencies for GLSP projects",
6
5
  "keywords": [
7
6
  "eclipse",
8
- "tsconfig"
7
+ "config"
9
8
  ],
10
- "author": {
11
- "name": "Eclipse GLSP"
12
- },
13
9
  "homepage": "https://www.eclipse.org/glsp/",
10
+ "bugs": "https://github.com/eclipse-glsp/glsp/issues",
14
11
  "repository": {
15
12
  "type": "git",
16
13
  "url": "https://github.com/eclipse-glsp/glsp.git"
17
14
  },
18
- "bugs": "https://github.com/eclipse-glsp/glsp/issues",
15
+ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
16
+ "author": {
17
+ "name": "Eclipse GLSP"
18
+ },
19
19
  "contributors": [
20
20
  {
21
21
  "name": "Eclipse GLSP Project",
@@ -23,20 +23,25 @@
23
23
  "url": "https://projects.eclipse.org/projects/ecd.glsp"
24
24
  }
25
25
  ],
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
26
  "dependencies": {
30
- "@eclipse-glsp/eslint-config": "1.1.0-next.fe535db.107+fe535db",
31
- "@eclipse-glsp/mocha-config": "1.1.0-next.fe535db.107+fe535db",
32
- "@eclipse-glsp/prettier-config": "1.1.0-next.fe535db.107+fe535db",
33
- "@eclipse-glsp/ts-config": "1.1.0-next.fe535db.107+fe535db",
34
- "prettier": "^2.4.1"
27
+ "@eclipse-glsp/eslint-config": "~2.0.0",
28
+ "@eclipse-glsp/prettier-config": "~2.0.0",
29
+ "@eclipse-glsp/ts-config": "~2.0.0",
30
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
31
+ "@typescript-eslint/parser": "^6.7.5",
32
+ "eslint": "^8.51.0",
33
+ "eslint-config-prettier": "^9.0.0",
34
+ "eslint-plugin-chai-friendly": "^0.7.2",
35
+ "eslint-plugin-deprecation": "^2.0.0",
36
+ "eslint-plugin-header": "^3.1.1",
37
+ "eslint-plugin-import": "^2.28.1",
38
+ "eslint-plugin-no-null": "^1.0.2",
39
+ "prettier": "^3.0.3",
40
+ "reflect-metadata": "^0.1.13",
41
+ "rimraf": "^5.0.5"
35
42
  },
36
- "devDependencies": {
37
- "@types/node": ">=12.x",
38
- "reflect-metadata": ">=0.1.13",
39
- "typescript": ">=4.5.5"
43
+ "publishConfig": {
44
+ "access": "public"
40
45
  },
41
- "gitHead": "fe535dbf865fafa4fa024d5874d76a115d6bb069"
46
+ "gitHead": "de11704de0f39591d2a991c3956df4e0ce88d451"
42
47
  }