@hansevision/eslint-config 1.0.9 → 1.0.11
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 +17 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
# @hansevision/eslint-config
|
|
2
2
|
|
|
3
|
-
A shareable, opinionated ESLint configuration for TypeScript projects.
|
|
3
|
+
A shareable, opinionated ESLint configuration for TypeScript projects. (SPFX OnPrem)
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
ensure "eslint": "^8.57.1",
|
|
8
|
+
|
|
7
9
|
```bash
|
|
10
|
+
npm install eslint@^8 --save-dev
|
|
11
|
+
npm install gulp-eslint-new@^2.6.2 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
edit gulpfile.js
|
|
15
|
+
...
|
|
16
|
+
// disable tslint to use gulp-eslint-new
|
|
17
|
+
build.tslint.enabled = false;
|
|
18
|
+
|
|
19
|
+
const eslint = require('gulp-eslint-new');
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
|
|
8
24
|
npm install --save-dev @hansevision/eslint-config --legacy-peer-deps
|
|
9
25
|
|
|
10
26
|
also
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hansevision/eslint-config",
|
|
3
3
|
"author": "HanseVision",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"description": "Shareable ESLint configuration with TypeScript support",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/eslint": "^8.0.0",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
36
|
-
"@typescript-eslint/parser": "^
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6",
|
|
36
|
+
"@typescript-eslint/parser": "^6",
|
|
37
37
|
"eslint": "^8.57.1",
|
|
38
38
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
39
39
|
"typescript": "^3.9.10"
|