mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Types for gulp-pug-linter (#47522)
* clear to tests * Clear to tests * fixed issues * Update types/gulp-pug-linter/index.d.ts Co-authored-by: Ilya Kaminsky <ilyakam@users.noreply.github.com> * fixed issues Co-authored-by: Ilya Kaminsky <ilyakam@users.noreply.github.com>
This commit is contained in:
parent
a13d8cb4de
commit
4f489b1a1e
14
types/gulp-pug-linter/gulp-pug-linter-tests.ts
Normal file
14
types/gulp-pug-linter/gulp-pug-linter-tests.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import gulp = require('gulp');
|
||||
import * as gulpPugLinter from "gulp-pug-linter";
|
||||
|
||||
gulp.task('lint:template__default', () => (
|
||||
gulp
|
||||
.src('./**/*.pug')
|
||||
.pipe(gulpPugLinter({ failAfterError: true }))
|
||||
));
|
||||
|
||||
gulp.task('lint:template__reporter', () => (
|
||||
gulp
|
||||
.src('./**/*.pug')
|
||||
.pipe(gulpPugLinter({ reporter: 'default' }))
|
||||
));
|
||||
20
types/gulp-pug-linter/index.d.ts
vendored
Normal file
20
types/gulp-pug-linter/index.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
// Type definitions for gulp-pug-linter 1.4
|
||||
// Project: https://github.com/ilyakam/gulp-pug-linter
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
interface GulpPugLinter {
|
||||
(options?: GulpPugLinter.Options): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
declare namespace GulpPugLinter {
|
||||
interface Options {
|
||||
reporter?: any;
|
||||
failAfterError?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare var gulpPugLinter: GulpPugLinter;
|
||||
export = gulpPugLinter;
|
||||
23
types/gulp-pug-linter/tsconfig.json
Normal file
23
types/gulp-pug-linter/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-pug-linter-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/gulp-pug-linter/tslint.json
Normal file
3
types/gulp-pug-linter/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user