Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eslint-plugin): add package type declaration #3164

Merged
merged 1 commit into from Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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