diff --git a/configs/lit.js b/configs/lit.js index 8762931..3d44db5 100644 --- a/configs/lit.js +++ b/configs/lit.js @@ -65,12 +65,12 @@ export default [ } }, { - 'files': ['./**/lang/*.js'], + 'files': ['**/lang/*.js'], 'rules': { 'quotes': 0 } }, { - 'files': ['./**/demo/*.html'], + 'files': ['**/demo/*.html'], 'rules': { 'no-console': 0 } diff --git a/utils.js b/utils.js index 8f3382b..e11afd6 100644 --- a/utils.js +++ b/utils.js @@ -46,11 +46,7 @@ export function setDirectoryConfigs(globalConfig, directoryConfigs) { } for (const dirConfig of directoryConfigs[dir]) { - const files = dirConfig.files ? dirConfig.files.map(f => { - if (f.startsWith('./')) return `${dir}${f.slice(1)}`; - if (f.startsWith('*')) return `${dir}${f}`; - return `${dir}/${f}`; - }) : [pattern]; + const files = dirConfig.files ? dirConfig.files.map(f => `${dir}/${f}`) : [pattern]; configs.push({ ...dirConfig, files