Skip to content

Commit eba8dd4

Browse files
committed
Upgrade tslint to eslint. Note that linter is currently not executing
1 parent f59dc61 commit eba8dd4

6 files changed

Lines changed: 5224 additions & 3377 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources/_internal
2+
*.d.ts

src/XrmDefinitelyTyped/.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
]
12+
}

src/XrmDefinitelyTyped/XrmDefinitelyTyped.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DocumentationFile>bin\Release\XrmDefinitelyTyped.xml</DocumentationFile>
3131
</PropertyGroup>
3232
<ItemGroup>
33+
<None Include=".eslintignore" />
34+
<None Include=".eslintrc" />
3335
<None Include="..\resources\XrmDefinitelyTyped-sticker_small.png" Pack="true" PackagePath="" />
3436
<Compile Include="AssemblyInfo.fs" />
3537
<Compile Include="Domain.fs" />
@@ -107,7 +109,6 @@
107109
<Content Include="..\..\files\*" Pack="true" PackagePath="content\XrmDefinitelyTyped;contentFiles\any\any\XrmDefinitelyTyped" />
108110
<None Include="package.json" />
109111
<None Include="tsconfig.json" />
110-
<None Include="gulpfile.js" />
111112
</ItemGroup>
112113
<ItemGroup>
113114
<PackageReference Include="Microsoft.CrmSdk.XrmTooling.CoreAssembly" Version="9.1.0.51" />

src/XrmDefinitelyTyped/gulpfile.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var merge = require('merge2');
77
var uglify = require("gulp-uglify");
88

99
var ts = require("gulp-typescript");
10-
var tslint = require("gulp-tslint");
10+
var eslint = require("gulp-eslint");
1111
var tsProject = ts.createProject("tsconfig.json");
1212

1313
var outDir = tsProject.options.outDir;
@@ -33,12 +33,9 @@ function compile_ts(){
3333
]);
3434
}
3535

36-
function runTSLint() {
36+
function runTsLint() {
3737
return gulp.src("**/*.ts")
38-
.pipe(tslint({
39-
formatter: "verbose"
40-
}))
41-
.pipe(tslint.report());
38+
.pipe(eslint.format());
4239
}
4340

4441
function concat_promise() {
@@ -56,7 +53,7 @@ function concat_promise() {
5653
gulp.task("default", gulp.series(
5754
clean,
5855
compile_ts,
59-
runTSLint,
56+
runTsLint,
6057
concat_promise,
6158
runUglify));
6259

0 commit comments

Comments
 (0)