File tree Expand file tree Collapse file tree 7 files changed +18
-9
lines changed
packages/stencil-library/eslint-plugin Expand file tree Collapse file tree 7 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11import type { Linter } from "eslint" ;
22import 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
66const pluginName = "dnn-elements" ;
Original file line number Diff line number Diff line change 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 " ;
44const { name, version } = require ( "../../package.json" ) as {
55 name : string ;
66 version : string ;
Original file line number Diff line number Diff line change 1- import { rule as noLabelSlotInCheckbox } from "./no-label-slot-in-checkbox" ;
1+ import { rule as noLabelSlotInCheckbox } from "./no-label-slot-in-checkbox.js " ;
22
33export const rules = {
44 "no-label-slot-in-checkbox" : noLabelSlotInCheckbox ,
Original file line number Diff line number Diff line change 11import { 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
44const ruleTester = new RuleTester ( ) ;
55
Original file line number Diff line number Diff line change 1- import { createRule } from "../utils" ;
1+ import { createRule } from "../utils.js " ;
22
33export const rule = createRule ( {
44 name : "no-label-slot-in-checkbox" ,
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments