@hansevision/eslint-config 1.0.5 → 1.0.7
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.
- package/README.md +4 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -5,9 +5,10 @@ A shareable, opinionated ESLint configuration for TypeScript projects.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install --save-dev @hansevision/eslint-config
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
npm install --save-dev @hansevision/eslint-config --legacy-peer-deps
|
|
9
|
+
|
|
10
|
+
also
|
|
11
|
+
npm install --save-dev eslint-plugin-sonarjs@^4.0.2 --legacy-peer-deps
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
## Usage
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@ exports.base = {
|
|
|
7
7
|
ecmaVersion: 2020,
|
|
8
8
|
sourceType: "module",
|
|
9
9
|
},
|
|
10
|
-
plugins: ["@typescript-eslint", "sonarjs"],
|
|
10
|
+
plugins: ["@typescript-eslint", "sonarjs", "check-file"],
|
|
11
11
|
extends: [
|
|
12
12
|
"eslint:recommended",
|
|
13
13
|
"plugin:@typescript-eslint/recommended",
|
|
14
|
-
"plugin:sonarjs/recommended",
|
|
14
|
+
"plugin:sonarjs/recommended-legacy",
|
|
15
15
|
],
|
|
16
16
|
rules: {
|
|
17
17
|
"quotes": ["error", "double"],
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAkB;IACjC,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;KACrB;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,SAAS,CA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"name": "@hansevision/eslint-config",
|
|
3
3
|
"author": "HanseVision",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "Shareable ESLint configuration with TypeScript support",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -24,15 +24,20 @@
|
|
|
24
24
|
"lint": "npm run build && eslint src --ext .ts",
|
|
25
25
|
"prepublishOnly": "npm run build"
|
|
26
26
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"@typescript-eslint/
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"eslint": ">=7.0.0",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": ">=5.0.0",
|
|
30
|
+
"@typescript-eslint/parser": ">=5.0.0",
|
|
30
31
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
31
32
|
"eslint-plugin-check-file": ">=1.0.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@types/eslint": "^8.0.0",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
35
38
|
"eslint": "^8.57.1",
|
|
39
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
40
|
+
"eslint-plugin-check-file": "^2.0.0",
|
|
36
41
|
"typescript": "^3.9.10"
|
|
37
42
|
},
|
|
38
43
|
"volta": {
|