@progress/kendo-typescript-tasks 10.0.13-ng12.31 → 10.0.13-ng12.32

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/gulp-tasks.js +14 -11
  2. package/package.json +7 -5
package/gulp-tasks.js CHANGED
@@ -3,8 +3,7 @@
3
3
  const del = require('del');
4
4
  const childProcess = require('child_process');
5
5
  const path = require('path');
6
- const gulpTsLint = require('gulp-tslint');
7
- const tslint = require('tslint');
6
+ const { ESLint } = require('eslint');
8
7
 
9
8
  const apiTasks = require('./api.js');
10
9
  const commonTasks = require('@progress/kendo-common-tasks');
@@ -37,15 +36,19 @@ module.exports = (gulp, libraryName, compilerPath, options, webpackConfigPath) =
37
36
  done()
38
37
  });
39
38
 
40
- gulp.task('lint', series('check-compilation', (done) => {
41
- const program = tslint.Linter.createProgram('./tsconfig.json', '.');
42
-
43
- return gulp.src([ 'src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}', 'e2e/**/*.{ts,tsx}' ])
44
- .pipe(gulpTsLint({
45
- program: program,
46
- formatter: 'verbose'
47
- }))
48
- .pipe(gulpTsLint.report());
39
+ gulp.task('lint', series('check-compilation', async(done) => {
40
+ const eslint = new ESLint();
41
+ const results = await eslint.lintFiles([ 'src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}', 'e2e/**/*.{ts,tsx}' ]);
42
+ const formatter = await eslint.loadFormatter('stylish');
43
+ const errors = ESLint.getErrorResults(results)
44
+
45
+ if (errors.length) {
46
+ const resultText = formatter.format(results);
47
+ console.log(resultText);
48
+ done(new Error('Lint failed.'));
49
+ } else {
50
+ done();
51
+ }
49
52
  }));
50
53
 
51
54
  gulp.task('lint-docs', () => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@progress/kendo-typescript-tasks",
3
3
  "description": "Kendo UI TypeScript package gulp tasks",
4
4
  "main": "gulp-tasks.js",
5
- "version": "10.0.13-ng12.31+3044ab4",
5
+ "version": "10.0.13-ng12.32+528844c",
6
6
  "author": "Telerik",
7
7
  "license": "Apache-2.0",
8
8
  "scripts": {
@@ -19,20 +19,22 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@progress/kendo-common-tasks": "ng12",
22
+ "@typescript-eslint/eslint-plugin": "4.28.2",
23
+ "@typescript-eslint/parser": "4.28.2",
22
24
  "core-js": "^3.18.0",
23
25
  "del": "2.2.2",
26
+ "eslint": "7.32.0",
27
+ "eslint-plugin-import": "2.25.2",
28
+ "eslint-plugin-rxjs": "3.3.7",
24
29
  "glob": "^7.2.0",
25
30
  "gulp": "^4.0.0",
26
31
  "gulp-add-src": "^1.0.0",
27
- "gulp-tslint": "^8.0.0",
28
32
  "handlebars": "^4.0.5",
29
33
  "highlight.js": "9.14.2",
30
34
  "lodash.merge": "^4.6.0",
31
35
  "mkdirp": "^0.5.0",
32
36
  "source-map-loader": "^0.1.5",
33
37
  "ts-loader": "4.1.0",
34
- "tslint": "^5.0.0",
35
- "tslint-defocus": "^2.0.6",
36
38
  "typedoc": "~0.22.5"
37
39
  },
38
40
  "devDependencies": {
@@ -46,5 +48,5 @@
46
48
  "publishConfig": {
47
49
  "access": "public"
48
50
  },
49
- "gitHead": "3044ab46f1e9548024cb6848943e9b9ea0bfdb2d"
51
+ "gitHead": "528844c54e08c19e5b8ee3bc515f2ac4d34f5bb8"
50
52
  }