Skip to content

Commit cee9bba

Browse files
committed
migrated to esm module
1 parent a23c4c3 commit cee9bba

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "@dnncommunity/eslint-plugin-dnn-elements",
3+
"type": "module",
4+
"main": "./dist/index.js",
5+
"exports": {
6+
"import": "./dist/index.js"
7+
},
8+
"types": "./dist/index.d.ts"
9+
}

packages/stencil-library/eslint-plugin/src/configs/recommended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Linter } from "eslint";
22
import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint";
3-
import { rules } from "../rules";
3+
import { rules } from "../rules/index.js";
44

55
// 🔁 Dynamically generate rule names with prefix
66
const pluginName = "dnn-elements";

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { rules } from "./rules";
2-
import { recommended, flatRecommended } from "./configs/recommended";
3-
import type { Plugin } from "./types/plugin";
1+
import { rules } from "./rules/index.js";
2+
import { recommended, flatRecommended } from "./configs/recommended.js";
3+
import type { Plugin } from "./types/plugin.js";
44
const { name, version } = require("../../package.json") as {
55
name: string;
66
version: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rule as noLabelSlotInCheckbox } from "./no-label-slot-in-checkbox";
1+
import { rule as noLabelSlotInCheckbox } from "./no-label-slot-in-checkbox.js";
22

33
export const rules = {
44
"no-label-slot-in-checkbox": noLabelSlotInCheckbox,

packages/stencil-library/eslint-plugin/src/rules/no-label-slot-in-checkbox.tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RuleTester } from "@typescript-eslint/rule-tester";
2-
import { rule } from "./no-label-slot-in-checkbox";
2+
import { rule } from "./no-label-slot-in-checkbox.js";
33

44
const ruleTester = new RuleTester();
55

packages/stencil-library/eslint-plugin/src/rules/no-label-slot-in-checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createRule } from "../utils";
1+
import { createRule } from "../utils.js";
22

33
export const rule = createRule({
44
name: "no-label-slot-in-checkbox",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"compilerOptions": {
3-
"target": "es2019",
3+
"target": "ES2019",
44
"module": "NodeNext",
55
"moduleResolution": "nodenext",
6-
"outDir": "dist",
76
"rootDir": "src",
7+
"outDir": "dist",
88
"strict": true,
99
"esModuleInterop": true,
1010
"declaration": true,

0 commit comments

Comments
 (0)