Skip to content

Commit

Permalink
feat(eslint-plugin): add package type declaration (#3164)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Mar 15, 2021
1 parent a148673 commit 08b058a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/eslint-plugin/index.d.ts
@@ -0,0 +1,4 @@
import { TSESLint } from '@typescript-eslint/experimental-utils';

export const rules: Record<string, TSESLint.RuleModule<string, unknown[]>>;
export const configs: Record<string, TSESLint.Linter.Config>;
2 changes: 2 additions & 0 deletions packages/eslint-plugin/package.json
Expand Up @@ -14,6 +14,7 @@
"files": [
"dist",
"docs",
"index.d.ts",
"package.json",
"README.md",
"LICENSE"
Expand All @@ -28,6 +29,7 @@
},
"license": "MIT",
"main": "dist/index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc -b tsconfig.build.json",
"check:docs": "jest tests/docs.test.ts --runTestsByPath --silent --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tsconfig.json
Expand Up @@ -4,7 +4,7 @@
"composite": false,
"rootDir": "."
},
"include": ["src", "typings", "tests", "tools"],
"include": ["src", "typings", "tests", "tools", "index.d.ts"],
"references": [
{ "path": "../experimental-utils/tsconfig.build.json" },
{ "path": "../parser/tsconfig.build.json" },
Expand Down

0 comments on commit 08b058a

Please sign in to comment.