From b1b6238e08847d555fe50023067212339a382eb8 Mon Sep 17 00:00:00 2001 From: John Papandriopoulos Date: Fri, 8 Sep 2017 15:11:29 -0700 Subject: [PATCH] Add types for babel-plugin-react-pug 0.5.0 --- .../babel-plugin-react-pug-tests.tsx | 4 ++++ types/babel-plugin-react-pug/index.d.ts | 6 +++++ types/babel-plugin-react-pug/tsconfig.json | 23 +++++++++++++++++++ types/babel-plugin-react-pug/tslint.json | 1 + 4 files changed, 34 insertions(+) create mode 100644 types/babel-plugin-react-pug/babel-plugin-react-pug-tests.tsx create mode 100644 types/babel-plugin-react-pug/index.d.ts create mode 100644 types/babel-plugin-react-pug/tsconfig.json create mode 100644 types/babel-plugin-react-pug/tslint.json diff --git a/types/babel-plugin-react-pug/babel-plugin-react-pug-tests.tsx b/types/babel-plugin-react-pug/babel-plugin-react-pug-tests.tsx new file mode 100644 index 0000000000..23d8205d4b --- /dev/null +++ b/types/babel-plugin-react-pug/babel-plugin-react-pug-tests.tsx @@ -0,0 +1,4 @@ +// $ExpectType any +pug` + p Hello pug! +`; diff --git a/types/babel-plugin-react-pug/index.d.ts b/types/babel-plugin-react-pug/index.d.ts new file mode 100644 index 0000000000..2cc311d627 --- /dev/null +++ b/types/babel-plugin-react-pug/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for babel-plugin-react-pug 0.5 +// Project: https://github.com/ljbc1994/babel-plugin-react-pug +// Definitions by: John Papandriopoulos +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare var pug: any; diff --git a/types/babel-plugin-react-pug/tsconfig.json b/types/babel-plugin-react-pug/tsconfig.json new file mode 100644 index 0000000000..9e1bdd2e0c --- /dev/null +++ b/types/babel-plugin-react-pug/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "babel-plugin-react-pug-tests.tsx" + ] +} diff --git a/types/babel-plugin-react-pug/tslint.json b/types/babel-plugin-react-pug/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/babel-plugin-react-pug/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }