We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d94bd2 commit e3d9657Copy full SHA for e3d9657
src/index.ts
@@ -1,9 +1,22 @@
1
+import type { Linter } from '@typescript-eslint/utils/ts-eslint';
2
+
3
import configRule from './rules/config';
4
5
+// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
6
+const { name, version } = require('../package.json') as {
7
+ name: string;
8
+ version: string;
9
+};
10
11
+export const meta: Linter.PluginMeta = {
12
+ name,
13
+ version,
14
15
16
/**
17
* Expose a single rule called "config", which will be accessed in the user's eslint config files
18
* via "tslint/config"
19
*/
-export const rules = {
20
+export const rules: Linter.PluginRules = {
21
config: configRule,
22
};
0 commit comments