File tree Expand file tree Collapse file tree 4 files changed +35
-13
lines changed
packages/stencil-library/src/eslint-plugin/src Expand file tree Collapse file tree 4 files changed +35
-13
lines changed Original file line number Diff line number Diff line change 1+ import type { Linter } from "eslint" ;
2+ import recommended from "./recommended" ;
3+
4+ export default {
5+ recommended,
6+ /** Will be populated from main entry file to keep backward compatible. */
7+ flat : { } as Record < string , Linter . FlatConfig > ,
8+ } ;
Original file line number Diff line number Diff line change 1+ import { Linter } from 'eslint' ;
2+
3+ export default {
4+ rules : {
5+ '@dnn-elements/no-label-slot-in-checkbox' : "error" ,
6+ }
7+ } satisfies Linter . BaseConfig ;
Original file line number Diff line number Diff line change 1- import { noLabelSlotInCheckbox } from "./rules/no-label-slot-in-checkbox" ;
2-
3- export const rules = {
4- "no-label-slot-in-checkbox" : noLabelSlotInCheckbox
5- } ;
1+ import { Linter } from "eslint" ;
2+ import rules from "./rules" ;
3+ import configs from "./configs"
64
75const plugin = {
86 rules,
9- configs : {
10- recommended : {
11- plugins : [ "@dnn-community/eslint-plugin" ] ,
12- rules : {
13- "@dnn-community/no-label-slot-in-checkbox" : "error"
14- }
15- }
16- }
7+ configs,
8+ } ;
9+
10+ const flatRecommended : Linter . FlatConfig = {
11+ plugins : {
12+ "@dnn-elements" : plugin ,
13+ } ,
14+ rules : configs . recommended . rules ,
15+ } ;
16+
17+ configs . flat = {
18+ recommended : flatRecommended ,
1719}
1820
1921export default plugin ;
Original file line number Diff line number Diff line change 1+ import { noLabelSlotInCheckbox } from "./no-label-slot-in-checkbox" ;
2+
3+ export default {
4+ "no-label-slot-in-checkbox" : noLabelSlotInCheckbox ,
5+ }
You can’t perform that action at this time.
0 commit comments