You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys! First of all, thank you for such a cool plugin!
Since ESLint 9 is soon to be released, are there any plans to add a Flat config and, equally importantly, improve the d.ts files of the plugin?
eslint.config.js:25:3 - error TS2322: Type 'typeof import("node_modules/eslint-plugin-wc/lib/index")' is not assignable to type 'Plugin'.
Types of property 'configs' are incompatible.
Type '{ recommended: { plugins: string[]; parserOptions: { sourceType: string; }; rules: { 'wc/no-constructor-attributes': string; 'wc/no-invalid-element-name': string; 'wc/no-self-class': string; }; }; 'best-practice': { ...; }; }' is not assignable to type 'Record<string, FlatConfig | ConfigData<RulesRecord> | FlatConfig[]>'.
Property 'recommended' is incompatible with index signature.
Type '{ plugins: string[]; parserOptions: { sourceType: string; }; rules: { 'wc/no-constructor-attributes': string; 'wc/no-invalid-element-name': string; 'wc/no-self-class': string; }; }' is not assignable to type 'FlatConfig | ConfigData<RulesRecord> | FlatConfig[]'.
Type '{ plugins: string[]; parserOptions: { sourceType: string; }; rules: { 'wc/no-constructor-attributes': string; 'wc/no-invalid-element-name': string; 'wc/no-self-class': string; }; }' is not assignable to type 'ConfigData<RulesRecord>'.
The types of 'parserOptions.sourceType' are incompatible between these types.
Type 'string' is not assignable to type '"script" | "module" | undefined'.
25 wc,
~~
eslint.config.js:27:2 - error TS2322: Type '{ 'wc/guard-super-call': ["off"]; 'wc/attach-shadow-constructor': string; 'wc/no-child-traversal-in-attributechangedcallback': string; 'wc/no-child-traversal-in-connectedcallback': string; ... 5 more ...; 'wc/require-listener-teardown': string; }' is not assignable to type 'RulesRecord'.
Property ''wc/attach-shadow-constructor'' is incompatible with index signature.
Type 'string' is not assignable to type 'RuleEntry<any[]>'.
27 rules: {
~~~~~
../../node_modules/@types/eslint/index.d.ts:1116:9
1116 rules?: RulesRecord;
~~~~~
The expected type comes from property 'rules' which is declared here on type 'FlatConfig'
The text was updated successfully, but these errors were encountered:
Hey guys! First of all, thank you for such a cool plugin!
Since ESLint 9 is soon to be released, are there any plans to add a Flat config and, equally importantly, improve the
d.ts
files of the plugin?The text was updated successfully, but these errors were encountered: