Skip to content

Commit df1e0e0

Browse files
committed
Added some metadata
1 parent 05dfab6 commit df1e0e0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/stencil-library/eslint-plugin/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
import { rules } from "./rules";
22

3+
const { name, version } =
4+
// `import`ing here would bypass the TSConfig's `"rootDir": "src"`
5+
// eslint-disable-next-line @typescript-eslint/no-require-imports
6+
require("../../package.json") as typeof import("../../package.json");
7+
38
const plugin = {
49
configs: {
510
get recommended() {
611
return recommended;
7-
}
8-
}
9-
}
12+
},
13+
},
14+
meta: { name, version },
15+
rules,
16+
};
17+
1018
const recommended = {
1119
plugins: {
1220
"dnn-elements": plugin,

packages/stencil-library/eslint-plugin/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"skipLibCheck": true,
1111
"types": ["jest", "node", "estree-jsx"],
1212
"forceConsistentCasingInFileNames": true,
13+
"resolveJsonModule": true,
1314
"sourceMap": true,
1415
"isolatedModules":true,
1516
"jsx": "react",

0 commit comments

Comments
 (0)