File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
packages/plugin-stylelint/src/lib Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ export default mergeConfigs(
3939 await stylelintPlugin ( {
4040 configFile : 'packages/plugin-stylelint/mocks/fixtures/basic/.stylelintrc.json' ,
4141 files : 'packages/plugin-stylelint/mocks/fixtures/basic/**/*.css' , // Adjust the path to your CSS files
42- config : { } ,
4342 } ) ,
4443 ] ,
4544 } ,
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import {createRequire} from 'node:module';
22import type { LinterOptions } from 'stylelint' ;
33import type { Audit , PluginConfig } from '@code-pushup/models' ;
44import { createRunnerFunction } from './runner/index.js' ;
5- import { getNormalizedConfigForFile } from "./runner/normalize-config" ;
5+ import { getNormalizedConfigForFile } from "./runner/normalize-config.js " ;
66
77
8- export type StylelintPluginConfig = LinterOptions & {
9- onlyAudits : string [ ] ;
8+ export type StylelintPluginConfig = Pick < LinterOptions , 'configFile' | 'files' > & {
9+ onlyAudits : string [ ]
1010}
1111
1212/**
@@ -36,7 +36,7 @@ export async function stylelintPlugin(
3636 '../../package.json' ,
3737 ) as typeof import ( '../../package.json' ) ;
3838
39- // console.log('getAudits : ', await getAudits (options ?? {}));
39+ console . log ( 'getNormalizedConfigForFile : ' , await getNormalizedConfigForFile ( options ?? { } ) ) ;
4040
4141 return {
4242 slug : 'stylelint' ,
You can’t perform that action at this time.
0 commit comments